ARM: shmobile: r8a7790 PFC support
authorMagnus Damm <damm@opensource.se>
Wed, 27 Mar 2013 15:50:03 +0000 (00:50 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 2 Apr 2013 02:02:20 +0000 (11:02 +0900)
Add a platform device for the r8a7790 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/r8a7790.h
arch/arm/mach-shmobile/setup-r8a7790.c

index ccaea6a..ff674c5 100644 (file)
@@ -53,6 +53,7 @@ config ARCH_R8A7779
 
 config ARCH_R8A7790
        bool "R-Car H2 (R8A77900)"
+       select ARCH_WANT_OPTIONAL_GPIOLIB
        select ARM_GIC
        select CPU_V7
        select ARM_ARCH_TIMER
index f38ded6..9bd6f5c 100644 (file)
@@ -3,5 +3,6 @@
 
 void r8a7790_add_standard_devices(void);
 void r8a7790_clock_init(void);
+void r8a7790_pinmux_init(void);
 
 #endif /* __ASM_R8A7790_H__ */
index 9b4ccd7..481201a 100644 (file)
 #include <mach/r8a7790.h>
 #include <asm/mach/arch.h>
 
+static const struct resource pfc_resources[] = {
+       DEFINE_RES_MEM(0xe6060000, 0x250),
+};
+
+void __init r8a7790_pinmux_init(void)
+{
+       platform_device_register_simple("pfc-r8a7790", -1, pfc_resources,
+                                       ARRAY_SIZE(pfc_resources));
+}
+
 #define SCIF_COMMON(scif_type, baseaddr, irq)                  \
        .type           = scif_type,                            \
        .mapbase        = baseaddr,                             \