blob: d3803652c7d141e15331fdf99d4d7c66439c0b41 [file] [log] [blame]
Arthur Heymans6d3682e2023-07-13 12:34:04 +02001config SOC_AMD_GENOA
2 bool
3
4if SOC_AMD_GENOA
5
6config SOC_SPECIFIC_OPTIONS
7 def_bool y
8 select ARCH_X86
9 select HAVE_EXP_X86_64_SUPPORT
Arthur Heymans6d3682e2023-07-13 12:34:04 +020010 select RESET_VECTOR_IN_RAM
11 select SOC_AMD_COMMON
12 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Arthur Heymans4da9d6b42023-07-13 14:19:09 +020013 select SOC_AMD_COMMON_BLOCK_AOAC
Arthur Heymans48167b12023-07-13 14:07:54 +020014 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
Arthur Heymans6d3682e2023-07-13 12:34:04 +020015 select SOC_AMD_COMMON_BLOCK_NONCAR
16 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Arthur Heymans48167b12023-07-13 14:07:54 +020017 select SOC_AMD_COMMON_BLOCK_TSC
Arthur Heymanse4eba132023-07-13 14:02:42 +020018 select X86_CUSTOM_BOOTMEDIA
Arthur Heymans6d3682e2023-07-13 12:34:04 +020019
20config USE_EXP_X86_64_SUPPORT
21 default y
22
vbpandya87d8b8c2023-09-22 20:49:37 +053023config CHIPSET_DEVICETREE
24 string
25 default "soc/amd/genoa/chipset.cb"
26
Arthur Heymans6d3682e2023-07-13 12:34:04 +020027config EARLY_RESERVED_DRAM_BASE
28 hex
29 default 0x7000000
30 help
31 This variable defines the base address of the DRAM which is reserved
32 for usage by coreboot in early stages (i.e. before ramstage is up).
33 This memory gets reserved in BIOS tables to ensure that the OS does
34 not use it, thus preventing corruption of OS memory in case of S3
35 resume.
36
37config EARLYRAM_BSP_STACK_SIZE
38 hex
39 default 0x1000
40
41config PSP_APOB_DRAM_ADDRESS
42 hex
43 default 0x7001000
44 help
45 Location in DRAM where the PSP will copy the AGESA PSP Output
46 Block.
47
48config PSP_APOB_DRAM_SIZE
49 hex
50 default 0x20000
51
52config PRERAM_CBMEM_CONSOLE_SIZE
53 hex
54 default 0x1600
55 help
56 Increase this value if preram cbmem console is getting truncated
57
58config C_ENV_BOOTBLOCK_SIZE
59 hex
60 default 0x10000
61 help
62 Sets the size of the bootblock stage that should be loaded in DRAM.
63 This variable controls the DRAM allocation size in linker script
64 for bootblock stage.
65
66config ROMSTAGE_ADDR
67 hex
68 default 0x7040000
69 help
70 Sets the address in DRAM where romstage should be loaded.
71
72config ROMSTAGE_SIZE
73 hex
74 default 0x80000
75 help
76 Sets the size of DRAM allocation for romstage in linker script.
77
Arthur Heymans901f0402023-07-13 14:14:55 +020078config ECAM_MMCONF_BASE_ADDRESS
79 hex
80 default 0xE0000000
81
82config ECAM_MMCONF_BUS_NUMBER
83 int
84 default 256
85
Arthur Heymans8f1c7072023-07-13 12:52:49 +020086menu "PSP Configuration Options"
87
88config AMDFW_CONFIG_FILE
89 string
90 default "src/soc/amd/genoa/fw.cfg"
91
92config PSP_DISABLE_POSTCODES
93 bool "Disable PSP post codes"
94 help
95 Disables the output of port80 post codes from PSP.
96
97config PSP_INIT_ESPI
98 bool "Initialize eSPI in PSP Stage 2 Boot Loader"
99 help
100 Select to initialize the eSPI controller in the PSP Stage 2 Boot
101 Loader.
102
103config PSP_UNLOCK_SECURE_DEBUG
104 bool
105 default y
106
107config HAVE_PSP_WHITELIST_FILE
108 bool "Include a debug whitelist file in PSP build"
109 default n
110 help
111 Support secured unlock prior to reset using a whitelisted
112 serial number. This feature requires a signed whitelist image
113 and bootloader from AMD.
114
115 If unsure, answer 'n'
116
117config PSP_WHITELIST_FILE
118 string "Debug whitelist file path"
119 depends on HAVE_PSP_WHITELIST_FILE
120
Felix Held4ab1db82023-09-28 19:54:55 +0200121config PERFORM_SPL_FUSING
122 bool "Send SPL fuse command to PSP"
123 default n
124 help
125 Send the Security Patch Level (SPL) fusing command to the PSP in
126 order to update the minimum SPL version to be written to the SoC's
127 fuse bits. This will prevent using any embedded firmware components
128 with lower SPL version.
129
130 If unsure, answer 'n'
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200131
132config SPL_TABLE_FILE
Felix Held4ab1db82023-09-28 19:54:55 +0200133 string "SPL table file override"
134 help
135 Provide a mainboard-specific Security Patch Level (SPL) table file
136 override. The SPL file is required to support PSP FW anti-rollback
137 and needs to be created by AMD. The default SPL file specified in the
138 SoC's fw.cfg is in the corresponding folder of the amd_blobs submodule
139 and applies to all boards that use the SoC without verstage on PSP.
140 In the verstage on PSP case, a different SPL file is specific as an
141 override via this Kconfig option.
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200142
143config PSP_SOFTFUSE_BITS
144 string "PSP Soft Fuse bits to enable"
145 default ""
146 help
147 Space separated list of Soft Fuse bits to enable.
148 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
149 Bit 7: Disable PSP postcodes on Renoir and newer chips only
150 (Set by PSP_DISABLE_PORT80)
151 Bit 15: PSP debug output destination:
152 0=SoC MMIO UART, 1=IO port 0x3F8
153
154 See #57299 (NDA) for additional bit definitions.
155endmenu
156
157
158endif # SOC_AMD_GENOA