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