summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/mchp/config_chip.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/chip/mchp/config_chip.h b/chip/mchp/config_chip.h
index cae3779c55..fb39ea7870 100644
--- a/chip/mchp/config_chip.h
+++ b/chip/mchp/config_chip.h
@@ -116,6 +116,22 @@
/************************************************************************/
/* Define our flash layout. */
+/*
+ * MEC1521H loads firmware using QMSPI controller
+ * CONFIG_SPI_FLASH_PORT is the index into
+ * spi_devices[] in board.c
+ */
+#define CONFIG_SPI_FLASH_PORT 0
+#define CONFIG_SPI_FLASH
+
+/*
+ * MEC1727 chip has integrated SPI flash with 512KB size
+ */
+#if (defined(CHIP_VARIANT_MEC1727SZ) || defined(CHIP_VARIANT_MEC1727LJ))
+/* Total size of writable flash */
+#define CONFIG_FLASH_SIZE_BYTES 524288
+#endif
+
/* Protect bank size 4K bytes */
#define CONFIG_FLASH_BANK_SIZE 0x00001000
/* Sector erase size 4K bytes */