mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-26 00:22:47 +00:00
oxnas: also reset GPIO B registers on boot
Clear both, SYS_CTRL_*_SEL and SEC_CTRL_*_SEL on boot instead of writing to SYS_CTRL_*_SEL twice which looks like a copy-paste error. Thanks to anonymous to bring this up in #21892! Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49042
This commit is contained in:
parent
174bc392ff
commit
daf7ab04ba
@ -152,12 +152,12 @@ void ox820_assert_system_reset(enum reboot_mode mode, const char *cmd)
|
||||
writel(0, SYS_CTRL_ALTERNATIVE_SEL);
|
||||
writel(0, SYS_CTRL_PULLUP_SEL);
|
||||
|
||||
writel(0, SYS_CTRL_SECONDARY_SEL);
|
||||
writel(0, SYS_CTRL_TERTIARY_SEL);
|
||||
writel(0, SYS_CTRL_QUATERNARY_SEL);
|
||||
writel(0, SYS_CTRL_DEBUG_SEL);
|
||||
writel(0, SYS_CTRL_ALTERNATIVE_SEL);
|
||||
writel(0, SYS_CTRL_PULLUP_SEL);
|
||||
writel(0, SEC_CTRL_SECONDARY_SEL);
|
||||
writel(0, SEC_CTRL_TERTIARY_SEL);
|
||||
writel(0, SEC_CTRL_QUATERNARY_SEL);
|
||||
writel(0, SEC_CTRL_DEBUG_SEL);
|
||||
writel(0, SEC_CTRL_ALTERNATIVE_SEL);
|
||||
writel(0, SEC_CTRL_PULLUP_SEL);
|
||||
|
||||
/* No need to save any state, as the ROM loader can determine whether
|
||||
* reset is due to power cycling or programatic action, just hit the
|
||||
|
Loading…
Reference in New Issue
Block a user