[PATCH 1/1] ARM: at91: sam9g45: shutdown ddr1 too when rebooting

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Aug 22 07:54:51 EDT 2013


On Thu, Aug 22, 2013 at 01:00:44PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> diff --git a/arch/arm/mach-at91/at91sam9g45_reset.S b/arch/arm/mach-at91/at91sam9g45_reset.S
> index 721a1a3..3fd634d 100644
> --- a/arch/arm/mach-at91/at91sam9g45_reset.S
> +++ b/arch/arm/mach-at91/at91sam9g45_reset.S
> @@ -21,6 +21,8 @@
>  at91sam9g45_restart:
>  			ldr	r5, =at91_ramc_base		@ preload constants
>  			ldr	r0, [r5]
> +			add	r5, #4				@ ddr1
> +			ldr	r5, [r5]

I know this isn't critical code, but is there any reason why you can't
use:

			ldr	r5, [r5, #4]

here?



More information about the linux-arm-kernel mailing list