summaryrefslogtreecommitdiff
path: root/chip/stm32
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2020-05-28 15:53:09 -0700
committerCommit Bot <commit-bot@chromium.org>2020-05-30 05:16:41 +0000
commita832f50a83e6d897cf22f306b4e01da4ee40fe4e (patch)
treeea84ac98fd6b55c624cf70413cb5bfb5bd8204bc /chip/stm32
parent442ca01546e728e4f6b24790a6c1c61595c47bac (diff)
downloadchrome-ec-a832f50a83e6d897cf22f306b4e01da4ee40fe4e.tar.gz
test: Add tests for flash option bytes and control register
BRANCH=none BUG=b:155897971 TEST=On dragonclaw v0.2 with Segger J-Trace and servo micro attached: ./test/run_device_tests.py -t flash_physical => PASS Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I9a71cdcc2947d13cf2f1d44fdbd57cf20ed6402f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2220737 Commit-Queue: Yicheng Li <yichengli@chromium.org> Tested-by: Yicheng Li <yichengli@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/stm32')
-rw-r--r--chip/stm32/flash-f.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/stm32/flash-f.h b/chip/stm32/flash-f.h
index 53892655c8..8d2b8e1fae 100644
--- a/chip/stm32/flash-f.h
+++ b/chip/stm32/flash-f.h
@@ -66,6 +66,9 @@ void lock_flash_option_bytes(void);
/**
* Disable the flash option bytes register.
*
+ * This function expects that bus faults have not already been ignored when
+ * called.
+ *
* Once this function is called any attempt at accessing the flash option
* bytes register will generate a bus fault until the next reset.
*
@@ -76,6 +79,9 @@ void disable_flash_option_bytes(void);
/**
* Disable the flash control register.
*
+ * This function expects that bus faults have not already been ignored when
+ * called.
+ *
* Once this function is called any attempt at accessing the flash control
* register will generate a bus fault until the next reset.
*