sh-pfc: Split pins and functions definition tables
[deliverable/linux.git] / drivers / pinctrl / sh-pfc / pfc-sh7372.c
index c11207442415987de3d770ff5e8e9c8ae584bda9..3a1961b3d90252710d37dbc6868955f6782458af 100644 (file)
@@ -929,11 +929,13 @@ static pinmux_enum_t pinmux_data[] = {
        PINMUX_DATA(MFIv4_MARK,         MSEL4CR_6_1),
 };
 
-static struct pinmux_gpio pinmux_gpios[] = {
-
-       /* PORT */
+static struct pinmux_pin pinmux_pins[] = {
        GPIO_PORT_ALL(),
+};
+
+#define PINMUX_FN_BASE ARRAY_SIZE(pinmux_pins)
 
+static struct pinmux_func pinmux_func_gpios[] = {
        /* IRQ */
        GPIO_FN(IRQ0_6),        GPIO_FN(IRQ0_162),      GPIO_FN(IRQ1),
        GPIO_FN(IRQ2_4),        GPIO_FN(IRQ2_5),        GPIO_FN(IRQ3_8),
@@ -1640,9 +1642,10 @@ struct sh_pfc_soc_info sh7372_pinmux_info = {
        .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
        .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
 
-       .gpios = pinmux_gpios,
-       .nr_pins = GPIO_PORT190 + 1,
-       .nr_gpios = ARRAY_SIZE(pinmux_gpios),
+       .pins = pinmux_pins,
+       .nr_pins = ARRAY_SIZE(pinmux_pins),
+       .func_gpios = pinmux_func_gpios,
+       .nr_func_gpios = ARRAY_SIZE(pinmux_func_gpios),
 
        .cfg_regs = pinmux_config_regs,
        .data_regs = pinmux_data_regs,
This page took 0.023841 seconds and 5 git commands to generate.