Home
last modified time | relevance | path

Searched defs:gpio (Results 1 – 25 of 165) sorted by relevance

1234567

/third_party/uboot/u-boot-2020.01/arch/m68k/include/asm/
Dimmap_5445x.h100 typedef struct gpio { struct
101 u8 podr_fec0h; /* FEC0 High Port Output Data Register */
102 u8 podr_fec0l; /* FEC0 Low Port Output Data Register */
103 u8 podr_ssi; /* SSI Port Output Data Register */
104 u8 podr_fbctl; /* Flexbus Control Port Output Data Register */
105 u8 podr_be; /* Flexbus Byte Enable Port Output Data Register */
106 u8 podr_cs; /* Flexbus Chip-Select Port Output Data Register */
107 u8 podr_dma; /* DMA Port Output Data Register */
108 u8 podr_feci2c; /* FEC1 / I2C Port Output Data Register */
109 u8 resv0[0x1];
[all …]
Dimmap_5227x.h91 typedef struct gpio { struct
93 u8 podr_be; /* 0x00 */
94 u8 podr_cs; /* 0x01 */
95 u8 podr_fbctl; /* 0x02 */
96 u8 podr_i2c; /* 0x03 */
97 u8 rsvd1; /* 0x04 */
98 u8 podr_uart; /* 0x05 */
99 u8 podr_dspi; /* 0x06 */
100 u8 podr_timer; /* 0x07 */
101 u8 podr_lcdctl; /* 0x08 */
[all …]
Dimmap_547x_8x.h118 typedef struct gpio { struct
120 u8 podr_fbctl; /*0x00 */
121 u8 podr_fbcs; /*0x01 */
122 u8 podr_dma; /*0x02 */
123 u8 rsvd1; /*0x03 */
124 u8 podr_fec0h; /*0x04 */
125 u8 podr_fec0l; /*0x05 */
126 u8 podr_fec1h; /*0x06 */
127 u8 podr_fec1l; /*0x07 */
128 u8 podr_feci2c; /*0x08 */
[all …]
Dimmap_5441x.h125 typedef struct gpio { struct
126 u8 podr_a; /* 0x00 */
127 u8 podr_b; /* 0x01 */
128 u8 podr_c; /* 0x02 */
129 u8 podr_d; /* 0x03 */
130 u8 podr_e; /* 0x04 */
131 u8 podr_f; /* 0x05 */
132 u8 podr_g; /* 0x06 */
133 u8 podr_h; /* 0x07 */
134 u8 podr_i; /* 0x08 */
[all …]
/third_party/uboot/u-boot-2020.01/arch/powerpc/include/asm/
Dmpc85xx_gpio.h22 ccsr_gpio_t *gpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in mpc85xx_gpio_set() local
58 ccsr_gpio_t *gpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in mpc85xx_gpio_get() local
68 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request()
74 static inline int gpio_free(unsigned gpio) in gpio_free()
80 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
86 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
95 static inline int gpio_get_value(unsigned gpio) in gpio_get_value()
100 static inline int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
109 static inline int gpio_is_valid(int gpio) in gpio_is_valid()
/third_party/uboot/u-boot-2020.01/drivers/gpio/
Ds5p_gpio.c21 #define CON_SFR(gpio, cfg) ((cfg) << ((gpio) << 2)) argument
22 #define CON_SFR_UNSHIFT(val, gpio) ((val) >> ((gpio) << 2)) argument
24 #define DAT_MASK(gpio) (0x1 << (gpio)) argument
25 #define DAT_SET(gpio) (0x1 << (gpio)) argument
27 #define PULL_MASK(gpio) (0x3 << ((gpio) << 1)) argument
28 #define PULL_MODE(gpio, pull) ((pull) << ((gpio) << 1)) argument
30 #define DRV_MASK(gpio) (0x3 << ((gpio) << 1)) argument
31 #define DRV_SET(gpio, mode) ((mode) << ((gpio) << 1)) argument
32 #define RATE_MASK(gpio) (0x1 << (gpio + 16)) argument
33 #define RATE_SET(gpio) (0x1 << (gpio + 16)) argument
[all …]
Dspear_gpio.c16 static int gpio_direction(unsigned gpio, in gpio_direction()
34 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
46 int gpio_get_value(unsigned gpio) in gpio_get_value()
56 int gpio_request(unsigned gpio, const char *label) in gpio_request()
64 int gpio_free(unsigned gpio) in gpio_free()
69 void gpio_toggle_value(unsigned gpio) in gpio_toggle_value()
74 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
79 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
Dmvgpio.c21 int gpio_request(unsigned gpio, const char *label) in gpio_request()
30 int gpio_free(unsigned gpio) in gpio_free()
35 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
49 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
64 int gpio_get_value(unsigned gpio) in gpio_get_value()
80 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
Domap_gpio.c44 static inline int get_gpio_index(int gpio) in get_gpio_index()
49 int gpio_is_valid(int gpio) in gpio_is_valid()
54 static void _set_gpio_direction(const struct gpio_bank *bank, int gpio, in _set_gpio_direction()
74 static int _get_gpio_direction(const struct gpio_bank *bank, int gpio) in _get_gpio_direction()
89 static void _set_gpio_dataout(const struct gpio_bank *bank, int gpio, in _set_gpio_dataout()
104 static int _get_gpio_value(const struct gpio_bank *bank, int gpio) in _get_gpio_value()
126 static inline const struct gpio_bank *get_gpio_bank(int gpio) in get_gpio_bank()
131 static int check_gpio(int gpio) in check_gpio()
143 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
158 int gpio_get_value(unsigned gpio) in gpio_get_value()
[all …]
Dadi_gpio2.c20 static void gpio_error(unsigned gpio) in gpio_error()
59 inline int check_gpio(unsigned gpio) in check_gpio()
72 static void port_setup(unsigned gpio, unsigned short usage) in port_setup()
111 unsigned short get_gpio_dir(unsigned gpio) in get_gpio_dir()
246 int gpio_request(unsigned gpio, const char *label) in gpio_request()
279 int gpio_free(unsigned gpio) in gpio_free()
299 int special_gpio_request(unsigned gpio, const char *label) in special_gpio_request()
331 void special_gpio_free(unsigned gpio) in special_gpio_free()
344 static inline void __gpio_direction_input(unsigned gpio) in __gpio_direction_input()
354 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
[all …]
Dda8xx_gpio.c313 int gpio_request(unsigned int gpio, const char *label) in gpio_request()
330 int gpio_free(unsigned int gpio) in gpio_free()
345 static int _gpio_direction_input(struct davinci_gpio *bank, unsigned int gpio) in _gpio_direction_input()
351 static int _gpio_get_value(struct davinci_gpio *bank, unsigned int gpio) in _gpio_get_value()
358 static int _gpio_set_value(struct davinci_gpio *bank, unsigned int gpio, int value) in _gpio_set_value()
368 static int _gpio_get_dir(struct davinci_gpio *bank, unsigned int gpio) in _gpio_get_dir()
373 static int _gpio_direction_output(struct davinci_gpio *bank, unsigned int gpio, in _gpio_direction_output()
384 unsigned int gpio, dir, val; in gpio_info() local
399 int gpio_direction_input(unsigned int gpio) in gpio_direction_input()
407 int gpio_direction_output(unsigned int gpio, int value) in gpio_direction_output()
[all …]
Dpca9698.c42 static void pca9698_set_bit(unsigned gpio, u8 *buffer, unsigned value) in pca9698_set_bit()
53 int pca9698_request(unsigned gpio, const char *label) in pca9698_request()
61 void pca9698_free(unsigned gpio) in pca9698_free()
65 int pca9698_direction_input(u8 addr, unsigned gpio) in pca9698_direction_input()
79 int pca9698_direction_output(u8 addr, unsigned gpio, int value) in pca9698_direction_output()
97 int pca9698_get_value(u8 addr, unsigned gpio) in pca9698_get_value()
114 int pca9698_set_value(u8 addr, unsigned gpio, int value) in pca9698_set_value()
Dmpc83xx_gpio.c36 int gpio_request(unsigned gpio, const char *label) in gpio_request()
44 int gpio_free(unsigned gpio) in gpio_free()
51 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
71 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
99 int gpio_get_value(unsigned gpio) in gpio_get_value()
118 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
Dkona_gpio.c16 #define GPIO_BANK(gpio) ((gpio) >> 5) argument
17 #define GPIO_BITMASK(gpio) \ argument
45 int gpio_request(unsigned gpio, const char *label) in gpio_request()
57 int gpio_free(unsigned gpio) in gpio_free()
69 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
81 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
100 int gpio_get_value(unsigned gpio) in gpio_get_value()
119 void gpio_set_value(unsigned gpio, int value) in gpio_set_value()
Ddb8500_gpio.c60 static void __iomem *get_gpio_addr(unsigned gpio) in get_gpio_addr()
78 static unsigned get_gpio_offset(unsigned gpio) in get_gpio_offset()
84 static void gpio_set_mode(unsigned gpio, enum db8500_gpio_alt mode) in gpio_set_mode()
115 void db8500_gpio_set_pull(unsigned gpio, enum db8500_gpio_pull pull) in db8500_gpio_set_pull()
135 void db8500_gpio_make_input(unsigned gpio) in db8500_gpio_make_input()
143 int db8500_gpio_get_input(unsigned gpio) in db8500_gpio_get_input()
155 void db8500_gpio_make_output(unsigned gpio, int val) in db8500_gpio_make_output()
164 void db8500_gpio_set_output(unsigned gpio, int val) in db8500_gpio_set_output()
Dvybrid_gpio.c23 static int vybrid_gpio_direction_input(struct udevice *dev, unsigned gpio) in vybrid_gpio_direction_input()
33 static int vybrid_gpio_direction_output(struct udevice *dev, unsigned gpio, in vybrid_gpio_direction_output()
45 static int vybrid_gpio_get_value(struct udevice *dev, unsigned gpio) in vybrid_gpio_get_value()
52 static int vybrid_gpio_set_value(struct udevice *dev, unsigned gpio, in vybrid_gpio_set_value()
64 static int vybrid_gpio_get_function(struct udevice *dev, unsigned gpio) in vybrid_gpio_get_function()
Dtegra_gpio.c43 static int get_config(unsigned gpio) in get_config()
60 static void set_config(unsigned gpio, int type) in set_config()
78 static int get_direction(unsigned gpio) in get_direction()
95 static void set_direction(unsigned gpio, int output) in set_direction()
113 static void set_level(unsigned gpio, int high) in set_level()
153 int gpio = state->base_gpio + offset; in tegra_gpio_direction_output() local
171 int gpio = state->base_gpio + offset; in tegra_gpio_get_value() local
189 int gpio = state->base_gpio + offset; in tegra_gpio_set_value() local
225 int gpio = state->base_gpio + offset; in tegra_gpio_get_function() local
238 int gpio, port, ret; in tegra_gpio_xlate() local
Dhi6220_gpio.c13 static int hi6220_gpio_direction_input(struct udevice *dev, unsigned int gpio) in hi6220_gpio_direction_input()
25 static int hi6220_gpio_set_value(struct udevice *dev, unsigned gpio, in hi6220_gpio_set_value()
34 static int hi6220_gpio_direction_output(struct udevice *dev, unsigned gpio, in hi6220_gpio_direction_output()
49 static int hi6220_gpio_get_value(struct udevice *dev, unsigned gpio) in hi6220_gpio_get_value()
Dsh_pfc.c172 static int setup_data_reg(struct pinmux_info *gpioc, unsigned gpio) in setup_data_reg()
228 static int get_data_reg(struct pinmux_info *gpioc, unsigned gpio, in get_data_reg()
290 static int get_gpio_enum_id(struct pinmux_info *gpioc, unsigned gpio, in get_gpio_enum_id()
322 static int pinmux_config_gpio(struct pinmux_info *gpioc, unsigned gpio, in pinmux_config_gpio()
496 unsigned gpio, int new_pinmux_type) in pinmux_direction()
543 unsigned gpio, int value) in sh_gpio_set_value()
560 static int sh_gpio_get_value(struct pinmux_info *gpioc, unsigned gpio) in sh_gpio_get_value()
605 int gpio_request(unsigned gpio, const char *label) in gpio_request()
611 int gpio_free(unsigned gpio) in gpio_free()
617 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
[all …]
Dbcm2835_gpio.c20 static int bcm2835_gpio_direction_input(struct udevice *dev, unsigned gpio) in bcm2835_gpio_direction_input()
33 static int bcm2835_gpio_direction_output(struct udevice *dev, unsigned int gpio, in bcm2835_gpio_direction_output()
49 static int bcm2835_get_value(const struct bcm2835_gpios *gpios, unsigned gpio) in bcm2835_get_value()
58 static int bcm2835_gpio_get_value(struct udevice *dev, unsigned gpio) in bcm2835_gpio_get_value()
65 static int bcm2835_gpio_set_value(struct udevice *dev, unsigned gpio, in bcm2835_gpio_set_value()
/third_party/uboot/u-boot-2020.01/arch/m68k/cpu/mcf532x/
Dcpu_init.c27 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
119 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
173 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
209 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
297 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
334 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
/third_party/uboot/u-boot-2020.01/arch/m68k/cpu/mcf5445x/
Dcpu_init.c73 gpio_t *gpio = (gpio_t *)MMAP_GPIO; in cfspi_port_conf() local
105 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
278 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
407 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
/third_party/uboot/u-boot-2020.01/arch/mips/mach-jz47xx/jz4780/
Dgpio.c8 int jz47xx_gpio_get_value(unsigned int gpio) in jz47xx_gpio_get_value()
17 void jz47xx_gpio_direction_input(unsigned int gpio) in jz47xx_gpio_direction_input()
28 void jz47xx_gpio_direction_output(unsigned int gpio, int value) in jz47xx_gpio_direction_output()
/third_party/uboot/u-boot-2020.01/arch/m68k/cpu/mcf5227x/
Dcpu_init.c22 gpio_t *gpio = (gpio_t *)MMAP_GPIO; in cfspi_port_conf() local
38 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
128 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
/third_party/uboot/u-boot-2020.01/arch/m68k/cpu/mcf547x_8x/
Dcpu_init.c32 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
104 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
129 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local

1234567