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