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