]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/arm/mach-shmobile/setup-r8a7779.c
Merge tag 'sh-pinmux' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[linux-beck.git] / arch / arm / mach-shmobile / setup-r8a7779.c
index a181ced09e45a8766df72a259fbda313b7660382..344eb79658f9836422928faaba6267b48568d074 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,