diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/gpio-x1000.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/gpio-x1000.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/firmware/target/mips/ingenic_x1000/gpio-x1000.h b/firmware/target/mips/ingenic_x1000/gpio-x1000.h index eac5f8651f..310a457ab5 100644 --- a/firmware/target/mips/ingenic_x1000/gpio-x1000.h +++ b/firmware/target/mips/ingenic_x1000/gpio-x1000.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #define __GPIO_X1000_H__ | 23 | #define __GPIO_X1000_H__ |
24 | 24 | ||
25 | #include "x1000/gpio.h" | 25 | #include "x1000/gpio.h" |
26 | #include "config.h" | ||
26 | 27 | ||
27 | /* GPIO port numbers */ | 28 | /* GPIO port numbers */ |
28 | #define GPIO_A 0 | 29 | #define GPIO_A 0 |
@@ -103,16 +104,8 @@ enum { | |||
103 | PINGROUP_COUNT, | 104 | PINGROUP_COUNT, |
104 | }; | 105 | }; |
105 | 106 | ||
106 | /* arrays which define the target's GPIO settings */ | ||
107 | extern const struct gpio_setting gpio_settings[PIN_COUNT]; | ||
108 | extern const struct pingroup_setting pingroup_settings[PINGROUP_COUNT]; | ||
109 | |||
110 | /* stringified names for use in debug menus */ | ||
111 | extern const char* const gpio_names[PIN_COUNT]; | ||
112 | extern const char* const pingroup_names[PINGROUP_COUNT]; | ||
113 | |||
114 | /* called at early init to set up GPIOs */ | 107 | /* called at early init to set up GPIOs */ |
115 | extern void gpio_init(void); | 108 | extern void gpio_init(void) INIT_ATTR; |
116 | 109 | ||
117 | /* Use GPIO Z to reconfigure several pins atomically */ | 110 | /* Use GPIO Z to reconfigure several pins atomically */ |
118 | extern void gpioz_configure(int port, uint32_t pins, int func); | 111 | extern void gpioz_configure(int port, uint32_t pins, int func); |