Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | config SOC_AMD_CEZANNE |
| 4 | bool |
| 5 | help |
| 6 | AMD Cezanne support |
| 7 | |
| 8 | if SOC_AMD_CEZANNE |
| 9 | |
| 10 | config SOC_SPECIFIC_OPTIONS |
| 11 | def_bool y |
Kyösti Mälkki | 3139c8d | 2020-06-28 16:33:33 +0300 | [diff] [blame] | 12 | select ACPI_SOC_NVS |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 13 | select ARCH_BOOTBLOCK_X86_32 |
| 14 | select ARCH_VERSTAGE_X86_32 |
| 15 | select ARCH_ROMSTAGE_X86_32 |
| 16 | select ARCH_RAMSTAGE_X86_32 |
Felix Held | 44f4153 | 2020-12-09 02:01:16 +0100 | [diff] [blame] | 17 | select HAVE_CF9_RESET |
Felix Held | 4be064a | 2020-12-08 17:21:04 +0100 | [diff] [blame] | 18 | select IOAPIC |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 19 | select RESET_VECTOR_IN_RAM |
| 20 | select SOC_AMD_COMMON |
Felix Held | 64de2c1 | 2020-12-05 20:53:59 +0100 | [diff] [blame] | 21 | select SOC_AMD_COMMON_BLOCK_ACPIMMIO |
Felix Held | 07462ef | 2020-12-11 15:55:45 +0100 | [diff] [blame] | 22 | select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 23 | select SOC_AMD_COMMON_BLOCK_NONCAR |
| 24 | select SOC_AMD_COMMON_BLOCK_PCI_MMCONF |
Felix Held | 4be064a | 2020-12-08 17:21:04 +0100 | [diff] [blame] | 25 | select SOC_AMD_COMMON_BLOCK_SMBUS |
Zheng Bao | 02a5ddd | 2020-12-15 22:16:51 +0800 | [diff] [blame] | 26 | select SOC_AMD_COMMON_BLOCK_SMI |
Felix Held | 65783fb | 2020-12-04 17:38:46 +0100 | [diff] [blame] | 27 | select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H |
Felix Held | 8a3d4d5 | 2021-01-13 03:06:21 +0100 | [diff] [blame^] | 28 | select SOC_AMD_COMMON_BLOCK_UART |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 29 | |
Furquan Shaikh | 696f4ea | 2021-01-08 11:48:52 -0800 | [diff] [blame] | 30 | config CHIPSET_DEVICETREE |
| 31 | string |
| 32 | default "soc/amd/cezanne/chipset.cb" |
| 33 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 34 | config EARLY_RESERVED_DRAM_BASE |
| 35 | hex |
| 36 | default 0x2000000 |
| 37 | help |
| 38 | This variable defines the base address of the DRAM which is reserved |
| 39 | for usage by coreboot in early stages (i.e. before ramstage is up). |
| 40 | This memory gets reserved in BIOS tables to ensure that the OS does |
| 41 | not use it, thus preventing corruption of OS memory in case of S3 |
| 42 | resume. |
| 43 | |
| 44 | config EARLYRAM_BSP_STACK_SIZE |
| 45 | hex |
| 46 | default 0x1000 |
| 47 | |
| 48 | config PSP_APOB_DRAM_ADDRESS |
| 49 | hex |
| 50 | default 0x2001000 |
| 51 | help |
| 52 | Location in DRAM where the PSP will copy the AGESA PSP Output |
| 53 | Block. |
| 54 | |
| 55 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 56 | hex |
| 57 | default 0x1600 |
| 58 | help |
| 59 | Increase this value if preram cbmem console is getting truncated |
| 60 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 61 | config C_ENV_BOOTBLOCK_SIZE |
| 62 | hex |
| 63 | default 0x10000 |
| 64 | help |
| 65 | Sets the size of the bootblock stage that should be loaded in DRAM. |
| 66 | This variable controls the DRAM allocation size in linker script |
| 67 | for bootblock stage. |
| 68 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 69 | config ROMSTAGE_ADDR |
| 70 | hex |
| 71 | default 0x2040000 |
| 72 | help |
| 73 | Sets the address in DRAM where romstage should be loaded. |
| 74 | |
| 75 | config ROMSTAGE_SIZE |
| 76 | hex |
| 77 | default 0x80000 |
| 78 | help |
| 79 | Sets the size of DRAM allocation for romstage in linker script. |
| 80 | |
| 81 | config FSP_M_ADDR |
| 82 | hex |
| 83 | default 0x20C0000 |
| 84 | help |
| 85 | Sets the address in DRAM where FSP-M should be loaded. cbfstool |
| 86 | performs relocation of FSP-M to this address. |
| 87 | |
| 88 | config FSP_M_SIZE |
| 89 | hex |
| 90 | default 0x80000 |
| 91 | help |
| 92 | Sets the size of DRAM allocation for FSP-M in linker script. |
| 93 | |
| 94 | config RAMBASE |
| 95 | hex |
| 96 | default 0x10000000 |
| 97 | |
| 98 | config CPU_ADDR_BITS |
| 99 | int |
| 100 | default 48 |
| 101 | |
| 102 | config MMCONF_BASE_ADDRESS |
| 103 | hex |
| 104 | default 0xF8000000 |
| 105 | |
| 106 | config MMCONF_BUS_NUMBER |
| 107 | int |
| 108 | default 64 |
| 109 | |
Felix Held | 8a3d4d5 | 2021-01-13 03:06:21 +0100 | [diff] [blame^] | 110 | config CONSOLE_UART_BASE_ADDRESS |
| 111 | depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART |
| 112 | hex |
| 113 | default 0xfedc9000 if UART_FOR_CONSOLE = 0 |
| 114 | default 0xfedca000 if UART_FOR_CONSOLE = 1 |
| 115 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 116 | endif # SOC_AMD_CEZANNE |