Felix Held submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Felix Singer: Looks good to me, approved Michał Kopeć: Looks good to me, approved
mainboard/Kconfig: add 24MB ROM size

16MB + 8MB flashes are used on some boards, such as Lenovo M920

Change-Id: Iac6e076ed17d7e944cc829ff0cb27ede50c6f7db
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80072
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michał Kopeć <michal.kopec@3mdeb.com>
---
M src/mainboard/Kconfig
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/mainboard/Kconfig b/src/mainboard/Kconfig
index aec996a..ec4ae8f 100644
--- a/src/mainboard/Kconfig
+++ b/src/mainboard/Kconfig
@@ -44,6 +44,8 @@
bool
config BOARD_ROMSIZE_KB_16384
bool
+config BOARD_ROMSIZE_KB_24576
+ bool
config BOARD_ROMSIZE_KB_32768
bool
config BOARD_ROMSIZE_KB_65536
@@ -63,6 +65,7 @@
default COREBOOT_ROMSIZE_KB_10240 if BOARD_ROMSIZE_KB_10240
default COREBOOT_ROMSIZE_KB_12288 if BOARD_ROMSIZE_KB_12288
default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
+ default COREBOOT_ROMSIZE_KB_24576 if BOARD_ROMSIZE_KB_24576
default COREBOOT_ROMSIZE_KB_32768 if BOARD_ROMSIZE_KB_32768
default COREBOOT_ROMSIZE_KB_65536 if BOARD_ROMSIZE_KB_65536
help
@@ -126,6 +129,11 @@
help
Choose this option if you have a 16384 KB (16 MB) ROM chip.

+config COREBOOT_ROMSIZE_KB_24576
+ bool "24576 KB (24 MB)"
+ help
+ Choose this option if you have a 24576 KB (24 MB) ROM chip.
+
config COREBOOT_ROMSIZE_KB_32768
bool "32768 KB (32 MB)"
help
@@ -152,6 +160,7 @@
default 10240 if COREBOOT_ROMSIZE_KB_10240
default 12288 if COREBOOT_ROMSIZE_KB_12288
default 16384 if COREBOOT_ROMSIZE_KB_16384
+ default 24576 if COREBOOT_ROMSIZE_KB_24576
default 32768 if COREBOOT_ROMSIZE_KB_32768
default 65536 if COREBOOT_ROMSIZE_KB_65536

@@ -169,6 +178,7 @@
default 0x00a00000 if COREBOOT_ROMSIZE_KB_10240
default 0x00c00000 if COREBOOT_ROMSIZE_KB_12288
default 0x01000000 if COREBOOT_ROMSIZE_KB_16384
+ default 0x01800000 if COREBOOT_ROMSIZE_KB_24576
default 0x02000000 if COREBOOT_ROMSIZE_KB_32768
default 0x04000000 if COREBOOT_ROMSIZE_KB_65536


To view, visit change 80072. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Iac6e076ed17d7e944cc829ff0cb27ede50c6f7db
Gerrit-Change-Number: 80072
Gerrit-PatchSet: 2
Gerrit-Owner: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Gerrit-Reviewer: Felix Held <felix-coreboot@felixheld.de>
Gerrit-Reviewer: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Gerrit-Reviewer: Michał Kopeć <michal.kopec@3mdeb.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski@3mdeb.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-MessageType: merged