diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/imx233/system-imx233.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c index fd9ddf0ffc..3f751a8aa5 100644 --- a/firmware/target/arm/imx233/system-imx233.c +++ b/firmware/target/arm/imx233/system-imx233.c | |||
@@ -158,6 +158,11 @@ bool imx233_us_elapsed(uint32_t ref, unsigned us_delay) | |||
158 | 158 | ||
159 | void imx233_reset_block(volatile uint32_t *block_reg) | 159 | void imx233_reset_block(volatile uint32_t *block_reg) |
160 | { | 160 | { |
161 | /* deassert reset and clock gate */ | ||
162 | __REG_CLR(*block_reg) = __BLOCK_SFTRST; | ||
163 | while(*block_reg & __BLOCK_SFTRST); | ||
164 | __REG_CLR(*block_reg) = __BLOCK_CLKGATE; | ||
165 | while(*block_reg & __BLOCK_CLKGATE); | ||
161 | /* soft-reset */ | 166 | /* soft-reset */ |
162 | __REG_SET(*block_reg) = __BLOCK_SFTRST; | 167 | __REG_SET(*block_reg) = __BLOCK_SFTRST; |
163 | /* make sure block is gated off */ | 168 | /* make sure block is gated off */ |