This patch fixes the gpio, i2c and watchdog shim drivers so they set the CLK_PERIPH_CLK bit during driver initialization. Differently from Quark SE, the peripheral clock gate bit (CLK_PERIPH_CLK) is not enabled by default in Quark D2000. We have to explicitly set this bit in order to properly initialize the device. This issue has been masked so far because the CLK_PERIPH_CLK bit is set when UART NS16550 driver is enabled. The UART NS16550 driver is enabled by default for Quark D2000 so gpio, i2c and watchdog sample apps were working just fine. But if we disable the NS16550 driver, these samples applications stop working. The remaining shim drivers already set the CLK_PERIPH_CLK bit during initialization so there is no need to fix them. Change-Id: I3f658da564f87e9d52092ce7aac423c7b3e0c890 Signed-off-by: Andre Guedes <andre.guedes@intel.com> |
||
---|---|---|
.. | ||
iwdg_stm32.c | ||
iwdg_stm32.h | ||
Kconfig | ||
Kconfig.stm32 | ||
Makefile | ||
wdt_dw.c | ||
wdt_dw.h | ||
wdt_qmsi.c |