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