summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-01-15 14:22:33 +0800
committerStefano Babic <sbabic@denx.de>2015-02-17 10:42:53 +0100
commit83dd1dd91c71c75c943714ef93b5cbd8ccb7e1c9 (patch)
treebc76d68d61c77771992c0488e7639db7fcbe157b /arch/arm/cpu/armv7
parent1f516faa45611aedc8c2e3f303b3866f615d481e (diff)
downloadu-boot-imx-83dd1dd91c71c75c943714ef93b5cbd8ccb7e1c9.zip
u-boot-imx-83dd1dd91c71c75c943714ef93b5cbd8ccb7e1c9.tar.gz
u-boot-imx-83dd1dd91c71c75c943714ef93b5cbd8ccb7e1c9.tar.bz2
ARM: imx6 Add WDOG3 for i.MX6SX
There are three wdogs for i.MX 6SoloX. Add wdog3 support in function imx_set_wdog_powerdown. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index df4e824..ef02972 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -230,6 +230,11 @@ static void imx_set_wdog_powerdown(bool enable)
struct wdog_regs *wdog1 = (struct wdog_regs *)WDOG1_BASE_ADDR;
struct wdog_regs *wdog2 = (struct wdog_regs *)WDOG2_BASE_ADDR;
+#ifdef CONFIG_MX6SX
+ struct wdog_regs *wdog3 = (struct wdog_regs *)WDOG3_BASE_ADDR;
+ writew(enable, &wdog3->wmcr);
+#endif
+
/* Write to the PDE (Power Down Enable) bit */
writew(enable, &wdog1->wmcr);
writew(enable, &wdog2->wmcr);