blob: a760e0ac68ea27aa6813a52580634095e1ceab49 [file] [log] [blame]
Simon Glassfcc2ce92019-12-08 17:40:17 -07001# SPDX-License-Identifier: GPL-2.0
2#
3# Copyright 2019 Google LLC
4#
5
6config 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
18 imply ENABLE_MRC_CACHE
19 imply AHCI_PCI
20 imply SCSI
21 imply SCSI_AHCI
22 imply SPI_FLASH
23 imply USB
24 imply USB_EHCI_HCD
25 imply TPL
26 imply SPL
27 imply TPL_X86_16BIT_INIT
28 imply TPL_OF_PLATDATA
29 imply ACPI_PMC
30 imply MMC
31 imply DM_MMC
32 imply MMC_PCI
33 imply MMC_SDHCI
34 imply CMD_MMC
35 imply VIDEO_FSP
36 imply PINCTRL_INTEL
37 imply PINCTRL_INTEL_APL
38 imply HAVE_VBT
39 imply HAVE_X86_FIT
40 imply INTEL_GPIO
41 imply SMP
Wolfgang Wallnerb5460dd2020-02-03 14:06:45 +010042 imply HAVE_ITSS
Simon Glassfcc2ce92019-12-08 17:40:17 -070043
44if INTEL_APOLLOLAKE
45
46config DCACHE_RAM_BASE
47 default 0xfef00000
48
49config DCACHE_RAM_SIZE
50 default 0xc0000
51
52config DCACHE_RAM_MRC_VAR_SIZE
53 default 0xb0000
54
55config CPU_SPECIFIC_OPTIONS
56 def_bool y
57 select SMM_TSEG
58 select X86_RAMTEST
59
60config SMM_TSEG_SIZE
61 hex
62 default 0x800000
63
64config MMCONF_BASE_ADDRESS
65 hex
66 default 0xe0000000
67
68config TPL_SIZE_LIMIT
69 default 0x7800
70
71config CPU_ADDR_BITS
72 default 39
73
74config APL_SPI_FLASH_BOOT
75 bool "Support booting with SPI-flash driver instead memory-mapped SPI"
76 select TPL_SPI_FLASH_SUPPORT
77 select TPL_SPI_SUPPORT
78 help
79 This enables SPI and SPI flash in TPL. Without the this only
80 available boot method is to use memory-mapped SPI. Since this is
81 actually fast and produces a TPL which is 7KB smaller, memory-mapped
82 SPI is the default.
83
84config APL_BOOT_FROM_FAST_SPI_FLASH
85 bool "Boot using SPI flash driver"
86 select APL_SPI_FLASH_BOOT
87 help
88 This option is separate from APL_SPI_FLASH_BOOT since it is useful to
89 be able to compare booting speed with the same build. Enable this to
90 use the SPI-flash driver to load SPL, U-Boot and FSP-M. For technical
91 reasons FSP-S is currently always loaded from memory-mapped SPI. See
92 Apollo Lake's arch_fsp_init_r() for details about that.
93
94config VBT_ADDR
95 default 0xff3f1000
96
97endif