ARM: shmobile: r8a7779: Use driver-provided pinmux info
[deliverable/linux.git] / arch / arm / mach-shmobile / setup-r8a7779.c
index 7a1ad4f38539df32e176802e8c7f83086c82b69c..ac7e4fc26a01048e382b85ac6c6c6de6d0a30fd0 100644 (file)
@@ -60,6 +60,31 @@ void __init r8a7779_map_io(void)
        iotable_init(r8a7779_io_desc, ARRAY_SIZE(r8a7779_io_desc));
 }
 
+static struct resource r8a7779_pfc_resources[] = {
+       [0] = {
+               .start  = 0xfffc0000,
+               .end    = 0xfffc023b,
+               .flags  = IORESOURCE_MEM,
+       },
+       [1] = {
+               .start  = 0xffc40000,
+               .end    = 0xffc46fff,
+               .flags  = IORESOURCE_MEM,
+       }
+};
+
+static struct platform_device r8a7779_pfc_device = {
+       .name           = "pfc-r8a7779",
+       .id             = -1,
+       .resource       = r8a7779_pfc_resources,
+       .num_resources  = ARRAY_SIZE(r8a7779_pfc_resources),
+};
+
+void __init r8a7779_pinmux_init(void)
+{
+       platform_device_register(&r8a7779_pfc_device);
+}
+
 static struct plat_sci_port scif0_platform_data = {
        .mapbase        = 0xffe40000,
        .flags          = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
This page took 0.02407 seconds and 5 git commands to generate.