[PATCH 7/9] ARM: at91: add sama5d4 soc support #1

Sascha Hauer s.hauer at pengutronix.de
Wed Sep 17 23:10:28 PDT 2014


On Wed, Sep 17, 2014 at 06:21:33PM +0800, Bo Shen wrote:
> Signed-off-by: Bo Shen <voice.shen at atmel.com>
> ---
> 
> diff --git a/arch/arm/mach-at91/sam9_smc.c b/arch/arm/mach-at91/sam9_smc.c
> index 9f02807..5df7109 100644
> --- a/arch/arm/mach-at91/sam9_smc.c
> +++ b/arch/arm/mach-at91/sam9_smc.c
> @@ -19,7 +19,7 @@
>  
>  #define AT91_SAM9_SMC_CS_STRIDE		0x10
>  #define AT91_SAMA5_SMC_CS_STRIDE	0x14
> -#define AT91_SMC_CS_STRIDE      ((at91_soc_initdata.type == AT91_SOC_SAMA5D3) ? AT91_SAMA5_SMC_CS_STRIDE : AT91_SAM9_SMC_CS_STRIDE)
> +#define AT91_SMC_CS_STRIDE      ((at91_soc_initdata.type == AT91_SOC_SAMA5D3 || at91_soc_initdata.type == AT91_SOC_SAMA5D4) ? AT91_SAMA5_SMC_CS_STRIDE : AT91_SAM9_SMC_CS_STRIDE)

I'm no fan of the 80 character limit, too, but this is really too long
;)

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list