summaryrefslogtreecommitdiff
path: root/board/zinger
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-04-03 15:48:23 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-06-02 18:39:37 -0700
commit72afc55bd9d3f12fa62609b61dfbfe300a277dd3 (patch)
treea81bddc9ffdbe380967f109b11d8b66d6db36690 /board/zinger
parent92ea78398bb76fa56d3ae522d52788db6bceb2b9 (diff)
downloadchrome-ec-72afc55bd9d3f12fa62609b61dfbfe300a277dd3.tar.gz
stm32: cleanup flash-f by using constant from register.h
Use constants from registers.h, to easily support other ECs. Fix indentation in registers.h BRANCH=none TEST=compile + following patches tested on STM32F411 BUG=None Change-Id: Iecb3ce759a5c4ff13463e7df1cb7e03fc1ce6f69 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/264030 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'board/zinger')
-rw-r--r--board/zinger/hardware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/zinger/hardware.c b/board/zinger/hardware.c
index d6a8d1d4c3..c3cf2b5f4a 100644
--- a/board/zinger/hardware.c
+++ b/board/zinger/hardware.c
@@ -465,7 +465,7 @@ void flash_physical_permanent_protect(void)
write_optb(0, 0x11);
/* Reset by using OBL_LAUNCH to take changes into account */
asm volatile("cpsid i");
- STM32_FLASH_CR |= STM32_FLASH_CR_OBL_LAUNCH;
+ STM32_FLASH_CR |= FLASH_CR_OBL_LAUNCH;
/* Spin and wait for reboot; should never return */
while (1)
;