Home
last modified time | relevance | path

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

1234567

/rk3399_rockchip-uboot/arch/m68k/include/asm/
H A Dimmap_5445x.h101 typedef struct gpio { struct
102 u8 podr_fec0h; /* FEC0 High Port Output Data Register */
103 u8 podr_fec0l; /* FEC0 Low Port Output Data Register */
104 u8 podr_ssi; /* SSI Port Output Data Register */
105 u8 podr_fbctl; /* Flexbus Control Port Output Data Register */
106 u8 podr_be; /* Flexbus Byte Enable Port Output Data Register */
107 u8 podr_cs; /* Flexbus Chip-Select Port Output Data Register */
108 u8 podr_dma; /* DMA Port Output Data Register */
109 u8 podr_feci2c; /* FEC1 / I2C Port Output Data Register */
110 u8 resv0[0x1];
[all …]
H A Dimmap_5227x.h92 typedef struct gpio { struct
94 u8 podr_be; /* 0x00 */
95 u8 podr_cs; /* 0x01 */
96 u8 podr_fbctl; /* 0x02 */
97 u8 podr_i2c; /* 0x03 */
98 u8 rsvd1; /* 0x04 */
99 u8 podr_uart; /* 0x05 */
100 u8 podr_dspi; /* 0x06 */
101 u8 podr_timer; /* 0x07 */
102 u8 podr_lcdctl; /* 0x08 */
[all …]
H A Dimmap_547x_8x.h119 typedef struct gpio { struct
121 u8 podr_fbctl; /*0x00 */
122 u8 podr_fbcs; /*0x01 */
123 u8 podr_dma; /*0x02 */
124 u8 rsvd1; /*0x03 */
125 u8 podr_fec0h; /*0x04 */
126 u8 podr_fec0l; /*0x05 */
127 u8 podr_fec1h; /*0x06 */
128 u8 podr_fec1l; /*0x07 */
129 u8 podr_feci2c; /*0x08 */
[all …]
H A Dimmap_5441x.h126 typedef struct gpio { struct
127 u8 podr_a; /* 0x00 */
128 u8 podr_b; /* 0x01 */
129 u8 podr_c; /* 0x02 */
130 u8 podr_d; /* 0x03 */
131 u8 podr_e; /* 0x04 */
132 u8 podr_f; /* 0x05 */
133 u8 podr_g; /* 0x06 */
134 u8 podr_h; /* 0x07 */
135 u8 podr_i; /* 0x08 */
[all …]
/rk3399_rockchip-uboot/drivers/gpio/
H A Ds5p_gpio.c22 #define CON_SFR(gpio, cfg) ((cfg) << ((gpio) << 2)) argument
23 #define CON_SFR_UNSHIFT(val, gpio) ((val) >> ((gpio) << 2)) argument
25 #define DAT_MASK(gpio) (0x1 << (gpio)) argument
26 #define DAT_SET(gpio) (0x1 << (gpio)) argument
28 #define PULL_MASK(gpio) (0x3 << ((gpio) << 1)) argument
29 #define PULL_MODE(gpio, pull) ((pull) << ((gpio) << 1)) argument
31 #define DRV_MASK(gpio) (0x3 << ((gpio) << 1)) argument
32 #define DRV_SET(gpio, mode) ((mode) << ((gpio) << 1)) argument
33 #define RATE_MASK(gpio) (0x1 << (gpio + 16)) argument
34 #define RATE_SET(gpio) (0x1 << (gpio + 16)) argument
[all …]
H A Dspear_gpio.c17 static int gpio_direction(unsigned gpio, in gpio_direction()
35 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
47 int gpio_get_value(unsigned gpio) in gpio_get_value()
57 int gpio_request(unsigned gpio, const char *label) in gpio_request()
65 int gpio_free(unsigned gpio) in gpio_free()
70 void gpio_toggle_value(unsigned gpio) in gpio_toggle_value()
75 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
80 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
H A Dmvgpio.c22 int gpio_request(unsigned gpio, const char *label) in gpio_request()
31 int gpio_free(unsigned gpio) in gpio_free()
36 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
50 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
65 int gpio_get_value(unsigned gpio) in gpio_get_value()
81 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
H A 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 …]
H A Domap_gpio.c45 static inline int get_gpio_index(int gpio) in get_gpio_index()
50 int gpio_is_valid(int gpio) in gpio_is_valid()
55 static void _set_gpio_direction(const struct gpio_bank *bank, int gpio, in _set_gpio_direction()
75 static int _get_gpio_direction(const struct gpio_bank *bank, int gpio) in _get_gpio_direction()
90 static void _set_gpio_dataout(const struct gpio_bank *bank, int gpio, in _set_gpio_dataout()
105 static int _get_gpio_value(const struct gpio_bank *bank, int gpio) in _get_gpio_value()
127 static inline const struct gpio_bank *get_gpio_bank(int gpio) in get_gpio_bank()
132 static int check_gpio(int gpio) in check_gpio()
144 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
159 int gpio_get_value(unsigned gpio) in gpio_get_value()
[all …]
H A Dxilinx_gpio.c48 static struct xilinx_gpio_priv *gpio_get_controller(unsigned gpio) in gpio_get_controller()
66 static char *get_name(unsigned gpio) in get_name()
84 static int gpio_get_output_value(unsigned gpio) in gpio_get_output_value()
101 static int gpio_get_input_value(unsigned gpio) in gpio_get_input_value()
121 static int gpio_set_direction(unsigned gpio, enum gpio_direction direction) in gpio_set_direction()
148 static int gpio_get_direction(unsigned gpio) in gpio_get_direction()
173 int gpio_get_value(unsigned gpio) in gpio_get_value()
186 static int gpio_set_output_value(unsigned gpio, int value) in gpio_set_output_value()
212 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
221 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
[all …]
H A Dda8xx_gpio.c307 int gpio_request(unsigned gpio, const char *label) in gpio_request()
324 int gpio_free(unsigned gpio) in gpio_free()
338 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
347 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
357 int gpio_get_value(unsigned gpio) in gpio_get_value()
367 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
383 unsigned gpio, dir, val; in gpio_info() local
H A Dpca9698.c43 static void pca9698_set_bit(unsigned gpio, u8 *buffer, unsigned value) in pca9698_set_bit()
54 int pca9698_request(unsigned gpio, const char *label) in pca9698_request()
62 void pca9698_free(unsigned gpio) in pca9698_free()
66 int pca9698_direction_input(u8 addr, unsigned gpio) in pca9698_direction_input()
80 int pca9698_direction_output(u8 addr, unsigned gpio, int value) in pca9698_direction_output()
98 int pca9698_get_value(u8 addr, unsigned gpio) in pca9698_get_value()
115 int pca9698_set_value(u8 addr, unsigned gpio, int value) in pca9698_set_value()
H A Dmpc83xx_gpio.c37 int gpio_request(unsigned gpio, const char *label) in gpio_request()
45 int gpio_free(unsigned gpio) in gpio_free()
52 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
72 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
100 int gpio_get_value(unsigned gpio) in gpio_get_value()
119 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
H A Dkona_gpio.c17 #define GPIO_BANK(gpio) ((gpio) >> 5) argument
18 #define GPIO_BITMASK(gpio) \ argument
46 int gpio_request(unsigned gpio, const char *label) in gpio_request()
58 int gpio_free(unsigned gpio) in gpio_free()
70 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
82 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
101 int gpio_get_value(unsigned gpio) in gpio_get_value()
120 void gpio_set_value(unsigned gpio, int value) in gpio_set_value()
H A Dbcm2835_gpio.c19 static int bcm2835_gpio_direction_input(struct udevice *dev, unsigned gpio) in bcm2835_gpio_direction_input()
32 static int bcm2835_gpio_direction_output(struct udevice *dev, unsigned gpio, in bcm2835_gpio_direction_output()
48 static int bcm2835_get_value(const struct bcm2835_gpios *gpios, unsigned gpio) in bcm2835_get_value()
57 static int bcm2835_gpio_get_value(struct udevice *dev, unsigned gpio) in bcm2835_gpio_get_value()
64 static int bcm2835_gpio_set_value(struct udevice *dev, unsigned gpio, in bcm2835_gpio_set_value()
76 int bcm2835_gpio_get_func_id(struct udevice *dev, unsigned gpio) in bcm2835_gpio_get_func_id()
H A 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()
H A Dtegra_gpio.c46 static int get_config(unsigned gpio) in get_config()
63 static void set_config(unsigned gpio, int type) in set_config()
81 static int get_direction(unsigned gpio) in get_direction()
98 static void set_direction(unsigned gpio, int output) in set_direction()
116 static void set_level(unsigned gpio, int high) in set_level()
156 int gpio = state->base_gpio + offset; in tegra_gpio_direction_output() local
174 int gpio = state->base_gpio + offset; in tegra_gpio_get_value() local
192 int gpio = state->base_gpio + offset; in tegra_gpio_set_value() local
228 int gpio = state->base_gpio + offset; in tegra_gpio_get_function() local
241 int gpio, port, ret; in tegra_gpio_xlate() local
H A Dvybrid_gpio.c24 static int vybrid_gpio_direction_input(struct udevice *dev, unsigned gpio) in vybrid_gpio_direction_input()
34 static int vybrid_gpio_direction_output(struct udevice *dev, unsigned gpio, in vybrid_gpio_direction_output()
46 static int vybrid_gpio_get_value(struct udevice *dev, unsigned gpio) in vybrid_gpio_get_value()
53 static int vybrid_gpio_set_value(struct udevice *dev, unsigned gpio, in vybrid_gpio_set_value()
65 static int vybrid_gpio_get_function(struct udevice *dev, unsigned gpio) in vybrid_gpio_get_function()
H A Dhi6220_gpio.c14 static int hi6220_gpio_direction_input(struct udevice *dev, unsigned int gpio) in hi6220_gpio_direction_input()
26 static int hi6220_gpio_set_value(struct udevice *dev, unsigned gpio, in hi6220_gpio_set_value()
35 static int hi6220_gpio_direction_output(struct udevice *dev, unsigned gpio, in hi6220_gpio_direction_output()
50 static int hi6220_gpio_get_value(struct udevice *dev, unsigned gpio) in hi6220_gpio_get_value()
H A 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 …]
/rk3399_rockchip-uboot/arch/powerpc/include/asm/
H A Dmpc85xx_gpio.h23 ccsr_gpio_t *gpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in mpc85xx_gpio_set() local
59 ccsr_gpio_t *gpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in mpc85xx_gpio_get() local
69 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request()
75 static inline int gpio_free(unsigned gpio) in gpio_free()
81 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
87 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
96 static inline int gpio_get_value(unsigned gpio) in gpio_get_value()
101 static inline int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
110 static inline int gpio_is_valid(int gpio) in gpio_is_valid()
/rk3399_rockchip-uboot/arch/m68k/cpu/mcf532x/
H A 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
/rk3399_rockchip-uboot/arch/m68k/cpu/mcf5445x/
H A Dcpu_init.c79 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
239 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
368 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
431 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_port_conf() local
456 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_claim_bus() local
508 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_release_bus() local
/rk3399_rockchip-uboot/arch/m68k/cpu/mcf5227x/
H A Dcpu_init.c29 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
117 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
145 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_port_conf() local
155 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_claim_bus() local
180 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_release_bus() local
/rk3399_rockchip-uboot/arch/m68k/cpu/mcf547x_8x/
H A 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