diff options
author | Magnus Damm <damm@opensource.se> | 2013-05-22 02:04:14 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-07 01:24:51 -0400 |
commit | 43cb8cb739b9d5f9f723b1953c58b95d3102d821 (patch) | |
tree | d56356b4c44fc3b327f54604ce422e90f9043c4c | |
parent | d23473828c1188805c9e0b2a2e5be158d07ce7de (diff) |
ARM: shmobile: sh73a0: Always use shmobile_setup_delay()
Break out the function sh73a0_init_delay() that now
gets called both for the C version of the code and
the DT -reference boards. This way we handle both
cases in the same way.
Allows us to boot with TWD only in the kernel configuration
for C board code. TWD is not yet enabled in the case of
DT -reference - this due to a dependency on CCF.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm/mach-shmobile/setup-sh73a0.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 3acb45af503f..c5028f1f3331 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c | |||
@@ -929,11 +929,17 @@ void __init sh73a0_add_standard_devices(void) | |||
929 | ARRAY_SIZE(sh73a0_late_devices)); | 929 | ARRAY_SIZE(sh73a0_late_devices)); |
930 | } | 930 | } |
931 | 931 | ||
932 | void __init sh73a0_init_delay(void) | ||
933 | { | ||
934 | shmobile_setup_delay(1196, 44, 46); /* Cortex-A9 @ 1196MHz */ | ||
935 | } | ||
936 | |||
932 | /* do nothing for !CONFIG_SMP or !CONFIG_HAVE_TWD */ | 937 | /* do nothing for !CONFIG_SMP or !CONFIG_HAVE_TWD */ |
933 | void __init __weak sh73a0_register_twd(void) { } | 938 | void __init __weak sh73a0_register_twd(void) { } |
934 | 939 | ||
935 | void __init sh73a0_earlytimer_init(void) | 940 | void __init sh73a0_earlytimer_init(void) |
936 | { | 941 | { |
942 | sh73a0_init_delay(); | ||
937 | sh73a0_clock_init(); | 943 | sh73a0_clock_init(); |
938 | shmobile_earlytimer_init(); | 944 | shmobile_earlytimer_init(); |
939 | sh73a0_register_twd(); | 945 | sh73a0_register_twd(); |
@@ -952,11 +958,6 @@ void __init sh73a0_add_early_devices(void) | |||
952 | 958 | ||
953 | #ifdef CONFIG_USE_OF | 959 | #ifdef CONFIG_USE_OF |
954 | 960 | ||
955 | void __init sh73a0_init_delay(void) | ||
956 | { | ||
957 | shmobile_setup_delay(1196, 44, 46); /* Cortex-A9 @ 1196MHz */ | ||
958 | } | ||
959 | |||
960 | static const struct of_dev_auxdata sh73a0_auxdata_lookup[] __initconst = { | 961 | static const struct of_dev_auxdata sh73a0_auxdata_lookup[] __initconst = { |
961 | {}, | 962 | {}, |
962 | }; | 963 | }; |