| /openbmc/u-boot/drivers/pinctrl/ |
| H A D | pinctrl-at91.c | 82 void (*mux_A_periph)(struct at91_port *pio, u32 mask); 83 void (*mux_B_periph)(struct at91_port *pio, u32 mask); 84 void (*mux_C_periph)(struct at91_port *pio, u32 mask); 85 void (*mux_D_periph)(struct at91_port *pio, u32 mask); 86 void (*set_deglitch)(struct at91_port *pio, u32 mask, bool is_on); 87 void (*set_debounce)(struct at91_port *pio, u32 mask, bool is_on, 89 void (*set_pulldown)(struct at91_port *pio, u32 mask, bool is_on); 90 void (*disable_schmitt_trig)(struct at91_port *pio, u32 mask); 91 void (*set_drivestrength)(struct at91_port *pio, u32 pin, 103 static void at91_mux_disable_interrupt(struct at91_port *pio, u32 mask) in at91_mux_disable_interrupt() argument [all …]
|
| /openbmc/u-boot/board/atmel/at91rm9200ek/ |
| H 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 …]
|
| H A D | at91rm9200ek.c | 25 at91_pio_t *pio = (at91_pio_t *)AT91_PIO_BASE; in board_init() local 31 writel(ATMEL_PMX_AA_TXD2, &pio->pioa.oer); in board_init()
|
| /openbmc/u-boot/arch/arm/mach-sunxi/ |
| H A D | pinmux.c | 12 void sunxi_gpio_set_cfgbank(struct sunxi_gpio *pio, int bank_offset, u32 val) in sunxi_gpio_set_cfgbank() argument 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() [all …]
|
| /openbmc/u-boot/arch/arm/dts/ |
| H 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 */ 139 gpios = <&pio 7 23 GPIO_ACTIVE_LOW>; /* PH23 */ 147 gpios = <&pio 7 24 GPIO_ACTIVE_LOW>; /* PH24 */ [all …]
|
| H 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>; 175 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; 205 &pio { 223 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; 262 gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>; 327 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ [all …]
|
| H A D | sun7i-a20-cubietruck.dts | 82 gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; 87 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; 92 gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; 97 gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; 105 reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */ 209 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 225 interrupt-parent = <&pio>; 248 &pio { 288 gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; 329 gpio = <&pio 7 17 GPIO_ACTIVE_HIGH>; [all …]
|
| H 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 */
|
| H 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 */
|
| H A D | sun7i-a20-bananapro.dts | 70 gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; 75 gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; 83 reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; 95 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; 161 cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ 177 interrupt-parent = <&pio>; 191 &pio { 226 gpio = <&pio 7 0 GPIO_ACTIVE_HIGH>; /* PH0 */ 232 gpio = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
|
| H A D | sun7i-a20-pcduino3.dts | 71 gpios = <&pio 7 15 GPIO_ACTIVE_LOW>; 76 gpios = <&pio 7 16 GPIO_ACTIVE_LOW>; 89 gpios = <&pio 7 17 GPIO_ACTIVE_LOW>; 94 gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; 99 gpios = <&pio 7 19 GPIO_ACTIVE_LOW>; 162 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 178 &pio { 197 gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; 248 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
| H 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 */
|
| H 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 */
|
| H A D | sun7i-a20-orangepi-mini.dts | 82 gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */ 87 gpios = <&pio 7 25 GPIO_ACTIVE_HIGH>; /* PH25 */ 100 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; /* PH23 */ 172 cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ 181 cd-gpios = <&pio 7 11 GPIO_ACTIVE_LOW>; /* PH11 */ 189 &pio { 260 gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */ 266 gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ 288 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
| H A D | sun5i-a13-olinuxino-micro.dts | 69 gpios = <&pio 6 9 GPIO_ACTIVE_HIGH>; 102 cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */ 114 &pio { 152 gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>; 158 gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>; 176 usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ 177 usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
|
| H A D | sun7i-a20-i12-tvbox.dts | 69 gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; 74 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; 86 gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; 99 gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; 111 gpio = <&pio 7 21 GPIO_ACTIVE_HIGH>; 163 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 178 interrupt-parent = <&pio>; 197 &pio {
|
| H A D | sun4i-a10-inet1.dts | 64 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ 106 interrupt-parent = <&pio>; 117 interrupt-parent = <&pio>; 119 wake-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* PB13 */ 155 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 167 &pio { 238 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ 239 usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
|
| H A D | sun5i-reference-design-tablet.dtsi | 68 allwinner,pa-gpios = <&pio 6 10 GPIO_ACTIVE_HIGH>; /* PG10 */ 96 interrupt-parent = <&pio>; 100 power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */ 130 cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */ 138 &pio { 207 gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */ 229 usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ 230 usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
|
| H A D | sun7i-a20-wexler-tab7200.dts | 68 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ 79 allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ 123 interrupt-parent = <&pio>; 127 irq-gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* INT (PH21) */ 128 reset-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* RST (PB13) */ 157 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ 173 &pio { 257 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
| H A D | sun7i-a20-bananapi-m1-plus.dts | 81 gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; 86 gpios = <&pio 7 25 GPIO_ACTIVE_HIGH>; 95 reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; /* PH22 WL-PMU-EN */ 107 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; 187 cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ 206 interrupt-parent = <&pio>; 229 &pio { 297 usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
| H A D | sun50i-h5-orangepi-zero-plus.dts | 47 gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */ 58 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ 89 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 141 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
| H A D | sun5i-a13-utoo-p66.dts | 66 gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>, /* PG12, sda */ 67 <&pio 6 10 GPIO_ACTIVE_HIGH>; /* PG10, scl */ 79 allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */ 101 &pio { 110 gpio = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */ 119 wake-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */
|
| H A D | sun6i-a31-colombus.dts | 68 gpios = <&pio 0 23 GPIO_ACTIVE_HIGH>, /* PA23, sda */ 69 <&pio 0 24 GPIO_ACTIVE_HIGH>; /* PA24, scl */ 110 interrupt-parent = <&pio>; 120 cd-gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */ 128 &pio { 150 gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>;
|
| /openbmc/u-boot/drivers/video/ |
| H A D | bus_vcxk.c | 22 at91_pio_t *pio = (at91_pio_t *) AT91_PIO_BASE; variable 25 writel(PIN, &pio->PORT.per); \ 26 writel(PIN, &pio->PORT.DDR); \ 27 writel(PIN, &pio->PORT.mddr); \ 29 writel(PIN, &pio->PORT.puer); \ 32 #define VCXK_SET_PIN(PORT, PIN) writel(PIN, &pio->PORT.sodr); 33 #define VCXK_CLR_PIN(PORT, PIN) writel(PIN, &pio->PORT.codr); 36 (!(readl(&pio->CONFIG_SYS_VCXK_ACKNOWLEDGE_PORT.pdsr) & \
|
| /openbmc/qemu/system/ |
| H A D | ioport.c | 281 const MemoryRegionPortio *pio, *pio_start = piolist->ports; in portio_list_add() local 292 for (pio = pio_start + 1; pio->size != 0; pio++, count++) { in portio_list_add() 294 assert(pio->offset >= off_last); in portio_list_add() 295 off_last = pio->offset; in portio_list_add() 302 pio_start = pio; in portio_list_add() 304 off_high = off_low + pio->len + pio_start->size - 1; in portio_list_add() 306 } else if (off_last + pio->len > off_high) { in portio_list_add() 307 off_high = off_last + pio->len + pio_start->size - 1; in portio_list_add()
|