Lines Matching refs:gpio
24 struct gpio_regs *gpio = GPIO_BASE; in init_gpio() local
28 writew(0x0000, &gpio->pacr); /* GETHER */ in init_gpio()
29 writew(0x0001, &gpio->pbcr); /* INTC */ in init_gpio()
30 writew(0x0000, &gpio->pccr); /* PWMU, INTC */ in init_gpio()
31 writew(0xeaff, &gpio->pecr); /* GPIO */ in init_gpio()
32 writew(0x0000, &gpio->pfcr); /* WDT */ in init_gpio()
33 writew(0x0000, &gpio->phcr); /* SPI1 */ in init_gpio()
34 writew(0x0000, &gpio->picr); /* SDHI */ in init_gpio()
35 writew(0x0003, &gpio->pkcr); /* SerMux */ in init_gpio()
36 writew(0x0000, &gpio->plcr); /* SerMux */ in init_gpio()
37 writew(0x0000, &gpio->pmcr); /* RIIC */ in init_gpio()
38 writew(0x0000, &gpio->pncr); /* USB, SGPIO */ in init_gpio()
39 writew(0x0000, &gpio->pocr); /* SGPIO */ in init_gpio()
40 writew(0xd555, &gpio->pqcr); /* GPIO */ in init_gpio()
41 writew(0x0000, &gpio->prcr); /* RIIC */ in init_gpio()
42 writew(0x0000, &gpio->pscr); /* RIIC */ in init_gpio()
43 writeb(0x00, &gpio->pudr); in init_gpio()
44 writew(0x5555, &gpio->pucr); /* Debug LED */ in init_gpio()
45 writew(0x0000, &gpio->pvcr); /* RSPI */ in init_gpio()
46 writew(0x0000, &gpio->pwcr); /* EVC */ in init_gpio()
47 writew(0x0000, &gpio->pxcr); /* LBSC */ in init_gpio()
48 writew(0x0000, &gpio->pycr); /* LBSC */ in init_gpio()
49 writew(0x0000, &gpio->pzcr); /* eMMC */ in init_gpio()
50 writew(0xfe00, &gpio->psel0); in init_gpio()
51 writew(0xff00, &gpio->psel3); in init_gpio()
52 writew(0x771f, &gpio->psel4); in init_gpio()
53 writew(0x00ff, &gpio->psel6); in init_gpio()
54 writew(0xfc00, &gpio->psel7); in init_gpio()
84 struct gpio_regs *gpio = GPIO_BASE; in init_gether_mdio() local
86 writew(readw(&gpio->pgcr) | 0x0004, &gpio->pgcr); in init_gether_mdio()
87 writeb(readb(&gpio->pgdr) | 0x02, &gpio->pgdr); /* Use ET0-MDIO */ in init_gether_mdio()
164 struct gpio_regs *gpio = GPIO_BASE; in board_mmc_init() local
166 writew(readw(&gpio->pgcr) | 0x0040, &gpio->pgcr); in board_mmc_init()
167 writeb(readb(&gpio->pgdr) & ~0x08, &gpio->pgdr); /* Reset */ in board_mmc_init()
169 writeb(readb(&gpio->pgdr) | 0x08, &gpio->pgdr); /* Release reset */ in board_mmc_init()