942f11f5665dbc46f01298d08e4430c87018568b
[platform/kernel/u-boot.git] / arch / x86 / cpu / apollolake / Kconfig
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # Copyright 2019 Google LLC
4 #
5
6 config 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
42         imply HAVE_ITSS
43         imply HAVE_P2SB
44         imply CLK
45         imply CMD_CLK
46         imply CLK_INTEL
47         imply ACPI_GPE
48
49 if INTEL_APOLLOLAKE
50
51 config DCACHE_RAM_BASE
52         default 0xfef00000
53
54 config DCACHE_RAM_SIZE
55         default 0xc0000
56
57 config DCACHE_RAM_MRC_VAR_SIZE
58         default 0xb0000
59
60 config CPU_SPECIFIC_OPTIONS
61         def_bool y
62         select SMM_TSEG
63         select X86_RAMTEST
64
65 config SMM_TSEG_SIZE
66         hex
67         default 0x800000
68
69 config MMCONF_BASE_ADDRESS
70         hex
71         default 0xe0000000
72
73 config TPL_SIZE_LIMIT
74         default 0x7800
75
76 config CPU_ADDR_BITS
77         default 39
78
79 config APL_SPI_FLASH_BOOT
80         bool "Support booting with SPI-flash driver instead memory-mapped SPI"
81         select TPL_SPI_FLASH_SUPPORT
82         select TPL_SPI_SUPPORT
83         help
84           This enables SPI and SPI flash in TPL. Without the this only
85           available boot method is to use memory-mapped SPI. Since this is
86           actually fast and produces a TPL which is 7KB smaller, memory-mapped
87           SPI is the default.
88
89 config APL_BOOT_FROM_FAST_SPI_FLASH
90         bool "Boot using SPI flash driver"
91         select APL_SPI_FLASH_BOOT
92         help
93           This option is separate from APL_SPI_FLASH_BOOT since it is useful to
94           be able to compare booting speed with the same build. Enable this to
95           use the SPI-flash driver to load SPL, U-Boot and FSP-M. For technical
96           reasons FSP-S is currently always loaded from memory-mapped SPI. See
97           Apollo Lake's arch_fsp_init_r() for details about that.
98
99 config VBT_ADDR
100         default 0xff3f1000
101
102 endif