Debian Codegraph @

src/soc/amd/common/block/spi/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 config SOC_AMD_COMMON_BLOCK_SPI
4 bool
5 help
6 Select this option to add FCH SPI controller functions to the build.
7 This overwrites the structure spi_flash_ops to use FCH SPI code
8 instead of individual SPI specific code.
9
10 config SOC_AMD_COMMON_BLOCK_SPI_DEBUG
11 bool "Enable SPI debugging"
12
13 config SOC_AMD_COMMON_BLOCK_SPI_4DW_BURST
14 bool
15 depends on !SOC_AMD_STONEYRIDGE
16 help
17 Select this option to keep the 4 DWORD burst support enabled.
18
19 config SOC_AMD_COMMON_BLOCK_SPI_MMAP_USE_ROM3
20 bool
21 default y if ROM_SIZE > 0x01000000
22 depends on !SOC_AMD_PICASSO && !SOC_AMD_STONEYRIDGE
23 depends on !SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
24 depends on USE_X86_64_SUPPORT
25 # Enable X86_CUSTOM_BOOTMEDIA because the fast SPI controller
26 # driver provides a custom boot media device when multiple decode
27 # windows are used for the BIOS region.
28 select X86_CUSTOM_BOOTMEDIA
29 help
30 AMD specific SPI flash access. The lower 16MiB of the SPI flash are
31 memory mapped on the ROM2 window and the upper SPI flash is mapped using
32 the ROM3 window in high MMIO. The ROM3 window maps up to 64MiB of the
33 SPI flash. The default address of ROM3 is below 1024GiB address boundary
34 and thus can only be used in x86_64 mode.
35
36 config SOC_AMD_COMMON_BLOCK_SPI_MMAP
37 def_bool y
38 select X86_CUSTOM_BOOTMEDIA
39 depends on SOC_AMD_COMMON_BLOCK_SPI
40 depends on !SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
41 depends on !SOC_AMD_COMMON_BLOCK_SPI_MMAP_USE_ROM3
42 help
43 This option is required when CONFIG_ROM_SIZE is greater than 16 MiB.
44 This flash driver still only mmaps 16 MiB of the flash (depending
45 on SPI straps either the upper or lower part, by default the lower).
46 Developers must take care to place all x86 accessible firmware
47 components in the mmap area.
48
49 config EFS_SPI_READ_MODE
50 int
51 range 0 7
52 default 0 if EM100
53 default 2
54 help
55 SPI read mode to be programmed by the PSP.
56 The numbers in the options below indicate how many wires
57 are utilized for command, address and data. For instance 1-1-2
58 means 1 command, 1 address and 2 data wires.
59 0: Normal Read (up to 33M)
60 1: Reserved
61 2: Dual IO (1-1-2)
62 3: Quad IO (1-1-4)
63 4: Dual IO (1-2-2)
64 5: Quad IO (1-4-4)
65 6: Normal Read (up to 66M)
66 7: Fast Read
67
68 config EFS_SPI_SPEED
69 int
70 range 0 5
71 default 3 if EM100
72 default 1
73 help
74 SPI Fast Speed to be programmed by the PSP.
75 0: 66.66Mhz
76 1: 33.33MHz
77 2: 22.22MHz
78 3: 16.66MHz
79 4: 100MHz
80 5: 800KHz
81
82 config EFS_SPI_MICRON_FLAG
83 int
84 range 0 2
85 default 0
86 help
87 For Family 17h Model 00h and later SoC the PSP must be aware if a Micron
88 part is present in EFS. Automatic detection (option 2) is available
89 for Family 17h Model 30h-3Fh but is unsupported otherwise.
90 0: Board does not use Micron parts
91 1: Board always uses Micron parts
92 2: Micron parts are optional
93
94 config NORMAL_READ_SPI_SPEED
95 int
96 range 0 5
97 default 3 if EM100
98 default 1
99 help
100 SPI Normal Speed to be programmed by coreboot.
101 0: 66.66Mhz
102 1: 33.33MHz
103 2: 22.22MHz
104 3: 16.66MHz
105 4: 100MHz
106 5: 800KHz
107
108 config ALT_SPI_SPEED
109 int
110 range 0 5
111 default 3 if EM100
112 default 1
113 help
114 SPI ALT Speed to be programmed by coreboot.
115 0: 66.66Mhz
116 1: 33.33MHz
117 2: 22.22MHz
118 3: 16.66MHz
119 4: 100MHz
120 5: 800KHz
121
122 config TPM_SPI_SPEED
123 int
124 range 0 5
125 default 3 if EM100
126 default 1
127 help
128 SPI TPM Speed to be programmed by coreboot.
129 0: 66.66Mhz
130 1: 33.33MHz
131 2: 22.22MHz
132 3: 16.66MHz
133 4: 100MHz
134 5: 800KHz