blob: f5dbd6cbd349d3c68d24e48005d263f8cf874901 [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
Simon Glass97bafc92020-09-22 12:44:51 -060016 select PCIEX_LENGTH_256MB
Simon Glass1fc54192019-12-08 17:40:17 -070017 select PCH_SUPPORT
18 select P2SB
Simon Glassc33aa352020-07-17 08:48:16 -060019 select SMP_AP_WORK
Simon Glassb98b91b2020-09-22 12:45:15 -060020 select INTEL_GMA_SWSMISCI
Simon Glass55109f12020-09-22 12:44:53 -060021 select ACPI_GNVS_EXTERNAL
Simon Glassc238eee2020-12-22 19:30:25 -070022 select TPL_OF_PLATDATA_PARENT
Simon Glass1fc54192019-12-08 17:40:17 -070023 imply ENABLE_MRC_CACHE
24 imply AHCI_PCI
25 imply SCSI
26 imply SCSI_AHCI
27 imply SPI_FLASH
28 imply USB
29 imply USB_EHCI_HCD
30 imply TPL
31 imply SPL
32 imply TPL_X86_16BIT_INIT
33 imply TPL_OF_PLATDATA
34 imply ACPI_PMC
35 imply MMC
36 imply DM_MMC
37 imply MMC_PCI
38 imply MMC_SDHCI
39 imply CMD_MMC
40 imply VIDEO_FSP
41 imply PINCTRL_INTEL
42 imply PINCTRL_INTEL_APL
43 imply HAVE_VBT
44 imply HAVE_X86_FIT
45 imply INTEL_GPIO
46 imply SMP
Wolfgang Wallner1d5bf322020-02-03 14:06:45 +010047 imply HAVE_ITSS
Wolfgang Wallner29998462020-02-04 09:04:56 +010048 imply HAVE_P2SB
Simon Glass659252e2020-02-06 09:54:54 -070049 imply CLK
50 imply CMD_CLK
51 imply CLK_INTEL
Simon Glassfa786042020-02-06 09:55:02 -070052 imply ACPI_GPE
Simon Glassc9cc37d2020-09-22 12:45:03 -060053 imply INTEL_GMA_ACPI
Simon Glass1fc54192019-12-08 17:40:17 -070054
55if INTEL_APOLLOLAKE
56
57config DCACHE_RAM_BASE
58 default 0xfef00000
59
60config DCACHE_RAM_SIZE
61 default 0xc0000
62
63config DCACHE_RAM_MRC_VAR_SIZE
64 default 0xb0000
65
66config CPU_SPECIFIC_OPTIONS
67 def_bool y
68 select SMM_TSEG
69 select X86_RAMTEST
70
71config SMM_TSEG_SIZE
72 hex
73 default 0x800000
74
75config MMCONF_BASE_ADDRESS
76 hex
77 default 0xe0000000
78
79config TPL_SIZE_LIMIT
80 default 0x7800
81
82config CPU_ADDR_BITS
83 default 39
84
85config APL_SPI_FLASH_BOOT
86 bool "Support booting with SPI-flash driver instead memory-mapped SPI"
87 select TPL_SPI_FLASH_SUPPORT
88 select TPL_SPI_SUPPORT
Simon Glassd07f31a2020-10-03 11:31:38 -060089 select TPL_DM_SPI
90 select TPL_DM_SPI_FLASH
Simon Glass1fc54192019-12-08 17:40:17 -070091 help
92 This enables SPI and SPI flash in TPL. Without the this only
93 available boot method is to use memory-mapped SPI. Since this is
94 actually fast and produces a TPL which is 7KB smaller, memory-mapped
95 SPI is the default.
96
97config APL_BOOT_FROM_FAST_SPI_FLASH
98 bool "Boot using SPI flash driver"
99 select APL_SPI_FLASH_BOOT
100 help
101 This option is separate from APL_SPI_FLASH_BOOT since it is useful to
102 be able to compare booting speed with the same build. Enable this to
103 use the SPI-flash driver to load SPL, U-Boot and FSP-M. For technical
104 reasons FSP-S is currently always loaded from memory-mapped SPI. See
105 Apollo Lake's arch_fsp_init_r() for details about that.
106
107config VBT_ADDR
108 default 0xff3f1000
109
110endif