Simon Glass | 1fc5419 | 2019-12-08 17:40:17 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Copyright 2019 Google LLC |
| 4 | # |
| 5 | |
| 6 | config INTEL_APOLLOLAKE |
| 7 | bool |
| 8 | select FSP_VERSION2 |
| 9 | select HAVE_FSP |
| 10 | select ARCH_MISC_INIT |
| 11 | select USE_CAR |
| 12 | select INTEL_PMC |
| 13 | select TPL_X86_TSC_TIMER_NATIVE |
| 14 | select SPL_PCH_SUPPORT |
| 15 | select TPL_PCH_SUPPORT |
| 16 | select PCH_SUPPORT |
| 17 | select P2SB |
Simon Glass | c33aa35 | 2020-07-17 08:48:16 -0600 | [diff] [blame^] | 18 | select SMP_AP_WORK |
Simon Glass | 1fc5419 | 2019-12-08 17:40:17 -0700 | [diff] [blame] | 19 | imply ENABLE_MRC_CACHE |
| 20 | imply AHCI_PCI |
| 21 | imply SCSI |
| 22 | imply SCSI_AHCI |
| 23 | imply SPI_FLASH |
| 24 | imply USB |
| 25 | imply USB_EHCI_HCD |
| 26 | imply TPL |
| 27 | imply SPL |
| 28 | imply TPL_X86_16BIT_INIT |
| 29 | imply TPL_OF_PLATDATA |
| 30 | imply ACPI_PMC |
| 31 | imply MMC |
| 32 | imply DM_MMC |
| 33 | imply MMC_PCI |
| 34 | imply MMC_SDHCI |
| 35 | imply CMD_MMC |
| 36 | imply VIDEO_FSP |
| 37 | imply PINCTRL_INTEL |
| 38 | imply PINCTRL_INTEL_APL |
| 39 | imply HAVE_VBT |
| 40 | imply HAVE_X86_FIT |
| 41 | imply INTEL_GPIO |
| 42 | imply SMP |
Wolfgang Wallner | 1d5bf32 | 2020-02-03 14:06:45 +0100 | [diff] [blame] | 43 | imply HAVE_ITSS |
Wolfgang Wallner | 2999846 | 2020-02-04 09:04:56 +0100 | [diff] [blame] | 44 | imply HAVE_P2SB |
Simon Glass | 659252e | 2020-02-06 09:54:54 -0700 | [diff] [blame] | 45 | imply CLK |
| 46 | imply CMD_CLK |
| 47 | imply CLK_INTEL |
Simon Glass | fa78604 | 2020-02-06 09:55:02 -0700 | [diff] [blame] | 48 | imply ACPI_GPE |
Simon Glass | 1fc5419 | 2019-12-08 17:40:17 -0700 | [diff] [blame] | 49 | |
| 50 | if INTEL_APOLLOLAKE |
| 51 | |
| 52 | config DCACHE_RAM_BASE |
| 53 | default 0xfef00000 |
| 54 | |
| 55 | config DCACHE_RAM_SIZE |
| 56 | default 0xc0000 |
| 57 | |
| 58 | config DCACHE_RAM_MRC_VAR_SIZE |
| 59 | default 0xb0000 |
| 60 | |
| 61 | config CPU_SPECIFIC_OPTIONS |
| 62 | def_bool y |
| 63 | select SMM_TSEG |
| 64 | select X86_RAMTEST |
| 65 | |
| 66 | config SMM_TSEG_SIZE |
| 67 | hex |
| 68 | default 0x800000 |
| 69 | |
| 70 | config MMCONF_BASE_ADDRESS |
| 71 | hex |
| 72 | default 0xe0000000 |
| 73 | |
| 74 | config TPL_SIZE_LIMIT |
| 75 | default 0x7800 |
| 76 | |
| 77 | config CPU_ADDR_BITS |
| 78 | default 39 |
| 79 | |
| 80 | config APL_SPI_FLASH_BOOT |
| 81 | bool "Support booting with SPI-flash driver instead memory-mapped SPI" |
| 82 | select TPL_SPI_FLASH_SUPPORT |
| 83 | select TPL_SPI_SUPPORT |
| 84 | help |
| 85 | This enables SPI and SPI flash in TPL. Without the this only |
| 86 | available boot method is to use memory-mapped SPI. Since this is |
| 87 | actually fast and produces a TPL which is 7KB smaller, memory-mapped |
| 88 | SPI is the default. |
| 89 | |
| 90 | config APL_BOOT_FROM_FAST_SPI_FLASH |
| 91 | bool "Boot using SPI flash driver" |
| 92 | select APL_SPI_FLASH_BOOT |
| 93 | help |
| 94 | This option is separate from APL_SPI_FLASH_BOOT since it is useful to |
| 95 | be able to compare booting speed with the same build. Enable this to |
| 96 | use the SPI-flash driver to load SPL, U-Boot and FSP-M. For technical |
| 97 | reasons FSP-S is currently always loaded from memory-mapped SPI. See |
| 98 | Apollo Lake's arch_fsp_init_r() for details about that. |
| 99 | |
| 100 | config VBT_ADDR |
| 101 | default 0xff3f1000 |
| 102 | |
| 103 | endif |