summaryrefslogtreecommitdiff
path: root/chip/g/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/flash.c')
-rw-r--r--chip/g/flash.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/chip/g/flash.c b/chip/g/flash.c
index 4829c986c8..7812bb52e3 100644
--- a/chip/g/flash.c
+++ b/chip/g/flash.c
@@ -464,6 +464,11 @@ void flash_open_ro_window(uint32_t offset, size_t size_b)
GWRITE_FIELD(GLOBALSEC, FLASH_REGION6_CTRL, WR_EN, 1);
}
+void flash_close_ro_window(void)
+{
+ GWRITE_FIELD(GLOBALSEC, FLASH_REGION6_CTRL, WR_EN, 0);
+}
+
#ifdef CR50_DEV
/*
* The seed is the first 32 bytes of the manufacture state space. That is all