summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-09-12 14:25:31 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-09-14 12:08:32 -0700
commit2c760cf30b95715791eb43701b3d5536558b3a8d (patch)
tree70902377561991e55997c7215eaf71c1862f33b7 /board
parent17ad0ededbc33cd22324e622d7d01fac1fae3e3a (diff)
downloadchrome-ec-2c760cf30b95715791eb43701b3d5536558b3a8d.tar.gz
flash: Add CONFIG_FLASH_READOUT_PROTECTION config option
Instead of tying together CONFIG_WP_ALWAYS and RDP protection, separate the options. BRANCH=nocturne BUG=b:111330723 TEST=make buildall -j Change-Id: I905b573a900ef4dd0431666c525c951582143e09 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1222093 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/coffeecake/board.h1
-rw-r--r--board/cr50/board.h1
-rw-r--r--board/dingdong/board.h1
-rw-r--r--board/glkrvp/board.h1
-rw-r--r--board/glkrvp_ite/board.h1
-rw-r--r--board/hoho/board.h1
-rw-r--r--board/nucleo-f411re/board.h1
7 files changed, 7 insertions, 0 deletions
diff --git a/board/coffeecake/board.h b/board/coffeecake/board.h
index 3db2ea11b1..77abfa7f99 100644
--- a/board/coffeecake/board.h
+++ b/board/coffeecake/board.h
@@ -67,6 +67,7 @@
/* No Write-protect GPIO, force the write-protection */
#define CONFIG_WP_ALWAYS
+#define CONFIG_FLASH_READOUT_PROTECTION
#ifndef __ASSEMBLER__
diff --git a/board/cr50/board.h b/board/cr50/board.h
index 8d5e7b17ea..cd1045d986 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -39,6 +39,7 @@
/* Flash configuration */
#undef CONFIG_FLASH_PSTATE
#define CONFIG_WP_ALWAYS
+#define CONFIG_FLASH_READOUT_PROTECTION
#define CONFIG_CMD_FLASH
#define CONFIG_CRC8
diff --git a/board/dingdong/board.h b/board/dingdong/board.h
index 3636b3f34f..3ecbf7658c 100644
--- a/board/dingdong/board.h
+++ b/board/dingdong/board.h
@@ -52,6 +52,7 @@
/* No Write-protect GPIO, force the write-protection */
#define CONFIG_WP_ALWAYS
+#define CONFIG_FLASH_READOUT_PROTECTION
#ifndef __ASSEMBLER__
diff --git a/board/glkrvp/board.h b/board/glkrvp/board.h
index 1b330f3d00..fc37732bc8 100644
--- a/board/glkrvp/board.h
+++ b/board/glkrvp/board.h
@@ -90,6 +90,7 @@
#define GPIO_VOLUME_UP_L GPIO_EC_VOLUP_BTN_ODL
#define GPIO_VOLUME_DOWN_L GPIO_EC_VOLDN_BTN_ODL
#define CONFIG_WP_ALWAYS
+#define CONFIG_FLASH_READOUT_PROTECTION
#define CONFIG_I2C
#define CONFIG_I2C_MASTER
diff --git a/board/glkrvp_ite/board.h b/board/glkrvp_ite/board.h
index 4209a06bf8..3d5abee7e0 100644
--- a/board/glkrvp_ite/board.h
+++ b/board/glkrvp_ite/board.h
@@ -89,6 +89,7 @@
#define CONFIG_VOLUME_BUTTONS
#define CONFIG_LID_SWITCH
#define CONFIG_WP_ALWAYS
+#define CONFIG_FLASH_READOUT_PROTECTION
/* Verified boot */
#define CONFIG_SHA256_UNROLLED
diff --git a/board/hoho/board.h b/board/hoho/board.h
index 0698fe3f74..dd5fe2c767 100644
--- a/board/hoho/board.h
+++ b/board/hoho/board.h
@@ -62,6 +62,7 @@
/* No Write-protect GPIO, force the write-protection */
#define CONFIG_WP_ALWAYS
+#define CONFIG_FLASH_READOUT_PROTECTION
#ifndef __ASSEMBLER__
diff --git a/board/nucleo-f411re/board.h b/board/nucleo-f411re/board.h
index 0a8dcc6ba8..7ffa0b0f07 100644
--- a/board/nucleo-f411re/board.h
+++ b/board/nucleo-f411re/board.h
@@ -53,6 +53,7 @@
#define TIM_WATCHDOG 11
#define CONFIG_WP_ALWAYS
+#define CONFIG_FLASH_READOUT_PROTECTION
/* ADC signal */
enum adc_channel {