ARM: shmobile: r8a73a4 PFC support
authorMagnus Damm <damm@opensource.se>
Tue, 26 Mar 2013 01:34:52 +0000 (10:34 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 2 Apr 2013 01:58:20 +0000 (10:58 +0900)
Add a platform device for the r8a73a4 PFC.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/include/mach/r8a73a4.h
arch/arm/mach-shmobile/setup-r8a73a4.c

index 17a59cde826e535edd36748479ce849a148d8538..0e4a820bcbe8396d3d195787b5d5f66d6c7d7d58 100644 (file)
@@ -20,6 +20,7 @@ config ARCH_SH73A0
 
 config ARCH_R8A73A4
        bool "R-Mobile APE6 (R8A73A40)"
+       select ARCH_WANT_OPTIONAL_GPIOLIB
        select ARM_GIC
        select CPU_V7
        select ARM_ARCH_TIMER
index 6db3495479d8adb2883cc72e4e07fca201aa3743..f043103e32c98e897b00bc3db489fcda444f34c8 100644 (file)
@@ -3,5 +3,6 @@
 
 void r8a73a4_add_standard_devices(void);
 void r8a73a4_clock_init(void);
+void r8a73a4_pinmux_init(void);
 
 #endif /* __ASM_R8A73A4_H__ */
index da5ae16115187bc1cbe7924d5bfc46808c74c8f2..c2d86f30cde4d2d356a1a1a6a9a2d46cf299992c 100644 (file)
 #include <mach/r8a73a4.h>
 #include <asm/mach/arch.h>
 
+static const struct resource pfc_resources[] = {
+       DEFINE_RES_MEM(0xe6050000, 0x9000),
+};
+
+void __init r8a73a4_pinmux_init(void)
+{
+       platform_device_register_simple("pfc-r8a73a4", -1, pfc_resources,
+                                       ARRAY_SIZE(pfc_resources));
+}
+
 #define SCIF_COMMON(scif_type, baseaddr, irq)                  \
        .type           = scif_type,                            \
        .mapbase        = baseaddr,                             \