mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
committed by
Stefano Babic
parent
b42287f4c9
commit
e2162d709f
@@ -65,7 +65,7 @@ void init_aips(void)
|
||||
}
|
||||
}
|
||||
|
||||
void imx_set_wdog_powerdown(bool enable)
|
||||
void imx_wdog_disable_powerdown(void)
|
||||
{
|
||||
struct wdog_regs *wdog1 = (struct wdog_regs *)WDOG1_BASE_ADDR;
|
||||
struct wdog_regs *wdog2 = (struct wdog_regs *)WDOG2_BASE_ADDR;
|
||||
@@ -75,13 +75,13 @@ void imx_set_wdog_powerdown(bool enable)
|
||||
#endif
|
||||
|
||||
/* Write to the PDE (Power Down Enable) bit */
|
||||
writew(enable, &wdog1->wmcr);
|
||||
writew(enable, &wdog2->wmcr);
|
||||
writew(0, &wdog1->wmcr);
|
||||
writew(0, &wdog2->wmcr);
|
||||
|
||||
if (is_mx6sx() || is_mx6ul() || is_mx6ull() || is_mx7())
|
||||
writew(enable, &wdog3->wmcr);
|
||||
writew(0, &wdog3->wmcr);
|
||||
#ifdef CONFIG_MX7D
|
||||
writew(enable, &wdog4->wmcr);
|
||||
writew(0, &wdog4->wmcr);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user