1 # SPDX-License-Identifier: GPL-2.0-only
3 if BOARD_AMD_MAYAN_PHOENIX
5 config BOARD_SPECIFIC_OPTIONS
7 select BOARD_ROMSIZE_KB_16384 # Mayan actually has a 32MiB ROM
9 select SOC_AMD_COMMON_BLOCK_USE_ESPI
10 select AMD_SOC_CONSOLE_UART
11 select MAINBOARD_HAS_CHROMEOS
14 select PCIEXP_COMMON_CLOCK
15 select PCIEXP_L1_SUB_STATE
16 select SOC_AMD_COMMON_BLOCK_ESPI_RETAIN_PORT80_EN
17 select SOC_AMD_PHOENIX_FSP
20 default "src/mainboard/amd/mayan/chromeos.fmd" if CHROMEOS
21 default "src/mainboard/amd/mayan/board.fmd"
26 config MAINBOARD_PART_NUMBER
27 default "Mayan_Phoenix"
30 default "devicetree_phoenix.cb"
32 config MAYAN_HAVE_MCHP_FW
33 bool "Have Microchip EC firmware?"
36 config MAYAN_MCHP_SIG_FILE
37 string "Microchip EC signature file"
38 depends on MAYAN_HAVE_MCHP_FW
39 default "3rdparty/blobs/mainboard/amd/mayan/EC_mayan_sig.bin"
41 The EC sig blob is the first 4kBytes of the firmware image.
42 The first 4 bytes form a pointer (with CRC) to where the EC firmware
45 config MAYAN_MCHP_FW_FILE
46 string "Microchip EC firmware file"
47 depends on MAYAN_HAVE_MCHP_FW
48 default "3rdparty/blobs/mainboard/amd/mayan/EC_mayan.bin"
50 The EC firmware blob is at the MAYAN_MCHP_FW_OFFSET offset of the
53 config MAYAN_MCHP_FW_OFFSET
55 depends on MAYAN_HAVE_MCHP_FW
58 The EC firmware blob defaults to the 4MByte offset of the firmware
59 image. If this offset needs to change, a new signature block must be
60 generated with the updated offset.
63 select VBOOT_NO_BOARD_SUPPORT
64 select VBOOT_SEPARATE_VERSTAGE
65 select VBOOT_STARTS_IN_BOOTBLOCK
67 config VBOOT_VBNV_OFFSET
73 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
74 # Add the EFS and EC to the RO region only
75 # This is a mayan-specific override of soc/amd/phoenix/Kconfig
76 default "apu/amdfw ec/ecfw"
79 # Use default libpayload config
80 select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
81 # We don't have recovery buttons, so we can't manually enable devmode.
82 select GBB_FLAG_FORCE_DEV_SWITCH_ON
85 prompt "DT SLOT/M.2 SSD1 ENABLE"
86 default ENABLE_DT_SLOT_MAYAN
88 Either DT slot or M.2 SSD1 can be used to boot on Mayan,
89 as they are sharing IO lanes.
91 config ENABLE_DT_SLOT_MAYAN
94 config ENABLE_M2_SSD1_MAYAN
95 bool "Enable M.2 SSD1"
97 config DISABLE_DT_M2_MAYAN
98 bool "Disable both DT and M.2 slot"
102 if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
103 config EFS_SPI_READ_MODE
104 default 3 # Quad IO (1-1-4)
109 config EFS_SPI_MICRON_FLAG
112 config NORMAL_READ_SPI_SPEED
123 endif # BOARD_AMD_MAYAN_PHOENIX