Home
last modified time | relevance | path

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

12345678910

/openbmc/u-boot/arch/m68k/include/asm/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/u-boot/arch/powerpc/include/asm/
H A 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()
/openbmc/u-boot/drivers/gpio/
H A 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()
H A 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 …]
H A 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()
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.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 …]
H A 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_output(struct davinci_gpio *bank, unsigned int gpio, int value) in _gpio_direction_output()
352 static int _gpio_direction_input(struct davinci_gpio *bank, unsigned int gpio) in _gpio_direction_input()
358 static int _gpio_get_value(struct davinci_gpio *bank, unsigned int gpio) in _gpio_get_value()
365 static int _gpio_set_value(struct davinci_gpio *bank, unsigned int gpio, int value) in _gpio_set_value()
375 static int _gpio_get_dir(struct davinci_gpio *bank, unsigned int gpio) in _gpio_get_dir()
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 …]
H A 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()
H A 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()
H A 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()
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 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()
H A 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
H A 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()
/openbmc/qemu/tests/qtest/
H A Dstm32l4x5_gpio-test.c94 static uint32_t gpio_readl(unsigned int gpio, unsigned int offset) in gpio_readl()
99 static void gpio_writel(unsigned int gpio, unsigned int offset, uint32_t value) in gpio_writel()
104 static void gpio_set_bit(unsigned int gpio, unsigned int reg, in gpio_set_bit()
111 static void gpio_set_2bits(unsigned int gpio, unsigned int reg, in gpio_set_2bits()
124 static void gpio_set_irq(unsigned int gpio, int num, int level) in gpio_set_irq()
131 static void disconnect_all_pins(unsigned int gpio) in disconnect_all_pins()
144 static uint32_t get_disconnected_pins(unsigned int gpio) in get_disconnected_pins()
159 static uint32_t reset(uint32_t gpio, unsigned int offset) in reset()
280 uint32_t gpio = test_gpio_addr(data); in test_gpio_output_mode() local
315 uint32_t gpio = test_gpio_addr(data); in test_gpio_input_mode() local
[all …]
/openbmc/u-boot/arch/m68k/cpu/mcf532x/
H A Dcpu_init.c26 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
118 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
172 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
208 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
296 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
333 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
/openbmc/u-boot/arch/m68k/cpu/mcf5227x/
H A Dcpu_init.c28 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
116 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
144 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_port_conf() local
154 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_claim_bus() local
179 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_release_bus() local
/openbmc/u-boot/arch/m68k/cpu/mcf5445x/
H A Dcpu_init.c78 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
247 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
376 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
439 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_port_conf() local
464 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_claim_bus() local
516 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_release_bus() local
/openbmc/skeleton/libopenbmc_intf/
H A Dgpio.c26 int gpio_write(GPIO* gpio, uint8_t value) in gpio_write()
46 int gpio_read(GPIO* gpio, uint8_t *value) in gpio_read()
184 int convert_gpio_to_num(const char* gpio) in convert_gpio_to_num()
279 int gpio_get_params(GPIO* gpio) in gpio_get_params()
350 int gpio_open(GPIO* gpio, uint8_t default_value) in gpio_open()
395 void gpio_close(GPIO* gpio) in gpio_close()
/openbmc/u-boot/arch/mips/mach-jz47xx/jz4780/
H A 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()
/openbmc/u-boot/arch/m68k/cpu/mcf547x_8x/
H A Dcpu_init.c31 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
103 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
128 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local

12345678910