aboutsummaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorVictor Ding <victording@google.com>2020-08-18 18:27:26 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2020-08-20 11:11:35 +0000
commit821e44cb4dc23ca1261a92b3ee3cdf591c1da91b (patch)
treef8733fdb56cafdce6f723aece690b3ce7349612e /flashrom.c
parent436b4155b1ea15c46080ad497cfb0a8afed84368 (diff)
downloadflashrom-821e44cb4dc23ca1261a92b3ee3cdf591c1da91b.tar.gz
flashrom-821e44cb4dc23ca1261a92b3ee3cdf591c1da91b.tar.bz2
flashrom-821e44cb4dc23ca1261a92b3ee3cdf591c1da91b.zip
Add MEC1308 EC programmer
Initial support of Microchip MEC1308 Embedded Controller. BUG=b:156144893 BRANCH=none Signed-off-by: Victor Ding <victording@google.com> Change-Id: I2d51b4bdc0b38b6e488e71b9e774eb6232a2069e Reviewed-on: https://review.coreboot.org/c/flashrom/+/44541 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index 35ac6f54..c18a04fc 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -84,6 +84,18 @@ const struct programmer_entry programmer_table[] = {
},
#endif
+#if CONFIG_MEC1308 == 1
+ {
+ .name = "mec1308",
+ .type = OTHER,
+ .devs.note = "Microchip MEC1308 Embedded Controller.\n",
+ .init = mec1308_init,
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .delay = internal_delay,
+ },
+#endif
+
#if CONFIG_NIC3COM == 1
{
.name = "nic3com",