power: reset: at91: add sama5d3 reset function
authorJosh Wu <josh.wu@atmel.com>
Mon, 20 Jul 2015 09:32:05 +0000 (17:32 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 20 Jul 2015 16:12:09 +0000 (18:12 +0200)
commit1ae25d626cfe7e11adc2c3e71d0de1f882954ef3
tree175a6947732fc24b64cbf9d1c1919adfadb36ede
parentb1a55af2773d5e4d30b748517fedfac26fc5fd81
power: reset: at91: add sama5d3 reset function

This patch introduces a new compatible string: "atmel,sama5d3-rstc" and
new reset function for sama5d3 and later chips.

As in sama5d3 or later chips, we don't have to shutdown the DDR
controller before reset. Shutdown the DDR controller before reset is a
workaround to avoid DDR signal driving the bus, but since sama5d3 and
later chips there is no such a conflict.

So in this patch:
   1. the sama5d3 reset function only need to write the rstc register
and return.
   2. we can remove the code related with sama5d3 DDR controller as
we don't use it at all.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Documentation/devicetree/bindings/arm/atmel-at91.txt
drivers/power/reset/at91-reset.c