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 |
| 12 | select ARCH_BOOTBLOCK_X86_32 |
| 13 | select ARCH_VERSTAGE_X86_32 |
| 14 | select ARCH_ROMSTAGE_X86_32 |
| 15 | select ARCH_RAMSTAGE_X86_32 |
| 16 | select RESET_VECTOR_IN_RAM |
| 17 | select SOC_AMD_COMMON |
Felix Held | 64de2c1 | 2020-12-05 20:53:59 +0100 | [diff] [blame] | 18 | select SOC_AMD_COMMON_BLOCK_ACPIMMIO |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 19 | select SOC_AMD_COMMON_BLOCK_NONCAR |
| 20 | select SOC_AMD_COMMON_BLOCK_PCI_MMCONF |
Felix Held | 65783fb | 2020-12-04 17:38:46 +0100 | [diff] [blame] | 21 | select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 22 | |
| 23 | config EARLY_RESERVED_DRAM_BASE |
| 24 | hex |
| 25 | default 0x2000000 |
| 26 | help |
| 27 | This variable defines the base address of the DRAM which is reserved |
| 28 | for usage by coreboot in early stages (i.e. before ramstage is up). |
| 29 | This memory gets reserved in BIOS tables to ensure that the OS does |
| 30 | not use it, thus preventing corruption of OS memory in case of S3 |
| 31 | resume. |
| 32 | |
| 33 | config EARLYRAM_BSP_STACK_SIZE |
| 34 | hex |
| 35 | default 0x1000 |
| 36 | |
| 37 | config PSP_APOB_DRAM_ADDRESS |
| 38 | hex |
| 39 | default 0x2001000 |
| 40 | help |
| 41 | Location in DRAM where the PSP will copy the AGESA PSP Output |
| 42 | Block. |
| 43 | |
| 44 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 45 | hex |
| 46 | default 0x1600 |
| 47 | help |
| 48 | Increase this value if preram cbmem console is getting truncated |
| 49 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 50 | config C_ENV_BOOTBLOCK_SIZE |
| 51 | hex |
| 52 | default 0x10000 |
| 53 | help |
| 54 | Sets the size of the bootblock stage that should be loaded in DRAM. |
| 55 | This variable controls the DRAM allocation size in linker script |
| 56 | for bootblock stage. |
| 57 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 58 | config ROMSTAGE_ADDR |
| 59 | hex |
| 60 | default 0x2040000 |
| 61 | help |
| 62 | Sets the address in DRAM where romstage should be loaded. |
| 63 | |
| 64 | config ROMSTAGE_SIZE |
| 65 | hex |
| 66 | default 0x80000 |
| 67 | help |
| 68 | Sets the size of DRAM allocation for romstage in linker script. |
| 69 | |
| 70 | config FSP_M_ADDR |
| 71 | hex |
| 72 | default 0x20C0000 |
| 73 | help |
| 74 | Sets the address in DRAM where FSP-M should be loaded. cbfstool |
| 75 | performs relocation of FSP-M to this address. |
| 76 | |
| 77 | config FSP_M_SIZE |
| 78 | hex |
| 79 | default 0x80000 |
| 80 | help |
| 81 | Sets the size of DRAM allocation for FSP-M in linker script. |
| 82 | |
| 83 | config RAMBASE |
| 84 | hex |
| 85 | default 0x10000000 |
| 86 | |
| 87 | config CPU_ADDR_BITS |
| 88 | int |
| 89 | default 48 |
| 90 | |
| 91 | config MMCONF_BASE_ADDRESS |
| 92 | hex |
| 93 | default 0xF8000000 |
| 94 | |
| 95 | config MMCONF_BUS_NUMBER |
| 96 | int |
| 97 | default 64 |
| 98 | |
| 99 | endif # SOC_AMD_CEZANNE |