blob: 145b8cbdf5b947512f770633729c4f52b165612a [file] [log] [blame]
Simon Glass1fc54192019-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 Wallner1d5bf322020-02-03 14:06:45 +010042 imply HAVE_ITSS
Wolfgang Wallner29998462020-02-04 09:04:56 +010043 imply HAVE_P2SB
Simon Glass1fc54192019-12-08 17:40:17 -070044
45if INTEL_APOLLOLAKE
46
47config DCACHE_RAM_BASE
48 default 0xfef00000
49
50config DCACHE_RAM_SIZE
51 default 0xc0000
52
53config DCACHE_RAM_MRC_VAR_SIZE
54 default 0xb0000
55
56config CPU_SPECIFIC_OPTIONS
57 def_bool y
58 select SMM_TSEG
59 select X86_RAMTEST
60
61config SMM_TSEG_SIZE
62 hex
63 default 0x800000
64
65config MMCONF_BASE_ADDRESS
66 hex
67 default 0xe0000000
68
69config TPL_SIZE_LIMIT
70 default 0x7800
71
72config CPU_ADDR_BITS
73 default 39
74
75config APL_SPI_FLASH_BOOT
76 bool "Support booting with SPI-flash driver instead memory-mapped SPI"
77 select TPL_SPI_FLASH_SUPPORT
78 select TPL_SPI_SUPPORT
79 help
80 This enables SPI and SPI flash in TPL. Without the this only
81 available boot method is to use memory-mapped SPI. Since this is
82 actually fast and produces a TPL which is 7KB smaller, memory-mapped
83 SPI is the default.
84
85config APL_BOOT_FROM_FAST_SPI_FLASH
86 bool "Boot using SPI flash driver"
87 select APL_SPI_FLASH_BOOT
88 help
89 This option is separate from APL_SPI_FLASH_BOOT since it is useful to
90 be able to compare booting speed with the same build. Enable this to
91 use the SPI-flash driver to load SPL, U-Boot and FSP-M. For technical
92 reasons FSP-S is currently always loaded from memory-mapped SPI. See
93 Apollo Lake's arch_fsp_init_r() for details about that.
94
95config VBT_ADDR
96 default 0xff3f1000
97
98endif