]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: at91: sam9g45: shutdown ddr1 too when rebooting
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 27 Sep 2013 06:37:59 +0000 (08:37 +0200)
committerOlof Johansson <olof@lixom.net>
Mon, 30 Sep 2013 16:58:44 +0000 (09:58 -0700)
commit7ed523a0ff1997f45d2b59016d91062d347f5d67
tree6a42f57a8ee7217e5b0c1a5c3d48f890e77f2b8a
parent66b9140378fb1a2a8b6cf84cc9204a6096e1b780
ARM: at91: sam9g45: shutdown ddr1 too when rebooting

Like we are doing on DDR0 we need to cleanly shutdown DDR1 if it is
used before rebooting.
If DDR1 is not initialized, we check it and avoid dereferencing its address.
Even by adding two more instructions, we are able to complete the procedure
within a single cache line.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-at91/at91sam9g45_reset.S