/u-boot/drivers/pinctrl/ |
A D | pinctrl-at91.c | 132 writel(mask, (on ? &pio->puer : &pio->pudr)); in at91_mux_set_pullup() 138 writel(mask, (val ? &pio->sodr : &pio->codr)); in at91_mux_set_output() 139 writel(mask, (is_on ? &pio->oer : &pio->odr)); in at91_mux_set_output() 144 writel(mask, (on ? &pio->mder : &pio->mddr)); in at91_mux_set_multidrive() 165 writel(readl(&pio->mux.pio3.abcdsr1) | mask, &pio->mux.pio3.abcdsr1); in at91_mux_pio3_set_B_periph() 172 writel(readl(&pio->mux.pio3.abcdsr2) | mask, &pio->mux.pio3.abcdsr2); in at91_mux_pio3_set_C_periph() 177 writel(readl(&pio->mux.pio3.abcdsr1) | mask, &pio->mux.pio3.abcdsr1); in at91_mux_pio3_set_D_periph() 183 writel(mask, (is_on ? &pio->ifer : &pio->ifdr)); in at91_mux_set_deglitch() 212 writel(mask, (is_on ? &pio->mux.pio3.ppder : &pio->mux.pio3.ppddr)); in at91_mux_pio3_set_pulldown() 218 writel(readl(&pio->schmitt) | mask, &pio->schmitt); in at91_mux_pio3_disable_schmitt_trig() [all …]
|
A D | pinctrl-qe-io.c | 144 static int par_io_of_config_node(struct udevice *dev, ofnode pio) in par_io_of_config_node() argument 151 pio_map = ofnode_get_property(pio, "pio-map", &pio_map_len); in par_io_of_config_node() 178 ofnode pio; in par_io_of_config() local 187 pio = ofnode_get_by_phandle(phandle); in par_io_of_config() 188 if (!ofnode_valid(pio)) { in par_io_of_config() 194 return par_io_of_config_node(NULL, pio); in par_io_of_config()
|
/u-boot/board/atmel/at91rm9200ek/ |
A D | led.c | 25 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in green_led_on() local 26 writel(GREEN_LED, &pio->piob.codr); in green_led_on() 31 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in yellow_led_on() local 32 writel(YELLOW_LED, &pio->piob.codr); in yellow_led_on() 37 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in red_led_on() local 38 writel(RED_LED, &pio->piob.codr); in red_led_on() 43 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in green_led_off() local 44 writel(GREEN_LED, &pio->piob.sodr); in green_led_off() 49 at91_pio_t *pio = (at91_pio_t *)ATMEL_BASE_PIO; in yellow_led_off() local 50 writel(YELLOW_LED, &pio->piob.sodr); in yellow_led_off() [all …]
|
A D | at91rm9200ek.c | 28 at91_pio_t *pio = (at91_pio_t *)AT91_PIO_BASE; in board_init() local 34 writel(ATMEL_PMX_AA_TXD2, &pio->pioa.oer); in board_init()
|
/u-boot/arch/arm/mach-sunxi/ |
A D | pinmux.c | 17 clrsetbits_le32(&pio->cfg[0] + index, 0xf << offset, val << offset); in sunxi_gpio_set_cfgbank() 23 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_set_cfgpin() local 25 sunxi_gpio_set_cfgbank(pio, pin, val); in sunxi_gpio_set_cfgpin() 28 int sunxi_gpio_get_cfgbank(struct sunxi_gpio *pio, int bank_offset) in sunxi_gpio_get_cfgbank() argument 34 cfg = readl(&pio->cfg[0] + index); in sunxi_gpio_get_cfgbank() 43 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_get_cfgpin() local 45 return sunxi_gpio_get_cfgbank(pio, pin); in sunxi_gpio_get_cfgpin() 53 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_set_drv() local 55 clrsetbits_le32(&pio->drv[0] + index, 0x3 << offset, val << offset); in sunxi_gpio_set_drv() 65 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_set_pull() local [all …]
|
/u-boot/arch/arm/dts/ |
A D | sun4i-a10-inet9f-rev03.dts | 75 gpios = <&pio 0 6 GPIO_ACTIVE_LOW>; /* PA6 */ 83 gpios = <&pio 0 5 GPIO_ACTIVE_LOW>; /* PA5 */ 91 gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */ 99 gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */ 107 gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* PA1 */ 115 gpios = <&pio 0 0 GPIO_ACTIVE_LOW>; /* PA0 */ 123 gpios = <&pio 0 3 GPIO_ACTIVE_LOW>; /* PA3 */ 131 gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */ 242 interrupt-parent = <&pio>; 253 interrupt-parent = <&pio>; [all …]
|
A D | sun7i-a20-olimex-som204-evb.dts | 51 gpios = <&pio 8 0 GPIO_ACTIVE_HIGH>; 57 gpios = <&pio 8 10 GPIO_ACTIVE_HIGH>; 63 gpios = <&pio 8 11 GPIO_ACTIVE_HIGH>; 70 reset-gpios = <&pio 6 9 GPIO_ACTIVE_LOW>; 112 snps,reset-gpio = <&pio 0 17 GPIO_ACTIVE_HIGH>; 167 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; 195 &pio { 213 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; 252 gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>; 317 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ [all …]
|
A D | sun7i-a20-cubietruck.dts | 80 gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; 85 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; 90 gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; 95 gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; 101 reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */ 200 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 214 interrupt-parent = <&pio>; 232 &pio { 245 gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; 285 gpio = <&pio 7 17 GPIO_ACTIVE_HIGH>; [all …]
|
A D | sun8i-h3-nanopi-duo2.dts | 36 gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */ 109 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 125 interrupt-parent = <&pio>; 158 device-wakeup-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ 159 host-wakeup-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */ 160 shutdown-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */ 170 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
A D | sun8i-s3-pinecube.dts | 28 gpios = <&pio 1 10 GPIO_ACTIVE_LOW>; /* PB10 */ 33 gpios = <&pio 1 12 GPIO_ACTIVE_LOW>; /* PB12 */ 49 gpio = <&pio 1 2 GPIO_ACTIVE_LOW>; /* PB2 WIFI-EN */ 56 reset-gpios = <&pio 1 3 GPIO_ACTIVE_LOW>; /* PB3 WIFI-RST */ 117 reset-gpios = <&pio 4 23 GPIO_ACTIVE_LOW>; /* PE23 */ 118 powerdown-gpios = <&pio 4 24 GPIO_ACTIVE_HIGH>; /* PE24 */ 148 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 161 &pio {
|
A D | sun50i-a64-pinephone.dtsi | 22 enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */ 36 gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ 42 gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ 48 gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ 54 enable-gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */ 60 enable-gpios = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */ 130 interrupt-parent = <&pio>; 132 irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ 156 interrupt-parent = <&pio>; 192 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ [all …]
|
A D | sun4i-a10-pov-protab2-ips9.dts | 64 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ 73 allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ 107 interrupt-parent = <&pio>; 109 attb-gpio = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* PH21 */ 110 enable-gpios = <&pio 0 5 GPIO_ACTIVE_LOW>; 111 wake-gpios = <&pio 1 13 GPIO_ACTIVE_LOW>; 141 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 149 &pio { 216 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ 217 usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
|
A D | sun7i-a20-pcduino3.dts | 69 gpios = <&pio 7 15 GPIO_ACTIVE_LOW>; 74 gpios = <&pio 7 16 GPIO_ACTIVE_LOW>; 84 gpios = <&pio 7 17 GPIO_ACTIVE_LOW>; 90 gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; 96 gpios = <&pio 7 19 GPIO_ACTIVE_LOW>; 155 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 171 &pio { 180 gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; 231 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
A D | sun50i-a64-pinetab.dts | 30 enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */ 40 sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; /* PE13 */ 41 scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>; /* PE12 */ 58 reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* PE14 */ 76 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ 85 gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */ 161 reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ 180 interrupt-parent = <&pio>; 182 irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ 183 reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */ [all …]
|
A D | sun4i-a10-dserve-dsrv9703c.dts | 64 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ 84 gpio = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */ 89 allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ 123 interrupt-parent = <&pio>; 125 reset-gpios = <&pio 1 13 GPIO_ACTIVE_LOW>; 153 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 161 &pio { 228 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ 229 usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
|
A D | sun7i-a20-orangepi-mini.dts | 80 gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */ 85 gpios = <&pio 7 25 GPIO_ACTIVE_HIGH>; /* PH25 */ 96 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; /* PH23 */ 164 cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ 171 cd-gpios = <&pio 7 11 GPIO_ACTIVE_LOW>; /* PH11 */ 179 &pio { 217 gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */ 222 gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ 244 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
A D | sun50i-h5-nanopi-neo2.dts | 33 gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; 44 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; 92 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 117 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
A D | sun4i-a10-pcduino.dts | 68 gpios = <&pio 7 15 GPIO_ACTIVE_LOW>; 73 gpios = <&pio 7 16 GPIO_ACTIVE_LOW>; 85 gpios = <&pio 7 17 GPIO_ACTIVE_LOW>; 91 gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; 97 gpios = <&pio 7 19 GPIO_ACTIVE_LOW>; 143 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 159 &pio { 208 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
A D | sun7i-a20-bananapro.dts | 68 gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; 73 gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; 79 reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; 89 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; 149 cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ 163 interrupt-parent = <&pio>; 178 gpio = <&pio 7 0 GPIO_ACTIVE_HIGH>; /* PH0 */ 183 gpio = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
|
A D | sun7i-a20-wexler-tab7200.dts | 66 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ 75 allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ 113 interrupt-parent = <&pio>; 115 irq-gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* INT (PH21) */ 116 reset-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* RST (PB13) */ 143 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 159 &pio { 228 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
A D | sun4i-a10-marsboard.dts | 67 gpios = <&pio 1 5 GPIO_ACTIVE_HIGH>; 72 gpios = <&pio 1 6 GPIO_ACTIVE_HIGH>; 77 gpios = <&pio 1 7 GPIO_ACTIVE_HIGH>; 82 gpios = <&pio 1 8 GPIO_ACTIVE_HIGH>; 135 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 151 &pio { 188 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
/u-boot/arch/powerpc/dts/ |
A D | kmeter1.dts | 88 pio-map = < 112 pio-map = < 136 pio-map = < 154 pio-map = < 170 pio-map = < 186 pio-map = < 202 pio-map = < 220 pio-map = < 229 pio-map = < 239 pio-map = < [all …]
|
A D | kmsupc5.dts | 63 pio-map = < 74 pio-map = < 93 pio-map = < 108 pio-handle = <&pio_spi>;
|
A D | kmcoge5ne.dts | 31 pio-handle = <&pio_brg>; 95 pio-map = < 117 pio-map = < 135 pio-map = < 153 pio-map = < 162 pio-map = < 169 pio-map = < 235 pio-handle = <&pio_ucc1>; 251 pio-handle = <&pio_ucc4>; 267 pio-handle = <&pio_ucc5>;
|
/u-boot/drivers/video/ |
A D | bus_vcxk.c | 23 at91_pio_t *pio = (at91_pio_t *) AT91_PIO_BASE; variable 26 writel(PIN, &pio->PORT.per); \ 27 writel(PIN, &pio->PORT.DDR); \ 28 writel(PIN, &pio->PORT.mddr); \ 30 writel(PIN, &pio->PORT.puer); \ 33 #define VCXK_SET_PIN(PORT, PIN) writel(PIN, &pio->PORT.sodr); 34 #define VCXK_CLR_PIN(PORT, PIN) writel(PIN, &pio->PORT.codr); 37 (!(readl(&pio->CONFIG_SYS_VCXK_ACKNOWLEDGE_PORT.pdsr) & \
|