* Public Data
****************************************************************************/
#if defined(CONFIG_ARCH_CHIP_S5JT200)
-GPIO_BANK(s5jt200) = {
+static struct gpio_bank s5jt200_gpio_bank[] = {
/* ALIVE */
[GPP0] = {
.name = "GPP0",
};
#endif
-extern struct gpio_bank gpio_bank_start;
-extern struct gpio_bank gpio_bank_end;
-struct gpio_bank *mach_gpio_bank = &gpio_bank_start;
#if defined(CONFIG_S5E_GPIO_LOG_DUMP)
static char *pull_str[] = { "none", "?", "down", "up" };
static char *drv_str[] = { "1x", "3x", "2x", "4x" };
return NULL;
}
- return mach_gpio_bank + bank;
+ return s5jt200_gpio_bank + bank;
}
static void *__gpio_to_eint_base(int gpio)
return 0;
}
- if (port >= mach_gpio_bank[bank].nr_port) {
+ if (port >= s5jt200_gpio_bank[bank].nr_port) {
return 0;
}
int filter_offset_addr;
};
-#define GPIO_BANK(name) \
- static struct gpio_bank name##_gpio_bank[] __attribute__((used, aligned(4), section(".gpio_bank."#name)))
-
#define irq_id_to_gpio(irq_id) (GPIO_MAGIC | (irq_id >> 16))
#define gpio_irq_id(gpio, isr_num) ((gpio & 0xFFFF) << 16 | isr_num)