mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 10:45:22 +00:00
Move gpio list into gpio.h header file
This is referenced by various files, so should be in the gpio.h header. BUG=none TEST=manual: build and boot on daisy, see that USB download still works build on all platforms Change-Id: If579c975ef6c82988b9e411eeaa97c950d9efce4 Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -24,10 +24,6 @@ static const uint32_t gpio_bases[] = {
|
||||
};
|
||||
|
||||
|
||||
/* Signal information from board.c. Must match order from enum gpio_signal. */
|
||||
extern const struct gpio_info gpio_list[GPIO_COUNT];
|
||||
|
||||
|
||||
/* Find the index of a GPIO port base address (LM4_GPIO_[A-Q]); this is used by
|
||||
* the clock gating registers. Returns the index, or -1 if no match. */
|
||||
static int find_gpio_port_index(uint32_t port_base)
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
#define CPUTS(outstr) cputs(CC_GPIO, outstr)
|
||||
#define CPRINTF(format, args...) cprintf(CC_GPIO, format, ## args)
|
||||
|
||||
/* Signal information from board.c. Must match order from enum gpio_signal. */
|
||||
extern const struct gpio_info gpio_list[GPIO_COUNT];
|
||||
|
||||
/* For each EXTI bit, record which GPIO entry is using it */
|
||||
static const struct gpio_info *exti_events[16];
|
||||
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
#define CPUTS(outstr) cputs(CC_GPIO, outstr)
|
||||
#define CPRINTF(format, args...) cprintf(CC_GPIO, format, ## args)
|
||||
|
||||
/* Signal information from board.c. Must match order from enum gpio_signal. */
|
||||
extern const struct gpio_info gpio_list[GPIO_COUNT];
|
||||
|
||||
/* For each EXTI bit, record which GPIO entry is using it */
|
||||
static const struct gpio_info *exti_events[16];
|
||||
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
#define CPUTS(outstr) cputs(CC_KEYSCAN, outstr)
|
||||
#define CPRINTF(format, args...) cprintf(CC_KEYSCAN, format, ## args)
|
||||
|
||||
extern const struct gpio_info gpio_list[];
|
||||
|
||||
/* used for select_column() */
|
||||
enum COL_INDEX {
|
||||
COL_ASSERT_ALL = -2,
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
#include "util.h"
|
||||
|
||||
|
||||
/* Signal information from board.c. Must match order from enum gpio_signal. */
|
||||
extern const struct gpio_info gpio_list[GPIO_COUNT];
|
||||
|
||||
|
||||
/* Find a GPIO signal by name. Returns the signal index, or GPIO_COUNT if
|
||||
* no match. */
|
||||
static enum gpio_signal find_signal_by_name(const char *name)
|
||||
|
||||
@@ -51,6 +51,9 @@ struct gpio_info {
|
||||
void (*irq_handler)(enum gpio_signal signal);
|
||||
};
|
||||
|
||||
/* Signal information from board.c. Must match order from enum gpio_signal. */
|
||||
extern const struct gpio_info gpio_list[GPIO_COUNT];
|
||||
|
||||
/* Macro for signals which don't exist */
|
||||
#define GPIO_SIGNAL_NOT_IMPLEMENTED(name) {name, LM4_GPIO_A, 0, 0, NULL}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user