summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/block/fast_spi/Kconfig
blob: 953ed36b105eef990de4f3a04ab1aafd6d4ac2c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
config SOC_INTEL_COMMON_BLOCK_FAST_SPI
	bool
	select SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
	help
	  Intel Processor common FAST_SPI support

config FAST_SPI_DISABLE_WRITE_STATUS
	bool "Disable write status SPI opcode"
	depends on SOC_INTEL_COMMON_BLOCK_FAST_SPI
	default n if CHROMEOS
	default y
	help
	  Disable the write status SPI opcode in Intel Fast SPI block.

config FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW
	bool
	depends on SOC_INTEL_COMMON_BLOCK_FAST_SPI
	# Enable X86_CUSTOM_BOOTMEDIA because the fast SPI controller
	# driver provides a custom boot media device when multiple decode
	# windows are used for the BIOS region.
	select X86_CUSTOM_BOOTMEDIA
	help
	  Fast SPI controller on the platform supports additional
	  window for memory mapping BIOS region (region 1) on the SPI
	  flash beyond the standard limit of 16MiB. Depending upon the
	  size of the SPI flash part used by the mainboard, two decode
	  windows will be enabled:
	    1. Fixed decode window up to a maximum size of 16MiB under
	       4G boundary.
	    2. Extended decode window up to a maximum size provided by
	       the platform to map the rest of the BIOS region.
	  SoC selecting this config is expected to provide the base and
	  maximum size of the extended window in the host address space
	  using configs EXT_BIOS_WIN_BASE and EXT_BIOS_WIN_SIZE.

config EXT_BIOS_WIN_BASE
	hex
	help
	  If an additional window for mapping BIOS region greater than
	  16MiB is supported, then this config is used to provide the
	  base address reserved for the mapping. Since the mapping is
	  done at the top of the window, depending upon the size of the
	  BIOS region, the actual base address configured in the fast
	  SPI controller can be higher at runtime.

config EXT_BIOS_WIN_SIZE
	hex
	help
	  Maximum size of the extended window reserved for mapping BIOS
	  region greater than 16MiB. The actual mapped window might be
	  smaller depending upon the size of the BIOS region.

config FAST_SPI_GENERATE_SSDT
	bool
	default n
	help
	  Select this option if the Fast SPI controller is hidden from the OS.
	  If this switch is selected, an entry in the SSDT will be generated
	  for the controller to report the occupied resource which is not
	  discoverable at OS runtime.