tizen 2.4 release
[kernel/u-boot-tm1.git] / arch / arm / cpu / armv7 / tiger / gpio_phy.c
1 #include <common.h>
2 #include <asm/io.h>
3 //#include <linux/kernel.h>
4
5 //#include <mach/regs_gpio.h>
6 #include <asm/arch/sc8810_reg_global.h>
7 #include <asm/arch/sc8810_reg_base.h>
8 #include <asm/arch/gpio_reg_v0.h>
9 #include <asm/arch/gpio_phy.h>
10
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  },
25 };
26
27 struct gpio_section * gpio_get_section_table (u32 *table_size)
28 {
29     *table_size = ARRAY_SIZE(s_gpio_section_table);
30
31     return (struct gpio_section *) s_gpio_section_table;
32 }
33