diff options
author | Simon Horman <horms+renesas@verge.net.au> | 2014-05-15 13:32:03 +0200 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2014-06-17 12:56:27 +0200 |
commit | f8fba0ce6628109bac9d33f65b637a87a2f3be24 (patch) | |
tree | cd469d5a715abdf830c9876b1373e9bf780081a4 /arch/arm/mach-shmobile/board-marzen-reference.c | |
parent | ARM: shmobile: r8a7779: Move r8a7779_earlytimer_init to clock-r8a7779.c (diff) | |
download | linux-f8fba0ce6628109bac9d33f65b637a87a2f3be24.tar.xz linux-f8fba0ce6628109bac9d33f65b637a87a2f3be24.zip |
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/board-marzen-reference.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-marzen-reference.c | 3 |
1 files changed, 3 insertions, 0 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 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <linux/of_platform.h> #include <mach/r8a7779.h> #include <asm/irq.h> #include <asm/mach/arch.h> @@ -27,7 +28,9 @@ static void __init marzen_init(void) { + r8a7779_clock_init(); r8a7779_add_standard_devices_dt(); + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); r8a7779_init_irq_extpin_dt(1); /* IRQ1 as individual interrupt */ } |