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)
commitbd737fea4e49b7c0e848e3765c6b45a858de41a8
tree6a42f57a8ee7217e5b0c1a5c3d48f890e77f2b8a
parent5abf58bf4cd0ab32b9737ea3d1cb6439ab646ad6
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