3 //#include <linux/kernel.h>
5 //#include <mach/regs_gpio.h>
6 #include <asm/arch/sc8800g_reg_global.h>
7 #include <asm/arch/sc8800g_reg_base.h>
8 #include <asm/arch/gpio_reg_v0.h>
9 #include <asm/arch/gpio_phy.h>
11 const static struct gpio_section s_gpio_section_table[] = {
12 { (GPIO_BASE + 0*0x80), 0x8, GPIO_SECTION_GPI },
13 { (GPIO_BASE + 1*0x80), 0x10, GPIO_SECTION_GPIO },
14 { (GPIO_BASE + 2*0x80), 0x10, GPIO_SECTION_GPIO },
15 { (GPIO_BASE + 3*0x80), 0x10, GPIO_SECTION_GPIO },
16 { (GPIO_BASE + 4*0x80), 0x10, GPIO_SECTION_GPIO },
17 { (GPIO_BASE + 5*0x80), 0x10, GPIO_SECTION_GPIO },
18 { (GPIO_BASE + 6*0x80), 0x10, GPIO_SECTION_GPIO },
19 { (GPIO_BASE + 7*0x80), 0x10, GPIO_SECTION_GPIO },
20 { (GPIO_BASE + 8*0x80), 0x10, GPIO_SECTION_GPIO },
21 { (GPIO_BASE + 9*0x80), 0x10, GPIO_SECTION_GPIO },
22 { (ANA_GPIO_BASE + 0*0x80), 0x8, GPIO_SECTION_GPI },
23 { (ANA_GPIO_BASE + 1*0x80), 0x10, GPIO_SECTION_GPIO },
24 { (ANA_GPIO_BASE + 2*0x80), 0x10, GPIO_SECTION_GPIO },
27 struct gpio_section * gpio_get_section_table (u32 *table_size)
29 *table_size = ARRAY_SIZE(s_gpio_section_table);
31 return (struct gpio_section *) s_gpio_section_table;