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