diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-11-23 10:55:33 -0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-11-27 10:34:49 +0100 |
commit | e2162d709f9c0f7d8b781cad849cdb2f2cc6efa8 (patch) | |
tree | afa151dd01fedad2510dab6ac975d6398900ecba /arch/arm/mach-imx/mx6/soc.c | |
parent | b42287f4c92517022ab4e9a21ed27b9384c725cb (diff) | |
download | u-boot-e2162d709f9c0f7d8b781cad849cdb2f2cc6efa8.tar.gz |
imx: Remove boolean parameter from wdog powerdown function
imx_set_wdog_powerdown() is always used to disable the power down
enable bit, so remove the boolean parameter of the function.
It is also a bit strange to write a boolean value into registers,
so this new version makes explicit that we are writing 0.
While at it, rename it to imx_wdog_disable_powerdown().
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/mx6/soc.c')
-rw-r--r-- | arch/arm/mach-imx/mx6/soc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c index ad72c12511..43cb58106b 100644 --- a/arch/arm/mach-imx/mx6/soc.c +++ b/arch/arm/mach-imx/mx6/soc.c @@ -436,7 +436,7 @@ int arch_cpu_init(void) if (is_mx6sl()) setbits_le32(&ccm->cscmr1, MXC_CCM_CSCMR1_PER_CLK_SEL_MASK); - imx_set_wdog_powerdown(false); /* Disable PDE bit of WMCR register */ + imx_wdog_disable_powerdown(); /* Disable PDE bit of WMCR register */ if (is_mx6sx()) setbits_le32(&ccm->cscdr1, MXC_CCM_CSCDR1_UART_CLK_SEL); |