• Home
  • Raw
  • Download

Lines Matching refs:im

53 	immap_t *im = (immap_t *)CONFIG_SYS_IMMR;  in gpio_direction_input()  local
65 clrbits_be32(&im->gpio[ctrlr].dir, line_mask); in gpio_direction_input()
73 immap_t *im = (immap_t *)CONFIG_SYS_IMMR; in gpio_direction_output() local
93 setbits_be32(&im->gpio[ctrlr].dir, line_mask); in gpio_direction_output()
101 immap_t *im = (immap_t *)CONFIG_SYS_IMMR; in gpio_get_value() local
114 return (in_be32(&im->gpio[ctrlr].dat) & line_mask) != 0; in gpio_get_value()
120 immap_t *im = (immap_t *)CONFIG_SYS_IMMR; in gpio_set_value() local
143 out_be32(&im->gpio[ctrlr].dat, gpio_output_value[ctrlr]); in gpio_set_value()
151 immap_t *im = (immap_t *)CONFIG_SYS_IMMR; in mpc83xx_gpio_init_f() local
154 out_be32(&im->gpio[0].dir, CONFIG_MPC83XX_GPIO_0_INIT_DIRECTION); in mpc83xx_gpio_init_f()
155 out_be32(&im->gpio[0].odr, CONFIG_MPC83XX_GPIO_0_INIT_OPEN_DRAIN); in mpc83xx_gpio_init_f()
156 out_be32(&im->gpio[0].dat, CONFIG_MPC83XX_GPIO_0_INIT_VALUE); in mpc83xx_gpio_init_f()
157 out_be32(&im->gpio[0].ier, 0xFFFFFFFF); /* Clear all events */ in mpc83xx_gpio_init_f()
158 out_be32(&im->gpio[0].imr, 0); in mpc83xx_gpio_init_f()
159 out_be32(&im->gpio[0].icr, 0); in mpc83xx_gpio_init_f()
163 out_be32(&im->gpio[1].dir, CONFIG_MPC83XX_GPIO_1_INIT_DIRECTION); in mpc83xx_gpio_init_f()
164 out_be32(&im->gpio[1].odr, CONFIG_MPC83XX_GPIO_1_INIT_OPEN_DRAIN); in mpc83xx_gpio_init_f()
165 out_be32(&im->gpio[1].dat, CONFIG_MPC83XX_GPIO_1_INIT_VALUE); in mpc83xx_gpio_init_f()
166 out_be32(&im->gpio[1].ier, 0xFFFFFFFF); /* Clear all events */ in mpc83xx_gpio_init_f()
167 out_be32(&im->gpio[1].imr, 0); in mpc83xx_gpio_init_f()
168 out_be32(&im->gpio[1].icr, 0); in mpc83xx_gpio_init_f()