blob: 235f63e1c178dfa94caab098ab51f493f34c7b95 [file] [log] [blame]
Martin Roth3c963d92022-10-06 16:29:07 -06001# SPDX-License-Identifier: GPL-2.0-only
2
Felix Singer3a36daf2023-11-09 22:23:07 +01003config BOARD_AMD_BIRMAN_PHOENIX
4 select SOC_AMD_PHOENIX
5
6config BOARD_AMD_BIRMAN_GLINDA
7 select SOC_AMD_GLINDA
8
Martin Roth20646cd2023-01-04 21:27:06 -07009if BOARD_AMD_BIRMAN_GLINDA || BOARD_AMD_BIRMAN_PHOENIX
Martin Roth3c963d92022-10-06 16:29:07 -060010
11config BOARD_SPECIFIC_OPTIONS
12 def_bool y
Martin Roth86284c22022-10-27 18:15:25 -060013 select BOARD_ROMSIZE_KB_16384 # Birman actually has a 32MiB ROM
Martin Roth3c963d92022-10-06 16:29:07 -060014 select EC_ACPI
Fred Reitberger997ead62023-02-23 14:09:10 -050015 select SOC_AMD_COMMON_BLOCK_USE_ESPI if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
Fred Reitberger67bc6ab2023-04-06 10:01:23 -040016 select DRIVERS_PCIE_RTD3_DEVICE
Martin Roth3c963d92022-10-06 16:29:07 -060017 select MAINBOARD_HAS_CHROMEOS
18 select PCIEXP_ASPM
19 select PCIEXP_CLK_PM
20 select PCIEXP_COMMON_CLOCK
21 select PCIEXP_L1_SUB_STATE
Fred Reitberger997ead62023-02-23 14:09:10 -050022 select SOC_AMD_COMMON_BLOCK_ESPI_RETAIN_PORT80_EN if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
23 select SOC_AMD_COMMON_BLOCK_SIMNOW_SUPPORTED
Fred Reitbergere8696e12023-06-23 09:59:18 -040024 select SPI_FLASH_EXIT_4_BYTE_ADDR_MODE
Martin Roth3c963d92022-10-06 16:29:07 -060025
26config FMDFILE
Fred Reitberger0ef9d892023-02-08 13:02:42 -050027 default "src/mainboard/amd/birman/chromeos_glinda.fmd" if CHROMEOS && BOARD_AMD_BIRMAN_GLINDA
28 default "src/mainboard/amd/birman/chromeos_phoenix.fmd" if CHROMEOS && BOARD_AMD_BIRMAN_PHOENIX
29 default "src/mainboard/amd/birman/board_glinda.fmd" if BOARD_AMD_BIRMAN_GLINDA
30 default "src/mainboard/amd/birman/board_phoenix.fmd"
Martin Roth3c963d92022-10-06 16:29:07 -060031
32config MAINBOARD_DIR
33 default "amd/birman"
34
35config MAINBOARD_PART_NUMBER
Martin Roth86284c22022-10-27 18:15:25 -060036 default "Birman_Glinda" if BOARD_AMD_BIRMAN_GLINDA
Martin Roth20646cd2023-01-04 21:27:06 -070037 default "Birman_Phoenix"
Martin Roth86284c22022-10-27 18:15:25 -060038
39config DEVICETREE
40 default "devicetree_glinda.cb" if BOARD_AMD_BIRMAN_GLINDA
Martin Roth20646cd2023-01-04 21:27:06 -070041 default "devicetree_phoenix.cb"
Martin Roth3c963d92022-10-06 16:29:07 -060042
Martin Roth3c963d92022-10-06 16:29:07 -060043config BIRMAN_HAVE_MCHP_FW
44 bool "Have Microchip EC firmware?"
45 default n
46
47config BIRMAN_MCHP_SIG_FILE
48 string "Microchip EC signature file"
49 depends on BIRMAN_HAVE_MCHP_FW
50 default "3rdparty/blobs/mainboard/amd/birman/EC_birman_sig.bin"
51 help
52 The EC sig blob is the first 4kBytes of the firmware image.
53 The first 4 bytes form a pointer (with CRC) to where the EC firmware
54 is located
55
Martin Roth2fca0262023-05-10 13:32:29 -060056config AMD_SOC_CONSOLE_UART
57 default y if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
58
Martin Roth3c963d92022-10-06 16:29:07 -060059config BIRMAN_MCHP_FW_FILE
60 string "Microchip EC firmware file"
61 depends on BIRMAN_HAVE_MCHP_FW
62 default "3rdparty/blobs/mainboard/amd/birman/EC_birman.bin"
63 help
Fred Reitberger75e720b2022-12-12 10:13:41 -050064 The EC firmware blob is at the EC_BODY FMAP region of the firmware image.
Martin Roth3c963d92022-10-06 16:29:07 -060065
66config VBOOT
67 select VBOOT_NO_BOARD_SUPPORT
68 select VBOOT_SEPARATE_VERSTAGE
69 select VBOOT_STARTS_IN_BOOTBLOCK
70
71config VBOOT_VBNV_OFFSET
72 hex
73 default 0x2A
74
75config RO_REGION_ONLY
76 string
77 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
78 # Add the EFS and EC to the RO region only
Martin Roth20646cd2023-01-04 21:27:06 -070079 # This is a birman-specific override of soc/amd/(phoenix | glinda)/Kconfig
Martin Roth3c963d92022-10-06 16:29:07 -060080 default "apu/amdfw apu/ecfw"
81
82config CHROMEOS
83 # Use default libpayload config
84 select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
85 # We don't have recovery buttons, so we can't manually enable devmode.
86 select GBB_FLAG_FORCE_DEV_SWITCH_ON
87
Fred Reitberger3c8a8c22023-03-23 13:29:01 -040088config ENABLE_EVAL_CARD
89 bool "Enable Eval Card"
90 help
91 Enable the Eval Card PCIe slot
92
93config ENABLE_EVAL_19V
94 bool "Enable 19V rail for Eval Card"
95 depends on ENABLE_EVAL_CARD
96 help
97 Enable the 19V rail for Eval Card PCIe slot
98
99choice
100 prompt "DT SLOT/M.2 SSD1 ENABLE"
101 default ENABLE_DT_SLOT
102 help
103 Either DT slot or M.2 SSD1 can be used, as they are sharing PCIe lanes.
104
105config ENABLE_DT_SLOT
106 bool "Enable DT slot"
107
108config ENABLE_M2_SSD1
109 bool "Enable M.2 SSD1"
110
111config DISABLE_DT_M2
112 bool "Disable both DT and M.2 slot"
113
114endchoice
115
116choice
117 prompt "WLAN/WWAN Selection"
118 default WLAN0_WWAN0
119 help
120 WLAN and WWAN lane configuration
121
122config WLAN0_WWAN0
123 bool "Both WLAN and WWAN Enabled (1 lane each)"
124
125config WLAN01
126 bool "Only WLAN Enabled (2 lanes WLAN, 0 lanes WWAN)"
127
128config WWAN01
129 bool "Only WWAN Enabled (2 lanes WWAN, 0 lanes WLAN)"
130
131endchoice
132
Martin Roth3c963d92022-10-06 16:29:07 -0600133if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
134config EFS_SPI_READ_MODE
135 default 3 # Quad IO (1-1-4)
136
137config EFS_SPI_SPEED
138 default 0 # 66MHz
139
140config EFS_SPI_MICRON_FLAG
141 default 0
142
143config NORMAL_READ_SPI_SPEED
144 default 1 # 33MHz
145
146config ALT_SPI_SPEED
147 default 1 # 33MHz
148
149config TPM_SPI_SPEED
150 default 1 # 33MHz
151
152endif # !EM100
153
Martin Roth20646cd2023-01-04 21:27:06 -0700154endif # BOARD_AMD_BIRMAN_GLINDA || BOARD_AMD_BIRMAN_PHOENIX