stm32l0|l1: don't corrupt RCC registers
instead of overwriting Reset settings, let's read-modify-write RCC registers. Change-Id: I21b7e26e6007d3c3d73803c681c980c6947f5910 Signed-off-by: Felipe Balbi <balbi@kernel.org> Reviewed-on: http://openocd.zylin.com/3601 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Andreas Fritiofson
parent
f545044c2a
commit
3e7cfc6709
@@ -73,10 +73,10 @@ proc stm32l_enable_HSI {} {
|
||||
echo "STM32L: Enabling HSI"
|
||||
|
||||
# Set HSION in RCC_CR
|
||||
mww 0x40023800 0x00000101
|
||||
mmw 0x40023800 0x00000101 0
|
||||
|
||||
# Set HSI as SYSCLK
|
||||
mww 0x40023808 0x00000001
|
||||
mmw 0x40023808 0x00000001 0
|
||||
|
||||
# Increase JTAG speed
|
||||
adapter_khz 2000
|
||||
|
||||
Reference in New Issue
Block a user