summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/mayan/Kconfig
diff options
context:
space:
mode:
authorAnand Vaikar <a.vaikar2021@gmail.com>2023-03-29 12:46:33 +0530
committerFelix Held <felix-coreboot@felixheld.de>2023-08-23 16:09:00 +0000
commit1855cb46440dea33eed93e32bb93dad137c6170b (patch)
treefcb236c6f5e5c8302b60c35a598787c9e4e4ecf0 /src/mainboard/amd/mayan/Kconfig
parent40c740584bd86a535924c0b0337f9ef094f3d394 (diff)
mb/amd/mayan: Enable the DT and M.2 SSD1 PCIE slots
Program the EC GPIOs to enable the DT or M.2 SSD1 PCIe slots based on the config option selected. Change-Id: Id141e5e55ef6e25722b411975a59c9764b86f624 Signed-off-by: Anand Vaikar <a.vaikar2021@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74069 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/mainboard/amd/mayan/Kconfig')
-rw-r--r--src/mainboard/amd/mayan/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/amd/mayan/Kconfig b/src/mainboard/amd/mayan/Kconfig
index a113db6069..35b39a6686 100644
--- a/src/mainboard/amd/mayan/Kconfig
+++ b/src/mainboard/amd/mayan/Kconfig
@@ -80,6 +80,24 @@ config CHROMEOS
# We don't have recovery buttons, so we can't manually enable devmode.
select GBB_FLAG_FORCE_DEV_SWITCH_ON
+choice
+ prompt "DT SLOT/M.2 SSD1 ENABLE"
+ default ENABLE_DT_SLOT_MAYAN
+ help
+ Either DT slot or M.2 SSD1 can be used to boot on Mayan,
+ as they are sharing IO lanes.
+
+config ENABLE_DT_SLOT_MAYAN
+ bool "Enable DT slot"
+
+config ENABLE_M2_SSD1_MAYAN
+ bool "Enable M.2 SSD1"
+
+config DISABLE_DT_M2_MAYAN
+ bool "Disable both DT and M.2 slot"
+
+endchoice
+
if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
config EFS_SPI_READ_MODE
default 3 # Quad IO (1-1-4)