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 |
| 20 | select NO_MONOTONIC_TIMER # TODO: replace |
| 21 | select UNKNOWN_TSC_RATE # TODO: replace |
| 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 | |
| 50 | config BOOTBLOCK_ADDR |
| 51 | hex |
| 52 | default 0x2030000 |
| 53 | help |
| 54 | Sets the address in DRAM where bootblock should be loaded. |
| 55 | |
| 56 | config C_ENV_BOOTBLOCK_SIZE |
| 57 | hex |
| 58 | default 0x10000 |
| 59 | help |
| 60 | Sets the size of the bootblock stage that should be loaded in DRAM. |
| 61 | This variable controls the DRAM allocation size in linker script |
| 62 | for bootblock stage. |
| 63 | |
| 64 | config X86_RESET_VECTOR |
| 65 | hex |
| 66 | depends on ARCH_X86 |
| 67 | default 0x203fff0 |
| 68 | help |
| 69 | Sets the reset vector within bootblock where x86 starts execution. |
| 70 | Reset vector is supposed to live at offset -0x10 from end of |
| 71 | bootblock i.e. BOOTBLOCK_ADDR + C_ENV_BOOTBLOCK_SIZE - 0x10. |
| 72 | |
| 73 | config ROMSTAGE_ADDR |
| 74 | hex |
| 75 | default 0x2040000 |
| 76 | help |
| 77 | Sets the address in DRAM where romstage should be loaded. |
| 78 | |
| 79 | config ROMSTAGE_SIZE |
| 80 | hex |
| 81 | default 0x80000 |
| 82 | help |
| 83 | Sets the size of DRAM allocation for romstage in linker script. |
| 84 | |
| 85 | config FSP_M_ADDR |
| 86 | hex |
| 87 | default 0x20C0000 |
| 88 | help |
| 89 | Sets the address in DRAM where FSP-M should be loaded. cbfstool |
| 90 | performs relocation of FSP-M to this address. |
| 91 | |
| 92 | config FSP_M_SIZE |
| 93 | hex |
| 94 | default 0x80000 |
| 95 | help |
| 96 | Sets the size of DRAM allocation for FSP-M in linker script. |
| 97 | |
| 98 | config RAMBASE |
| 99 | hex |
| 100 | default 0x10000000 |
| 101 | |
| 102 | config CPU_ADDR_BITS |
| 103 | int |
| 104 | default 48 |
| 105 | |
| 106 | config MMCONF_BASE_ADDRESS |
| 107 | hex |
| 108 | default 0xF8000000 |
| 109 | |
| 110 | config MMCONF_BUS_NUMBER |
| 111 | int |
| 112 | default 64 |
| 113 | |
| 114 | endif # SOC_AMD_CEZANNE |