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