]> git.karo-electronics.de Git - karo-tx-linux.git/commit
watchdog: imx2_wdt: convert to use regmap API.
authorXiubo Li <Li.Xiubo@freescale.com>
Fri, 4 Apr 2014 01:33:25 +0000 (09:33 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 26 May 2014 19:11:56 +0000 (21:11 +0200)
commit520cebd63367be7396ad80abdea6b8dbdb530af9
tree42b64b76b9b6a6af4687d7733401ea502d35736b
parent32e0cd970a91be61b135d0296fadf2ac31cd57d1
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 <Li.Xiubo@freescale.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/Kconfig
drivers/watchdog/imx2_wdt.c