driver: reset: sti: add keyscan for stih416
authorGabriel FERNANDEZ <gabriel.fernandez@st.com>
Fri, 11 Apr 2014 15:07:00 +0000 (17:07 +0200)
committerMaxime Coquelin <maxime.coquelin@st.com>
Wed, 21 May 2014 12:27:05 +0000 (14:27 +0200)
Add keyscan reset on stih416 reset controller.

Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Giuseppe Condorelli <giuseppe.condorelli@st.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
drivers/reset/sti/reset-stih416.c
include/dt-bindings/reset-controller/stih416-resets.h

index fe3bf02bdc8c70674899b00248aeee785694f630..5fc987076a90a55c5b69f964d9fbaad7dd45a94d 100644 (file)
@@ -104,6 +104,7 @@ static const struct syscfg_reset_channel_data stih416_softresets[] = {
        [STIH416_COMPO_A_SOFTRESET] = STIH416_SRST_CPU(SYSCFG_7564, 4),
        [STIH416_VP8_DEC_SOFTRESET] = STIH416_SRST_CPU(SYSCFG_7564, 10),
        [STIH416_VTG_MAIN_SOFTRESET] = STIH416_SRST_CPU(SYSCFG_7564, 16),
+       [STIH416_KEYSCAN_SOFTRESET] = STIH416_SRST_LPM(LPM_SYSCFG_1, 8),
 };
 
 static struct syscfg_reset_controller_data stih416_powerdown_controller = {
index 2127743f23e371c5b52d47b09da6c59f5c299921..fcf9af1ac0b2ab9420d3b5bdf9d3e50a18058bea 100644 (file)
@@ -46,5 +46,6 @@
 #define STIH416_COMPO_A_SOFTRESET      25
 #define STIH416_VP8_DEC_SOFTRESET      26
 #define STIH416_VTG_MAIN_SOFTRESET     27
+#define STIH416_KEYSCAN_SOFTRESET      28
 
 #endif /* _DT_BINDINGS_RESET_CONTROLLER_STIH416 */