Home
last modified time | relevance | path

Searched refs:pgpio (Results 1 – 16 of 16) sorted by relevance

/openbmc/u-boot/board/gdsys/p1022/
H A Dcontrolcenterd.c74 ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO3_ADDR); in board_early_init_f() local
110 setbits_be32(&pgpio->gpdir, 0x00200000); in board_early_init_f()
111 clrbits_be32(&pgpio->gpdat, 0x00200000); in board_early_init_f()
113 setbits_be32(&pgpio->gpdat, 0x00200000); in board_early_init_f()
115 clrbits_be32(&pgpio->gpdat, 0x00200000); in board_early_init_f()
121 setbits_be32(&pgpio->gpdir, 0x00100000); in board_early_init_f()
122 clrbits_be32(&pgpio->gpdat, 0x00100000); in board_early_init_f()
127 setbits_be32(&pgpio->gpdir, 0x00000400); in board_early_init_f()
215 ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO3_ADDR); in hw_watchdog_reset() local
217 clrbits_be32(&pgpio->gpdat, 0x00000400); in hw_watchdog_reset()
[all …]
/openbmc/u-boot/board/freescale/t102xrdb/
H A Dt102xrdb.c227 ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in board_mmc_getcd() local
228 u32 val = in_be32(&pgpio->gpdat); in board_mmc_getcd()
238 ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in board_mmc_getwp() local
239 u32 val = in_be32(&pgpio->gpdat); in board_mmc_getwp()
248 ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in t1023rdb_ctrl() local
255 val = in_be32(&pgpio->gpdat); in t1023rdb_ctrl()
257 out_be32(&pgpio->gpdat, val); in t1023rdb_ctrl()
258 setbits_be32(&pgpio->gpdir, GPIO1_SD_SEL); in t1023rdb_ctrl()
261 val = in_be32(&pgpio->gpdat); in t1023rdb_ctrl()
263 out_be32(&pgpio->gpdat, val); in t1023rdb_ctrl()
[all …]
H A Dspl.c39 ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in board_mmc_getcd() local
40 u32 val = in_be32(&pgpio->gpdat); in board_mmc_getcd()
50 ccsr_gpio_t __iomem *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in board_mmc_getwp() local
51 u32 val = in_be32(&pgpio->gpdat); in board_mmc_getwp()
/openbmc/u-boot/board/freescale/ls1012afrdm/
H A Deth.c31 struct ccsr_gpio *pgpio = (void *)(GPIO1_BASE_ADDR); in ls1012afrdm_reset_phy() local
33 setbits_be32(&pgpio->gpdir, MASK_ETH_PHY_RST); in ls1012afrdm_reset_phy()
35 val = in_be32(&pgpio->gpdat); in ls1012afrdm_reset_phy()
36 setbits_be32(&pgpio->gpdat, val & ~MASK_ETH_PHY_RST); in ls1012afrdm_reset_phy()
39 val = in_be32(&pgpio->gpdat); in ls1012afrdm_reset_phy()
40 setbits_be32(&pgpio->gpdat, val | MASK_ETH_PHY_RST); in ls1012afrdm_reset_phy()
H A Dls1012afrdm.c31 struct ccsr_gpio *pgpio = (void *)(GPIO2_BASE_ADDR); in get_board_version() local
33 val = in_be32(&pgpio->gpdat) & BOARD_REV_MASK;/*Get GPIO2 11,12,14*/ in get_board_version()
/openbmc/u-boot/board/freescale/p1_p2_rdb_pc/
H A Dp1_p2_rdb_pc.c169 ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in board_gpio_init()
179 setbits_be32(&pgpio->gpdir, 0x02130000); in board_gpio_init()
182 setbits_be32(&pgpio->gpdir, 0x00200000); in board_gpio_init()
183 setbits_be32(&pgpio->gpodr, 0x00200000); in board_gpio_init()
184 clrbits_be32(&pgpio->gpdat, 0x00200000); in board_gpio_init()
186 setbits_be32(&pgpio->gpdat, 0x00200000); in board_gpio_init()
188 clrbits_be32(&pgpio->gpdir, 0x00200000); in board_gpio_init()
193 setbits_be32(&pgpio->gpdir, 0x00080000); in board_gpio_init()
194 setbits_be32(&pgpio->gpdat, 0x00080000); in board_gpio_init()
199 setbits_be32(&pgpio->gpdir, 0x00040000); in board_gpio_init()
[all …]
/openbmc/u-boot/board/varisys/cyrus/
H A Dcyrus.c39 ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in board_early_init_f() local
49 setbits_be32(&pgpio->gpdat, GPIO_INITIAL); in board_early_init_f()
50 setbits_be32(&pgpio->gpodr, GPIO_OPENDRAIN); in board_early_init_f()
53 setbits_be32(&pgpio->gpdir, GPIO_DIR); in board_early_init_f()
/openbmc/u-boot/board/freescale/corenet_ds/
H A Deth_p4080.c150 ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in p4080ds_mux_mdio() local
151 uint gpioval = in_be32(&pgpio->gpdat) & ~(EMI_MASK); in p4080ds_mux_mdio()
154 out_be32(&pgpio->gpdat, gpioval); in p4080ds_mux_mdio()
291 ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in board_eth_init() local
302 out_be32(&pgpio->gpdir, EMI_MASK); in board_eth_init()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
H A Dg94.c72 struct nvkm_gpio **pgpio) in g94_gpio_new() argument
74 return nvkm_gpio_new_(&g94_gpio, device, type, inst, pgpio); in g94_gpio_new()
H A Dgk104.c72 struct nvkm_gpio **pgpio) in gk104_gpio_new() argument
74 return nvkm_gpio_new_(&gk104_gpio, device, type, inst, pgpio); in gk104_gpio_new()
H A Dgf119.c84 struct nvkm_gpio **pgpio) in gf119_gpio_new() argument
86 return nvkm_gpio_new_(&gf119_gpio, device, type, inst, pgpio); in gf119_gpio_new()
H A Dnv10.c116 struct nvkm_gpio **pgpio) in nv10_gpio_new() argument
118 return nvkm_gpio_new_(&nv10_gpio, device, type, inst, pgpio); in nv10_gpio_new()
H A Dnv50.c130 struct nvkm_gpio **pgpio) in nv50_gpio_new() argument
132 return nvkm_gpio_new_(&nv50_gpio, device, type, inst, pgpio); in nv50_gpio_new()
H A Dga102.c116 struct nvkm_gpio **pgpio) in ga102_gpio_new() argument
118 return nvkm_gpio_new_(&ga102_gpio, device, type, inst, pgpio); in ga102_gpio_new()
H A Dbase.c226 enum nvkm_subdev_type type, int inst, struct nvkm_gpio **pgpio) in nvkm_gpio_new_() argument
230 if (!(gpio = *pgpio = kzalloc(sizeof(*gpio), GFP_KERNEL))) in nvkm_gpio_new_()
/openbmc/u-boot/board/freescale/p1010rdb/
H A Dp1010rdb.c78 ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in board_early_init_f() local
85 setbits_be32(&pgpio->gpdir, GPIO4_PCIE_RESET_SET); in board_early_init_f()
86 setbits_be32(&pgpio->gpdat, GPIO4_PCIE_RESET_SET); in board_early_init_f()