summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/setup-r8a7791.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-10-08 07:39:10 +0400
committerSimon Horman <horms+renesas@verge.net.au>2013-12-04 10:11:08 +0400
commit35040127be095487ce1e2f6a487a65b92d794b7f (patch)
tree38d2a5581966ed89bf03a550054f3b613e49c6eb /arch/arm/mach-shmobile/setup-r8a7791.c
parente08d287afb76b3b6925f7261918fa611a7e0b3ca (diff)
downloadlinux-35040127be095487ce1e2f6a487a65b92d794b7f.tar.xz
ARM: shmobile: r8a7791 PFC platform device support
Add a platform device for the r8a7791 PFC device. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7791.c')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7791.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c
index d9393d61ee27..84cad8cb6af4 100644
--- a/arch/arm/mach-shmobile/setup-r8a7791.c
+++ b/arch/arm/mach-shmobile/setup-r8a7791.c
@@ -31,6 +31,19 @@
#include <mach/rcar-gen2.h>
#include <asm/mach/arch.h>
+static const struct resource pfc_resources[] __initconst = {
+ DEFINE_RES_MEM(0xe6060000, 0x250),
+};
+
+#define r8a7791_register_pfc() \
+ platform_device_register_simple("pfc-r8a7791", -1, pfc_resources, \
+ ARRAY_SIZE(pfc_resources))
+
+void __init r8a7791_pinmux_init(void)
+{
+ r8a7791_register_pfc();
+}
+
#define SCIF_COMMON(scif_type, baseaddr, irq) \
.type = scif_type, \
.mapbase = baseaddr, \