aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorSimon Horman <horms+renesas@verge.net.au>2014-05-15 07:32:03 -0400
committerSimon Horman <horms+renesas@verge.net.au>2014-06-17 06:56:27 -0400
commitf8fba0ce6628109bac9d33f65b637a87a2f3be24 (patch)
treecd469d5a715abdf830c9876b1373e9bf780081a4 /arch/arm/mach-shmobile
parentf48039a3da40f0c193122c83ad582913f2daf29d (diff)
ARM: shmobile: marzen-reference: Move clock and OF device initialisation into board code
Move the clock initialisation and OF device population from SoC to board code. This is in keeping with the pattern used by Lager. And the clock portion is part of decoupling clock initialisation from SoC code in preparation for moving to the common clock framework. Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/board-marzen-reference.c3
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7779.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/board-marzen-reference.c b/arch/arm/mach-shmobile/board-marzen-reference.c
index 94bd57203ff5..46ed17a50183 100644
--- a/arch/arm/mach-shmobile/board-marzen-reference.c
+++ b/arch/arm/mach-shmobile/board-marzen-reference.c
@@ -19,6 +19,7 @@
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */ 20 */
21 21
22#include <linux/of_platform.h>
22#include <mach/r8a7779.h> 23#include <mach/r8a7779.h>
23#include <asm/irq.h> 24#include <asm/irq.h>
24#include <asm/mach/arch.h> 25#include <asm/mach/arch.h>
@@ -27,7 +28,9 @@
27 28
28static void __init marzen_init(void) 29static void __init marzen_init(void)
29{ 30{
31 r8a7779_clock_init();
30 r8a7779_add_standard_devices_dt(); 32 r8a7779_add_standard_devices_dt();
33 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
31 r8a7779_init_irq_extpin_dt(1); /* IRQ1 as individual interrupt */ 34 r8a7779_init_irq_extpin_dt(1); /* IRQ1 as individual interrupt */
32} 35}
33 36
diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c
index 23122f62366c..15f533b89702 100644
--- a/arch/arm/mach-shmobile/setup-r8a7779.c
+++ b/arch/arm/mach-shmobile/setup-r8a7779.c
@@ -744,12 +744,8 @@ void __init r8a7779_init_delay(void)
744 744
745void __init r8a7779_add_standard_devices_dt(void) 745void __init r8a7779_add_standard_devices_dt(void)
746{ 746{
747 /* clocks are setup late during boot in the case of DT */
748 r8a7779_clock_init();
749
750 platform_add_devices(r8a7779_devices_dt, 747 platform_add_devices(r8a7779_devices_dt,
751 ARRAY_SIZE(r8a7779_devices_dt)); 748 ARRAY_SIZE(r8a7779_devices_dt));
752 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
753} 749}
754 750
755#define MODEMR 0xffcc0020 751#define MODEMR 0xffcc0020