Go to the documentation of this file.
13 #ifndef _RC32434_GPIO_H_
14 #define _RC32434_GPIO_H_
16 #include <linux/types.h>
19 #define NR_BUILTIN_GPIO 32
21 #define gpio_get_value __gpio_get_value
22 #define gpio_set_value __gpio_set_value
23 #define gpio_cansleep __gpio_cansleep
25 #define gpio_to_irq(gpio) (8 + 4 * 32 + gpio)
26 #define irq_to_gpio(irq) (irq - (8 + 4 * 32))
51 #define RC32434_UART0_SOUT (1 << 0)
52 #define RC32434_UART0_SIN (1 << 1)
53 #define RC32434_UART0_RTS (1 << 2)
54 #define RC32434_UART0_CTS (1 << 3)
57 #define RC32434_MP_BIT_22 (1 << 4)
58 #define RC32434_MP_BIT_23 (1 << 5)
59 #define RC32434_MP_BIT_24 (1 << 6)
60 #define RC32434_MP_BIT_25 (1 << 7)
63 #define RC32434_CPU_GPIO (1 << 8)
66 #define RC32434_AF_SPARE_6 (1 << 9)
67 #define RC32434_AF_SPARE_4 (1 << 10)
68 #define RC32434_AF_SPARE_3 (1 << 11)
69 #define RC32434_AF_SPARE_2 (1 << 12)
72 #define RC32434_PCI_MSU_GPIO (1 << 13)
81 #define CF_GPIO_NUM 13