From a7977003293ed0c13e62d95fc8cd1d20e22b7282 Mon Sep 17 00:00:00 2001
From: Xiubo Li
Date: Fri, 4 Apr 2014 09:33:25 +0800
Subject: watchdog: imx2_wdt: convert to use regmap API.
This watchdog driver will be working on IMX2+, Vybrid, LS1, LS2+
platforms, and will be in different endianness mode in those SoCs:
SoCs CPU endian mode WDT endian mode
------------------------------------------------
IMX2+ LE LE
Vybird LE LE
LS1 LE BE
LS2 LE LE
Other possible SoCs:
SoCs CPU endian mode WDT endian mode
------------------------------------------------
Soc1 BE BE
Soc2 BE LE
And also the watchdog's registers will be 32-bits for some versions,
and though it is 16-bits in IMX2+, Vybird and LS+.
Using the regmap APIs, could be more easy to support different
endianness and also more easy to support 32-bits version...
Signed-off-by: Xiubo Li
Reviewed-by: Guenter Roeck
Acked-by: Shawn Guo
Signed-off-by: Wim Van Sebroeck
---
drivers/watchdog/Kconfig | 1 +
1 file changed, 1 insertion(+)
(limited to 'drivers/watchdog/Kconfig')
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index 2b4c1fc87653..65ef91e3e497 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -378,6 +378,7 @@ config MAX63XX_WATCHDOG
config IMX2_WDT
tristate "IMX2+ Watchdog"
depends on ARCH_MXC
+ select REGMAP_MMIO
help
This is the driver for the hardware watchdog
on the Freescale IMX2 and later processors.
--
cgit v1.2.3