Home
last modified time | relevance | path

Searched refs:gpio (Results 1 – 25 of 1199) sorted by relevance

12345678910>>...48

/u-boot/arch/arm/dts/
A Ds5pc110-pinctrl.dtsi13 gpio-controller;
14 #gpio-cells = <2>;
18 gpio-controller;
19 #gpio-cells = <2>;
23 gpio-controller;
28 gpio-controller;
33 gpio-controller;
38 gpio-controller;
43 gpio-controller;
48 gpio-controller;
[all …]
A Ds5pc100-pinctrl.dtsi11 gpio-controller;
12 #gpio-cells = <2>;
16 gpio-controller;
17 #gpio-cells = <2>;
21 gpio-controller;
26 gpio-controller;
31 gpio-controller;
36 gpio-controller;
41 gpio-controller;
46 gpio-controller;
[all …]
A Dexynos5250-pinctrl.dtsi18 gpio-controller;
19 #gpio-cells = <2>;
26 gpio-controller;
27 #gpio-cells = <2>;
34 gpio-controller;
42 gpio-controller;
50 gpio-controller;
58 gpio-controller;
66 gpio-controller;
74 gpio-controller;
[all …]
A Dexynos4x12-pinctrl.dtsi18 gpio-controller;
19 #gpio-cells = <2>;
26 gpio-controller;
27 #gpio-cells = <2>;
34 gpio-controller;
42 gpio-controller;
50 gpio-controller;
58 gpio-controller;
66 gpio-controller;
74 gpio-controller;
[all …]
A Dexynos4210-pinctrl.dtsi20 gpio-controller;
21 #gpio-cells = <2>;
28 gpio-controller;
36 gpio-controller;
44 gpio-controller;
52 gpio-controller;
60 gpio-controller;
68 gpio-controller;
76 gpio-controller;
84 gpio-controller;
[all …]
A Dexynos54xx-pinctrl.dtsi20 gpio-controller;
21 #gpio-cells = <2>;
28 gpio-controller;
29 #gpio-cells = <2>;
39 gpio-controller;
50 gpio-controller;
58 gpio-controller;
69 gpio-controller;
77 gpio-controller;
85 gpio-controller;
[all …]
A Dstm32f429-pinctrl.dtsi14 gpioa: gpio@40020000 {
18 gpiob: gpio@40020400 {
22 gpioc: gpio@40020800 {
26 gpiod: gpio@40020c00 {
30 gpioe: gpio@40021000 {
34 gpiof: gpio@40021400 {
38 gpiog: gpio@40021800 {
42 gpioh: gpio@40021c00 {
46 gpioi: gpio@40022000 {
50 gpioj: gpio@40022400 {
[all …]
A Dstm32f469-pinctrl.dtsi13 gpioa: gpio@40020000 {
17 gpiob: gpio@40020400 {
21 gpioc: gpio@40020800 {
25 gpiod: gpio@40020c00 {
29 gpioe: gpio@40021000 {
33 gpiof: gpio@40021400 {
37 gpiog: gpio@40021800 {
41 gpioh: gpio@40021c00 {
45 gpioi: gpio@40022000 {
49 gpioj: gpio@40022400 {
[all …]
A Dstm32mp15xxaa-pinctrl.dtsi10 gpioa: gpio@50002000 {
16 gpiob: gpio@50003000 {
22 gpioc: gpio@50004000 {
28 gpiod: gpio@50005000 {
34 gpioe: gpio@50006000 {
40 gpiof: gpio@50007000 {
46 gpiog: gpio@50008000 {
52 gpioh: gpio@50009000 {
58 gpioi: gpio@5000a000 {
64 gpioj: gpio@5000b000 {
[all …]
A Dstm32mp15xxac-pinctrl.dtsi10 gpioa: gpio@50002000 {
13 gpio-ranges = <&pinctrl 0 0 16>;
16 gpiob: gpio@50003000 {
22 gpioc: gpio@50004000 {
28 gpiod: gpio@50005000 {
34 gpioe: gpio@50006000 {
40 gpiof: gpio@50007000 {
46 gpiog: gpio@50008000 {
52 gpioh: gpio@50009000 {
58 gpioi: gpio@5000a000 {
[all …]
A Dkeystone-k2hk.dtsi48 gpio-controller;
49 #gpio-cells = <2>;
55 gpio-controller;
56 #gpio-cells = <2>;
62 gpio-controller;
63 #gpio-cells = <2>;
69 gpio-controller;
76 gpio-controller;
83 gpio-controller;
90 gpio-controller;
[all …]
A Dstm32mp15xxab-pinctrl.dtsi10 gpioa: gpio@50002000 {
13 gpio-ranges = <&pinctrl 0 0 16>;
16 gpiob: gpio@50003000 {
19 gpio-ranges = <&pinctrl 0 16 16>;
22 gpioc: gpio@50004000 {
25 gpio-ranges = <&pinctrl 0 32 16>;
28 gpiod: gpio@50005000 {
34 gpioe: gpio@50006000 {
40 gpiof: gpio@50007000 {
46 gpiog: gpio@50008000 {
[all …]
A Dstm32mp15xxad-pinctrl.dtsi10 gpioa: gpio@50002000 {
13 gpio-ranges = <&pinctrl 0 0 16>;
16 gpiob: gpio@50003000 {
19 gpio-ranges = <&pinctrl 0 16 16>;
22 gpioc: gpio@50004000 {
25 gpio-ranges = <&pinctrl 0 32 16>;
28 gpiod: gpio@50005000 {
34 gpioe: gpio@50006000 {
40 gpiof: gpio@50007000 {
46 gpiog: gpio@50008000 {
[all …]
/u-boot/drivers/gpio/
A Dadi_gpio2.c64 if (gpio == GPIO_PB15 || gpio == GPIO_PC14 || gpio == GPIO_PC15 || in check_gpio()
65 gpio == GPIO_PH14 || gpio == GPIO_PH15 || in check_gpio()
66 gpio == GPIO_PJ14 || gpio == GPIO_PJ15) in check_gpio()
264 gpio, get_label(gpio)); in gpio_request()
269 "by %s!\n", gpio, get_label(gpio)); in gpio_request()
273 reserve(gpio, gpio); in gpio_request()
291 unreserve(gpio, gpio); in gpio_free()
314 gpio, get_label(gpio)); in special_gpio_request()
360 if (!is_reserved(gpio, gpio, 0)) { in gpio_direction_input()
386 if (!is_reserved(gpio, gpio, 0)) { in gpio_direction_output()
[all …]
A Dmvgpio.c24 if (gpio >= MV_MAX_GPIO) { in gpio_request()
31 int gpio_free(unsigned gpio) in gpio_free() argument
36 int gpio_direction_input(unsigned gpio) in gpio_direction_input() argument
40 if (gpio >= MV_MAX_GPIO) { in gpio_direction_input()
54 if (gpio >= MV_MAX_GPIO) { in gpio_direction_output()
61 gpio_set_value(gpio, value); in gpio_direction_output()
65 int gpio_get_value(unsigned gpio) in gpio_get_value() argument
70 if (gpio >= MV_MAX_GPIO) { in gpio_get_value()
78 return GPIO_VAL(gpio, gpio_val); in gpio_get_value()
81 int gpio_set_value(unsigned gpio, int value) in gpio_set_value() argument
[all …]
A Dmpc83xx_gpio.c39 if (gpio >= MAX_NUM_GPIOS) in gpio_request()
45 int gpio_free(unsigned gpio) in gpio_free() argument
60 ctrlr = gpio >> 5; in gpio_direction_input()
61 line = gpio & (0x1F); in gpio_direction_input()
84 gpio_set_value(gpio, value); in gpio_direction_output()
87 ctrlr = gpio >> 5; in gpio_direction_output()
88 line = gpio & (0x1F); in gpio_direction_output()
108 ctrlr = gpio >> 5; in gpio_get_value()
109 line = gpio & (0x1F); in gpio_get_value()
132 ctrlr = gpio >> 5; in gpio_set_value()
[all …]
A Dspear_gpio.c17 static int gpio_direction(unsigned gpio, in gpio_direction() argument
26 val |= 1 << gpio; in gpio_direction()
28 val &= ~(1 << gpio); in gpio_direction()
40 writel(1 << gpio, &regs->gpiodata[DATA_REG_ADDR(gpio)]); in gpio_set_value()
47 int gpio_get_value(unsigned gpio) in gpio_get_value() argument
59 if (gpio >= SPEAR_GPIO_COUNT) in gpio_request()
65 int gpio_free(unsigned gpio) in gpio_free() argument
70 void gpio_toggle_value(unsigned gpio) in gpio_toggle_value() argument
72 gpio_set_value(gpio, !gpio_get_value(gpio)); in gpio_toggle_value()
75 int gpio_direction_input(unsigned gpio) in gpio_direction_input() argument
[all …]
A Dtegra_gpio.c55 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); in get_config()
68 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); in set_config()
90 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), dir ? "OUT" : "IN"); in get_direction()
103 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), output ? "OUT" : "IN"); in set_direction()
121 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), high); in set_level()
157 set_level(gpio, value); in tegra_gpio_direction_output()
176 gpio, GPIO_FULLPORT(gpio), GPIO_BIT(gpio)); in tegra_gpio_get_value()
193 gpio, GPIO_FULLPORT(gpio), GPIO_BIT(gpio), value); in tegra_gpio_set_value()
228 if (!get_config(gpio)) in tegra_gpio_get_function()
239 int gpio, port, ret; in tegra_gpio_xlate() local
[all …]
A Ds5p_gpio.c23 #define CON_SFR(gpio, cfg) ((cfg) << ((gpio) << 2)) argument
24 #define CON_SFR_UNSHIFT(val, gpio) ((val) >> ((gpio) << 2)) argument
26 #define DAT_MASK(gpio) (0x1 << (gpio)) argument
27 #define DAT_SET(gpio) (0x1 << (gpio)) argument
29 #define PULL_MASK(gpio) (0x3 << ((gpio) << 1)) argument
30 #define PULL_MODE(gpio, pull) ((pull) << ((gpio) << 1)) argument
32 #define DRV_MASK(gpio) (0x3 << ((gpio) << 1)) argument
33 #define DRV_SET(gpio, mode) ((mode) << ((gpio) << 1)) argument
34 #define RATE_MASK(gpio) (0x1 << (gpio + 16)) argument
35 #define RATE_SET(gpio) (0x1 << (gpio + 16)) argument
[all …]
A Dkona_gpio.c17 #define GPIO_BANK(gpio) ((gpio) >> 5) argument
18 #define GPIO_BITMASK(gpio) \ argument
19 (1UL << ((gpio) & (GPIO_PER_BANK - 1)))
58 int gpio_free(unsigned gpio) in gpio_free() argument
84 int bank_id = GPIO_BANK(gpio); in gpio_direction_output()
85 int bitmask = GPIO_BITMASK(gpio); in gpio_direction_output()
101 int gpio_get_value(unsigned gpio) in gpio_get_value() argument
103 int bank_id = GPIO_BANK(gpio); in gpio_get_value()
104 int bitmask = GPIO_BITMASK(gpio); in gpio_get_value()
122 int bank_id = GPIO_BANK(gpio); in gpio_set_value()
[all …]
/u-boot/arch/m68k/cpu/mcf5445x/
A Ddspi.c16 struct gpio *gpio = (struct gpio *)MMAP_GPIO; in dspi_chip_select() local
21 clrbits_8(&gpio->par_dspi, GPIO_PAR_DSPI_PCS0_PCS0); in dspi_chip_select()
22 setbits_8(&gpio->par_dspi, GPIO_PAR_DSPI_PCS0_PCS0); in dspi_chip_select()
25 clrbits_8(&gpio->par_dspi, GPIO_PAR_DSPI_PCS1_PCS1); in dspi_chip_select()
26 setbits_8(&gpio->par_dspi, GPIO_PAR_DSPI_PCS1_PCS1); in dspi_chip_select()
34 setbits_8(&gpio->par_dma, GPIO_PAR_DMA_DACK0_PCS3); in dspi_chip_select()
45 clrbits_8(&gpio->par_dspi0, in dspi_chip_select()
47 setbits_8(&gpio->par_dspi0, in dspi_chip_select()
51 clrbits_8(&gpio->par_dspiow, in dspi_chip_select()
53 setbits_8(&gpio->par_dspiow, in dspi_chip_select()
[all …]
A Dcpu_init.c77 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()
117 out_8(&gpio->par_fbctl, in cpu_init_f()
121 out_8(&gpio->par_be, 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()
370 clrbits_8(&gpio->par_uart, in uart_port_conf()
372 setbits_8(&gpio->par_uart, in uart_port_conf()
[all …]
/u-boot/arch/powerpc/include/asm/
A Dmpc85xx_gpio.h30 dir |= (in_be32(&gpio->gpdir) & ~mask); in mpc85xx_gpio_set()
31 val |= (in_be32(&gpio->gpdat) & ~mask); in mpc85xx_gpio_set()
38 out_be32(&gpio->gpdat, val); in mpc85xx_gpio_set()
39 out_be32(&gpio->gpdir, dir); in mpc85xx_gpio_set()
62 return in_be32(&gpio->gpdat) & mask; in mpc85xx_gpio_get()
83 mpc85xx_gpio_set_in(1U << gpio); in gpio_direction_input()
90 mpc85xx_gpio_set_high(1U << gpio); in gpio_direction_output()
92 mpc85xx_gpio_set_low(1U << gpio); in gpio_direction_output()
104 mpc85xx_gpio_set_high(1U << gpio); in gpio_set_value()
106 mpc85xx_gpio_set_low(1U << gpio); in gpio_set_value()
[all …]
/u-boot/drivers/misc/
A Dsmsc_sio1007.c71 if (gpio < 0 || gpio > SIO1007_GPIO_NUM) in sio1007_gpio_config()
75 gpio -= GPIO_NUM_PER_GROUP; in sio1007_gpio_config()
82 sio1007_clrsetbits(port, reg, 1 << gpio, dir << gpio); in sio1007_gpio_config()
83 sio1007_clrsetbits(port, reg + 1, 1 << gpio, pol << gpio); in sio1007_gpio_config()
84 sio1007_clrsetbits(port, reg + 2, 1 << gpio, type << gpio); in sio1007_gpio_config()
95 if (gpio < 0 || gpio > SIO1007_GPIO_NUM) in sio1007_gpio_get_value()
99 gpio -= GPIO_NUM_PER_GROUP; in sio1007_gpio_get_value()
103 if (val & (1 << gpio)) in sio1007_gpio_get_value()
114 if (gpio < 0 || gpio > SIO1007_GPIO_NUM) in sio1007_gpio_set_value()
122 data &= ~(1 << gpio); in sio1007_gpio_set_value()
[all …]
/u-boot/arch/m68k/cpu/mcf5227x/
A Ddspi.c16 struct gpio *gpio = (struct gpio *)MMAP_GPIO; in dspi_chip_select() local
20 clrbits_8(&gpio->par_dspi, GPIO_PAR_DSPI_PCS0_UNMASK); in dspi_chip_select()
21 setbits_8(&gpio->par_dspi, GPIO_PAR_DSPI_PCS0_PCS0); in dspi_chip_select()
24 clrbits_8(&gpio->par_timer, ~GPIO_PAR_TIMER_T2IN_UNMASK); in dspi_chip_select()
25 setbits_8(&gpio->par_timer, GPIO_PAR_TIMER_T2IN_DSPIPCS2); in dspi_chip_select()
32 struct gpio *gpio = (struct gpio *)MMAP_GPIO; in dspi_chip_unselect() local
36 clrbits_8(&gpio->par_dspi, GPIO_PAR_DSPI_PCS0_PCS0); in dspi_chip_unselect()
39 clrbits_8(&gpio->par_timer, ~GPIO_PAR_TIMER_T2IN_UNMASK); in dspi_chip_unselect()

Completed in 36 milliseconds

12345678910>>...48