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(0x0000, &gpio->pdcr); /* SPI0 */ in init_gpio()
32 writew(0xeaff, &gpio->pecr); /* GPIO */ in init_gpio()
33 writew(0x0000, &gpio->pfcr); /* WDT */ in init_gpio()
34 writew(0x0004, &gpio->pgcr); /* SPI0, GETHER MDIO gate(PTG1) */ in init_gpio()
35 writew(0x0000, &gpio->phcr); /* SPI1 */ in init_gpio()
36 writew(0x0000, &gpio->picr); /* SDHI */ in init_gpio()
37 writew(0x0000, &gpio->pjcr); /* SCIF4 */ in init_gpio()
38 writew(0x0003, &gpio->pkcr); /* SerMux */ in init_gpio()
39 writew(0x0000, &gpio->plcr); /* SerMux */ in init_gpio()
40 writew(0x0000, &gpio->pmcr); /* RIIC */ in init_gpio()
41 writew(0x0000, &gpio->pncr); /* USB, SGPIO */ in init_gpio()
42 writew(0x0000, &gpio->pocr); /* SGPIO */ in init_gpio()
43 writew(0xd555, &gpio->pqcr); /* GPIO */ in init_gpio()
44 writew(0x0000, &gpio->prcr); /* RIIC */ in init_gpio()
45 writew(0x0000, &gpio->pscr); /* RIIC */ in init_gpio()
46 writew(0x0000, &gpio->ptcr); /* STATUS */ in init_gpio()
47 writeb(0x00, &gpio->pudr); in init_gpio()
48 writew(0x5555, &gpio->pucr); /* Debug LED */ in init_gpio()
49 writew(0x0000, &gpio->pvcr); /* RSPI */ in init_gpio()
50 writew(0x0000, &gpio->pwcr); /* EVC */ in init_gpio()
51 writew(0x0000, &gpio->pxcr); /* LBSC */ in init_gpio()
52 writew(0x0000, &gpio->pycr); /* LBSC */ in init_gpio()
53 writew(0x0000, &gpio->pzcr); /* eMMC */ in init_gpio()
54 writew(0xfe00, &gpio->psel0); in init_gpio()
55 writew(0x0000, &gpio->psel1); in init_gpio()
56 writew(0x3000, &gpio->psel2); in init_gpio()
57 writew(0xff00, &gpio->psel3); in init_gpio()
58 writew(0x771f, &gpio->psel4); in init_gpio()
59 writew(0x0ffc, &gpio->psel5); in init_gpio()
60 writew(0x00ff, &gpio->psel6); in init_gpio()
61 writew(0xfc00, &gpio->psel7); in init_gpio()
91 struct gpio_regs *gpio = GPIO_BASE; in init_gether_mdio() local
93 writew(readw(&gpio->pgcr) | 0x0004, &gpio->pgcr); in init_gether_mdio()
94 writeb(readb(&gpio->pgdr) | 0x02, &gpio->pgdr); /* Use ET0-MDIO */ in init_gether_mdio()
180 struct gpio_regs *gpio = GPIO_BASE; in board_mmc_init() local
182 writew(readw(&gpio->pgcr) | 0x0040, &gpio->pgcr); in board_mmc_init()
183 writeb(readb(&gpio->pgdr) & ~0x08, &gpio->pgdr); /* Reset */ in board_mmc_init()
185 writeb(readb(&gpio->pgdr) | 0x08, &gpio->pgdr); /* Release reset */ in board_mmc_init()