[PATCH linux dev-4.7] arm: aspeed: romulus: Do common setup

Mine mine260309 at gmail.com
Sun Feb 19 00:36:38 AEDT 2017


I thought do_common_setup() is called by default, but actually it's not.
So Romulus needs to call do_common_setup() as well.

--
BRs,
Lei YU

On Sat, Feb 18, 2017 at 9:33 PM, Lei YU <mine260309 at gmail.com> wrote:
> Call do_common_setup for romulus.
> No other romulus specific setup is needed.
> Consider moving do_common_setup() to a common place.
>
> Signed-off-by: Lei YU <mine260309 at gmail.com>
> ---
>  arch/arm/mach-aspeed/aspeed.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
> index 2a11c2e..726b8fa 100644
> --- a/arch/arm/mach-aspeed/aspeed.c
> +++ b/arch/arm/mach-aspeed/aspeed.c
> @@ -218,6 +218,11 @@ static void __init do_witherspoon_setup(void)
>         writel(0x68600000, AST_IO(AST_BASE_SPI | 0x30));
>  }
>
> +static void __init do_romulus_setup(void)
> +{
> +       do_common_setup();
> +}
> +
>  #define SCU_PASSWORD   0x1688A8A8
>
>  static void __init aspeed_init_early(void)
> @@ -253,6 +258,8 @@ static void __init aspeed_init_early(void)
>                 do_zaius_setup();
>         if (of_machine_is_compatible("ibm,witherspoon-bmc"))
>                 do_witherspoon_setup();
> +       if (of_machine_is_compatible("ibm,romulus-bmc"))
> +               do_romulus_setup();
>  }
>
>  static void __init aspeed_map_io(void)
> --
> 1.9.1
>


More information about the openbmc mailing list