dm: treewide: Rename ofdata_to_platdata() to of_to_plat()
[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 PCIEX_LENGTH_256MB
17         select PCH_SUPPORT
18         select P2SB
19         select SMP_AP_WORK
20         select INTEL_GMA_SWSMISCI
21         select ACPI_GNVS_EXTERNAL
22         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
46         imply HAVE_ITSS
47         imply HAVE_P2SB
48         imply CLK
49         imply CMD_CLK
50         imply CLK_INTEL
51         imply ACPI_GPE
52         imply INTEL_GMA_ACPI
53
54 if INTEL_APOLLOLAKE
55
56 config DCACHE_RAM_BASE
57         default 0xfef00000
58
59 config DCACHE_RAM_SIZE
60         default 0xc0000
61
62 config DCACHE_RAM_MRC_VAR_SIZE
63         default 0xb0000
64
65 config CPU_SPECIFIC_OPTIONS
66         def_bool y
67         select SMM_TSEG
68         select X86_RAMTEST
69
70 config SMM_TSEG_SIZE
71         hex
72         default 0x800000
73
74 config MMCONF_BASE_ADDRESS
75         hex
76         default 0xe0000000
77
78 config TPL_SIZE_LIMIT
79         default 0x7800
80
81 config CPU_ADDR_BITS
82         default 39
83
84 config 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         select TPL_DM_SPI
89         select TPL_DM_SPI_FLASH
90         help
91           This enables SPI and SPI flash in TPL. Without the this only
92           available boot method is to use memory-mapped SPI. Since this is
93           actually fast and produces a TPL which is 7KB smaller, memory-mapped
94           SPI is the default.
95
96 config APL_BOOT_FROM_FAST_SPI_FLASH
97         bool "Boot using SPI flash driver"
98         select APL_SPI_FLASH_BOOT
99         help
100           This option is separate from APL_SPI_FLASH_BOOT since it is useful to
101           be able to compare booting speed with the same build. Enable this to
102           use the SPI-flash driver to load SPL, U-Boot and FSP-M. For technical
103           reasons FSP-S is currently always loaded from memory-mapped SPI. See
104           Apollo Lake's arch_fsp_init_r() for details about that.
105
106 config VBT_ADDR
107         default 0xff3f1000
108
109 endif