Lines Matching refs:gpio
74 gpio_t *gpio = (gpio_t *)MMAP_GPIO; in cfspi_port_conf() local
77 out_8(&gpio->par_dspi, in cfspi_port_conf()
86 out_8(&gpio->par_dspi0, in cfspi_port_conf()
89 out_8(&gpio->srcr_dspiow, 3); in cfspi_port_conf()
106 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
117 out_8(&gpio->par_fbctl, in cpu_init_f()
121 out_8(&gpio->par_be, in cpu_init_f()
170 out_8(&gpio->par_cani2c, 0xF0); in cpu_init_f()
172 out_be16(&gpio->pcr_b, 0x003C); in cpu_init_f()
174 out_8(&gpio->srcr_cani2c, 0x03); in cpu_init_f()
178 out_8(&gpio->par_ssi0h, 0xA0); in cpu_init_f()
180 out_8(&gpio->par_ssi0h, 0xA8); in cpu_init_f()
182 out_8(&gpio->par_ssi0l, 0x2); in cpu_init_f()
184 out_8(&gpio->par_cani2c, 0xAA); in cpu_init_f()
186 out_8(&gpio->par_uart0, 0xAF); in cpu_init_f()
188 out_8(&gpio->par_uart1, 0xAF); in cpu_init_f()
190 out_8(&gpio->par_uart2, 0xAF); in cpu_init_f()
192 out_be16(&gpio->pcr_h, 0xF000); in cpu_init_f()
196 out_8(&gpio->par_uart1, 0x0A); in cpu_init_f()
198 out_be16(&gpio->pcr_e, 0x0003); in cpu_init_f()
199 out_be16(&gpio->pcr_f, 0xC000); in cpu_init_f()
203 out_8(&gpio->srcr_uart, 0x00); in cpu_init_f()
207 out_8(&gpio->srcr_sdhc, 0x03); in cpu_init_f()
210 out_8(&gpio->par_sdhch, 0xff); in cpu_init_f()
211 out_8(&gpio->par_sdhcl, 0xff); in cpu_init_f()
228 out_8(&gpio->par_be, in cpu_init_f()
231 out_8(&gpio->par_fbctl, in cpu_init_f()
240 out_be16(&gpio->par_feci2c, in cpu_init_f()
279 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
290 clrbits_8(&gpio->par_uart0, in uart_port_conf()
292 setbits_8(&gpio->par_uart0, in uart_port_conf()
298 clrbits_8(&gpio->par_uart1, in uart_port_conf()
300 setbits_8(&gpio->par_uart1, in uart_port_conf()
306 clrbits_8(&gpio->par_uart2, in uart_port_conf()
308 setbits_8(&gpio->par_uart2, in uart_port_conf()
314 clrbits_8(&gpio->par_dspi0, in uart_port_conf()
316 setbits_8(&gpio->par_dspi0, in uart_port_conf()
322 clrbits_8(&gpio->par_uart0, in uart_port_conf()
324 setbits_8(&gpio->par_uart0, in uart_port_conf()
330 clrbits_8(&gpio->par_uart1, in uart_port_conf()
332 setbits_8(&gpio->par_uart1, in uart_port_conf()
338 clrbits_8(&gpio->par_uart2, in uart_port_conf()
340 setbits_8(&gpio->par_uart2, in uart_port_conf()
346 clrbits_8(&gpio->par_ssi0h, ~GPIO_PAR_SSI0H_RXD_MASK); in uart_port_conf()
347 clrbits_8(&gpio->par_ssi0l, ~GPIO_PAR_SSI0L_BCLK_MASK); in uart_port_conf()
348 setbits_8(&gpio->par_ssi0h, GPIO_PAR_SSI0H_FS_U7TXD); in uart_port_conf()
349 setbits_8(&gpio->par_ssi0l, GPIO_PAR_SSI0L_BCLK_U7RXD); in uart_port_conf()
354 clrbits_8(&gpio->par_cani2c, in uart_port_conf()
356 setbits_8(&gpio->par_cani2c, in uart_port_conf()
362 clrbits_8(&gpio->par_cani2c, in uart_port_conf()
364 setbits_8(&gpio->par_cani2c, in uart_port_conf()
370 clrbits_8(&gpio->par_uart, in uart_port_conf()
372 setbits_8(&gpio->par_uart, in uart_port_conf()
377 clrbits_8(&gpio->par_uart, in uart_port_conf()
379 setbits_8(&gpio->par_uart, in uart_port_conf()
382 clrbits_be16(&gpio->par_ssi, in uart_port_conf()
384 setbits_be16(&gpio->par_ssi, in uart_port_conf()
390 clrbits_8(&gpio->par_timer, in uart_port_conf()
392 setbits_8(&gpio->par_timer, in uart_port_conf()
395 clrbits_8(&gpio->par_timer, in uart_port_conf()
397 setbits_8(&gpio->par_timer, in uart_port_conf()
408 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
418 setbits_be16(&gpio->par_feci2c, in fecpin_setclear()
422 setbits_be16(&gpio->par_feci2c, in fecpin_setclear()
426 setbits_be16(&gpio->par_feci2c, in fecpin_setclear()
431 setbits_8(&gpio->par_fec, GPIO_PAR_FEC_FEC0_RMII_GPIO); in fecpin_setclear()
433 setbits_8(&gpio->par_fec, GPIO_PAR_FEC_FEC1_RMII_ATA); in fecpin_setclear()
435 clrbits_be16(&gpio->par_feci2c, in fecpin_setclear()
440 setbits_8(&gpio->par_fec, GPIO_PAR_FEC_FEC0_MII); in fecpin_setclear()
442 clrbits_8(&gpio->par_fec, ~GPIO_PAR_FEC_FEC0_UNMASK); in fecpin_setclear()
446 setbits_8(&gpio->par_fec, GPIO_PAR_FEC_FEC1_MII); in fecpin_setclear()
448 clrbits_8(&gpio->par_fec, ~GPIO_PAR_FEC_FEC1_UNMASK); in fecpin_setclear()
456 out_8(&gpio->par_fec, 0x03); in fecpin_setclear()
457 out_8(&gpio->srcr_fec, 0x0F); in fecpin_setclear()
458 clrsetbits_8(&gpio->par_simp0h, ~GPIO_PAR_SIMP0H_DAT_MASK, in fecpin_setclear()
460 clrsetbits_8(&gpio->pddr_g, ~GPIO_PDDR_G4_MASK, in fecpin_setclear()
462 clrbits_8(&gpio->podr_g, ~GPIO_PODR_G4_MASK); in fecpin_setclear()
465 clrbits_8(&gpio->par_fec, ~GPIO_PAR_FEC_FEC_MASK); in fecpin_setclear()