[PATCH linux dev-4.7 v2] arm: aspped: romulus: Set PNOR SPI address mapping

Andrew Jeffery andrew at aj.id.au
Thu Mar 2 14:10:36 AEDT 2017


On Wed, 2017-03-01 at 11:29 +0800, Lei YU wrote:
> The PNOR SPI address mapping is the same as Witherspoon.
> 
> Signed-off-by: Lei YU <mine260309 at gmail.com>

Acked-by: Andrew Jeffery <andrew at aj.id.au>

> ---
>  arch/arm/mach-aspeed/aspeed.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
> index 726b8fa..7ac006a 100644
> --- a/arch/arm/mach-aspeed/aspeed.c
> +++ b/arch/arm/mach-aspeed/aspeed.c
> @@ -221,6 +221,12 @@ static void __init do_witherspoon_setup(void)
>  static void __init do_romulus_setup(void)
>  {
> >  	do_common_setup();
> +
> > +	/* Set SPI1 CE1 decoding window to 0x34000000 */
> +	writel(0x70680000, AST_IO(AST_BASE_SPI | 0x34));
+
> > +	/* Set SPI1 CE0 decoding window to 0x30000000 */
> > +	writel(0x68600000, AST_IO(AST_BASE_SPI | 0x30));
>  }
>  
> >  #define SCU_PASSWORD	0x1688A8A8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20170302/1112ef1f/attachment.sig>


More information about the openbmc mailing list