diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2017-02-14 11:06:34 +0100 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-02-17 01:47:29 -0800 |
commit | ad401765141ef75cdee7845082294dfa75f75697 (patch) | |
tree | 6e2c6a5ea14361c61222065f2bacae3448c07dbd /chip/stm32/clock-stm32l4.c | |
parent | 484ef121193865225ddbc3a0b848db7f5384f836 (diff) | |
download | chrome-ec-ad401765141ef75cdee7845082294dfa75f75697.tar.gz |
stm32: add support for STM32L442
Should be close to the STM32L476 in the STM32L4 family.
Slightly different flash/RAM.
It's currently running from the internal clock (HSI) at 16Mhz,
we need to upgrade to 80Mhz (or 48Mhz if this is fast enough to save us
the PLL locking time).
The internal flash write/erase/protection is still not implemented for
the whole STM32L4 family.
Upgrade the SPI master support and verify that the TX works.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=chrome-os-partner:62893
TEST=make BOARD=eve_fp
run it on Nucleo-L432KC (STM32L432KC is mostly the same MCU without AES)
Change-Id: I87be7d4461aedfbd683ff7bb639c3a6005ee171e
Reviewed-on: https://chromium-review.googlesource.com/442466
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip/stm32/clock-stm32l4.c')
-rw-r--r-- | chip/stm32/clock-stm32l4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/clock-stm32l4.c b/chip/stm32/clock-stm32l4.c index 499c327baf..29c548e56e 100644 --- a/chip/stm32/clock-stm32l4.c +++ b/chip/stm32/clock-stm32l4.c @@ -29,7 +29,7 @@ enum clock_osc { OSC_PLL, /* PLL */ }; -static int freq; +static int freq = STM32_MSI_CLOCK; static int current_osc; int clock_get_freq(void) |