* [PATCH] ARM: shmobile: Always use shmobile_setup_delay() on sh73a0
@ 2013-05-22 6:04 Magnus Damm
2013-05-23 1:39 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2013-05-22 6:04 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@opensource.se>
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>
---
Developed and tested against v3.10-rc2.
arch/arm/mach-shmobile/setup-sh73a0.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
--- 0002/arch/arm/mach-shmobile/setup-sh73a0.c
+++ work/arch/arm/mach-shmobile/setup-sh73a0.c 2013-05-20 17:20:48.000000000 +0900
@@ -916,11 +916,17 @@ void __init sh73a0_add_standard_devices(
ARRAY_SIZE(sh73a0_late_devices));
}
+void __init sh73a0_init_delay(void)
+{
+ shmobile_setup_delay(1196, 44, 46); /* Cortex-A9 @ 1196MHz */
+}
+
/* do nothing for !CONFIG_SMP or !CONFIG_HAVE_TWD */
void __init __weak sh73a0_register_twd(void) { }
void __init sh73a0_earlytimer_init(void)
{
+ sh73a0_init_delay();
sh73a0_clock_init();
shmobile_earlytimer_init();
sh73a0_register_twd();
@@ -939,11 +945,6 @@ void __init sh73a0_add_early_devices(voi
#ifdef CONFIG_USE_OF
-void __init sh73a0_init_delay(void)
-{
- shmobile_setup_delay(1196, 44, 46); /* Cortex-A9 @ 1196MHz */
-}
-
static const struct of_dev_auxdata sh73a0_auxdata_lookup[] __initconst = {
{},
};
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] ARM: shmobile: Always use shmobile_setup_delay() on sh73a0
2013-05-22 6:04 [PATCH] ARM: shmobile: Always use shmobile_setup_delay() on sh73a0 Magnus Damm
@ 2013-05-23 1:39 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2013-05-23 1:39 UTC (permalink / raw)
To: linux-sh
On Wed, May 22, 2013 at 03:04:14PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
>
> 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>
Thanks.
I have updated the title to "ARM: shmobile: sh73a0: Always use
shmobile_setup_delay()" and queued-up this change for v3.11
in the soc-sh73a0 branch.
> ---
>
> Developed and tested against v3.10-rc2.
>
> arch/arm/mach-shmobile/setup-sh73a0.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> --- 0002/arch/arm/mach-shmobile/setup-sh73a0.c
> +++ work/arch/arm/mach-shmobile/setup-sh73a0.c 2013-05-20 17:20:48.000000000 +0900
> @@ -916,11 +916,17 @@ void __init sh73a0_add_standard_devices(
> ARRAY_SIZE(sh73a0_late_devices));
> }
>
> +void __init sh73a0_init_delay(void)
> +{
> + shmobile_setup_delay(1196, 44, 46); /* Cortex-A9 @ 1196MHz */
> +}
> +
> /* do nothing for !CONFIG_SMP or !CONFIG_HAVE_TWD */
> void __init __weak sh73a0_register_twd(void) { }
>
> void __init sh73a0_earlytimer_init(void)
> {
> + sh73a0_init_delay();
> sh73a0_clock_init();
> shmobile_earlytimer_init();
> sh73a0_register_twd();
> @@ -939,11 +945,6 @@ void __init sh73a0_add_early_devices(voi
>
> #ifdef CONFIG_USE_OF
>
> -void __init sh73a0_init_delay(void)
> -{
> - shmobile_setup_delay(1196, 44, 46); /* Cortex-A9 @ 1196MHz */
> -}
> -
> static const struct of_dev_auxdata sh73a0_auxdata_lookup[] __initconst = {
> {},
> };
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-23 1:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 6:04 [PATCH] ARM: shmobile: Always use shmobile_setup_delay() on sh73a0 Magnus Damm
2013-05-23 1:39 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox