[PATCH linux dev-4.7] arm/aspeed: Enable SPI Master on ast2500evb

Joel Stanley joel at jms.id.au
Mon Oct 17 15:56:51 AEDT 2016


On Sat, Oct 15, 2016 at 12:18 AM, Cédric Le Goater <clg at kaod.org> wrote:
> The default is OFF.
>
> Signed-off-by: Cédric Le Goater <clg at kaod.org>

Reviewed-by: Joel Stanley <joel at jms.id.au>

I will apply this one now to dev-4.7.

> ---
>  arch/arm/mach-aspeed/aspeed.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
> index 12a63db27a21..96713ecd8501 100644
> --- a/arch/arm/mach-aspeed/aspeed.c
> +++ b/arch/arm/mach-aspeed/aspeed.c
> @@ -159,9 +159,12 @@ static void __init do_ast2500evb_setup(void)
>
>         do_ast2500_common_setup();
>
> -       /* Set strap to RGMII for dedicated PHY networking */
>         reg = readl(AST_IO(AST_BASE_SCU | 0x70));
> +
> +       /* Set strap to RGMII for dedicated PHY networking */
>         reg |= BIT(6) | BIT(7);
> +       /* Enable SPI Master and SPI Slave to AHB Bridge */
> +       reg |= BIT(13);
>         writel(reg, AST_IO(AST_BASE_SCU | 0x70));
>  }
>
> --
> 2.7.4
>


More information about the openbmc mailing list