summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/gpio-x1000.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/gpio-x1000.c')
-rw-r--r--firmware/target/mips/ingenic_x1000/gpio-x1000.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/target/mips/ingenic_x1000/gpio-x1000.c b/firmware/target/mips/ingenic_x1000/gpio-x1000.c
index 14195359df..0ebe424566 100644
--- a/firmware/target/mips/ingenic_x1000/gpio-x1000.c
+++ b/firmware/target/mips/ingenic_x1000/gpio-x1000.c
@@ -21,7 +21,7 @@
21 21
22#include "gpio-x1000.h" 22#include "gpio-x1000.h"
23 23
24const struct gpio_setting gpio_settings[PIN_COUNT] = { 24static const struct gpio_setting gpio_settings[PIN_COUNT] INITDATA_ATTR = {
25#define DEFINE_GPIO(_name, _gpio, _func) \ 25#define DEFINE_GPIO(_name, _gpio, _func) \
26 {.gpio = _gpio, .func = _func}, 26 {.gpio = _gpio, .func = _func},
27#define DEFINE_PINGROUP(...) 27#define DEFINE_PINGROUP(...)
@@ -30,7 +30,7 @@ const struct gpio_setting gpio_settings[PIN_COUNT] = {
30#undef DEFINE_PINGROUP 30#undef DEFINE_PINGROUP
31}; 31};
32 32
33const struct pingroup_setting pingroup_settings[PINGROUP_COUNT] = { 33static const struct pingroup_setting pingroup_settings[PINGROUP_COUNT] INITDATA_ATTR = {
34#define DEFINE_GPIO(...) 34#define DEFINE_GPIO(...)
35#define DEFINE_PINGROUP(_name, _port, _pins, _func) \ 35#define DEFINE_PINGROUP(_name, _port, _pins, _func) \
36 {.port = _port, .pins = _pins, .func = _func}, 36 {.port = _port, .pins = _pins, .func = _func},
@@ -39,7 +39,8 @@ const struct pingroup_setting pingroup_settings[PINGROUP_COUNT] = {
39#undef DEFINE_PINGROUP 39#undef DEFINE_PINGROUP
40}; 40};
41 41
42const char* const gpio_names[PIN_COUNT] = { 42#if 0 /* not needed for the time being */
43static const char* const gpio_names[PIN_COUNT] = {
43#define DEFINE_GPIO(_name, ...) #_name, 44#define DEFINE_GPIO(_name, ...) #_name,
44#define DEFINE_PINGROUP(...) 45#define DEFINE_PINGROUP(...)
45#include "gpio-target.h" 46#include "gpio-target.h"
@@ -47,13 +48,14 @@ const char* const gpio_names[PIN_COUNT] = {
47#undef DEFINE_PINGROUP 48#undef DEFINE_PINGROUP
48}; 49};
49 50
50const char* const pingroup_names[PINGROUP_COUNT] = { 51static const char* const pingroup_names[PINGROUP_COUNT] = {
51#define DEFINE_GPIO(...) 52#define DEFINE_GPIO(...)
52#define DEFINE_PINGROUP(_name, ...) #_name, 53#define DEFINE_PINGROUP(_name, ...) #_name,
53#include "gpio-target.h" 54#include "gpio-target.h"
54#undef DEFINE_GPIO 55#undef DEFINE_GPIO
55#undef DEFINE_PINGROUP 56#undef DEFINE_PINGROUP
56}; 57};
58#endif
57 59
58void gpio_init(void) 60void gpio_init(void)
59{ 61{