diff options
author | Magnus Damm <damm@opensource.se> | 2013-10-07 23:39:10 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-12-04 01:11:08 -0500 |
commit | 35040127be095487ce1e2f6a487a65b92d794b7f (patch) | |
tree | 38d2a5581966ed89bf03a550054f3b613e49c6eb /arch/arm | |
parent | e08d287afb76b3b6925f7261918fa611a7e0b3ca (diff) |
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')
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/r8a7791.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7791.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7791.h b/arch/arm/mach-shmobile/include/mach/r8a7791.h index 051ead3c286e..200fa699f730 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7791.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7791.h | |||
@@ -4,6 +4,7 @@ | |||
4 | void r8a7791_add_standard_devices(void); | 4 | void r8a7791_add_standard_devices(void); |
5 | void r8a7791_add_dt_devices(void); | 5 | void r8a7791_add_dt_devices(void); |
6 | void r8a7791_clock_init(void); | 6 | void r8a7791_clock_init(void); |
7 | void r8a7791_pinmux_init(void); | ||
7 | void r8a7791_init_early(void); | 8 | void r8a7791_init_early(void); |
8 | extern struct smp_operations r8a7791_smp_ops; | 9 | extern struct smp_operations r8a7791_smp_ops; |
9 | 10 | ||
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 @@ | |||
31 | #include <mach/rcar-gen2.h> | 31 | #include <mach/rcar-gen2.h> |
32 | #include <asm/mach/arch.h> | 32 | #include <asm/mach/arch.h> |
33 | 33 | ||
34 | static const struct resource pfc_resources[] __initconst = { | ||
35 | DEFINE_RES_MEM(0xe6060000, 0x250), | ||
36 | }; | ||
37 | |||
38 | #define r8a7791_register_pfc() \ | ||
39 | platform_device_register_simple("pfc-r8a7791", -1, pfc_resources, \ | ||
40 | ARRAY_SIZE(pfc_resources)) | ||
41 | |||
42 | void __init r8a7791_pinmux_init(void) | ||
43 | { | ||
44 | r8a7791_register_pfc(); | ||
45 | } | ||
46 | |||
34 | #define SCIF_COMMON(scif_type, baseaddr, irq) \ | 47 | #define SCIF_COMMON(scif_type, baseaddr, irq) \ |
35 | .type = scif_type, \ | 48 | .type = scif_type, \ |
36 | .mapbase = baseaddr, \ | 49 | .mapbase = baseaddr, \ |