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