blob: 030fa6cd1291958d7c4fb44bd59c4c54acdf73dc [file] [log] [blame]
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -07001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2012 The Chromium OS Authors.
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; version 2 of the License.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -070015
Aaron Durbin3326f152016-08-12 15:50:16 -050016config COMMON_CBFS_SPI_WRAPPER
17 bool
18 default n
19 depends on !ARCH_X86
20 depends on BOOT_DEVICE_SPI_FLASH
21 help
22 Use common wrapper to interface CBFS to SPI bootrom.
23
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -070024config SPI_FLASH
25 bool
Aaron Durbin4a36c4e2016-08-11 11:02:26 -050026 default y if BOOT_DEVICE_SPI_FLASH
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -070027 default n
28 help
29 Select this option if your chipset driver needs to store certain
30 data in the SPI flash.
31
Kyösti Mälkki88e518f2014-04-29 07:11:39 +030032if SPI_FLASH
33
Aaron Durbin08e842c2016-08-11 14:40:09 -050034# Keep at 0 because lots of boards assume this default.
35config BOOT_DEVICE_SPI_FLASH_BUS
36 int
37 default 0
38 help
39 Which SPI bus the boot device is connected to.
40
Aaron Durbina91901c2016-08-11 09:42:27 -050041config SPI_FLASH_INCLUDE_ALL_DRIVERS
42 bool
43 default n if COMMON_CBFS_SPI_WRAPPER
44 default y
45
David Hendricksf101bbe2014-03-21 19:13:34 -070046config SPI_ATOMIC_SEQUENCING
47 bool
48 default y if ARCH_X86
49 default n if !ARCH_X86
50 help
51 Select this option if the SPI controller uses "atomic sequencing."
52 Atomic sequencing is when the sequence of commands is pre-programmed
53 in the SPI controller. Hardware manages the transaction instead of
54 software. This is common on x86 platforms.
55
Duncan Laurie181bbdd2012-06-23 16:53:57 -070056config SPI_FLASH_SMM
57 bool "SPI flash driver support in SMM"
58 default n
Kyösti Mälkki88e518f2014-04-29 07:11:39 +030059 depends on HAVE_SMI_HANDLER
Duncan Laurie181bbdd2012-06-23 16:53:57 -070060 help
61 Select this option if you want SPI flash support in SMM.
62
Kyösti Mälkkiab605102014-06-30 07:49:55 +030063config SPI_FLASH_NO_FAST_READ
64 bool "Disable Fast Read command"
65 default n
66 help
67 Select this option if your setup requires to avoid "fast read"s
68 from the SPI flash parts.
69
70config SPI_FLASH_ADESTO
71 bool
Aaron Durbina91901c2016-08-11 09:42:27 -050072 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Kyösti Mälkkiab605102014-06-30 07:49:55 +030073 help
74 Select this option if your chipset driver needs to store certain
75 data in the SPI flash and your SPI flash is made by Adesto Technologies.
76
Idwer Vollering73a10182014-02-16 00:32:13 +000077config SPI_FLASH_AMIC
78 bool
Aaron Durbina91901c2016-08-11 09:42:27 -050079 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Idwer Vollering73a10182014-02-16 00:32:13 +000080 help
81 Select this option if your chipset driver needs to store certain
82 data in the SPI flash and your SPI flash is made by AMIC.
83
Kyösti Mälkki96d92762014-11-11 15:04:38 +020084config SPI_FLASH_ATMEL
85 bool
Aaron Durbina91901c2016-08-11 09:42:27 -050086 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Kyösti Mälkki96d92762014-11-11 15:04:38 +020087 help
88 Select this option if your chipset driver needs to store certain
89 data in the SPI flash and your SPI flash is made by Atmel.
90
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -070091config SPI_FLASH_EON
92 bool
Aaron Durbina91901c2016-08-11 09:42:27 -050093 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -070094 help
95 Select this option if your chipset driver needs to store certain
96 data in the SPI flash and your SPI flash is made by EON.
97
Kyösti Mälkkiab605102014-06-30 07:49:55 +030098config SPI_FLASH_GIGADEVICE
99 bool
Aaron Durbina91901c2016-08-11 09:42:27 -0500100 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Kyösti Mälkkiab605102014-06-30 07:49:55 +0300101 help
102 Select this option if your chipset driver needs to store certain
103 data in the SPI flash and your SPI flash is made by Gigadevice.
104
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -0700105config SPI_FLASH_MACRONIX
106 bool
Aaron Durbina91901c2016-08-11 09:42:27 -0500107 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -0700108 help
109 Select this option if your chipset driver needs to store certain
110 data in the SPI flash and your SPI flash is made by Macronix.
111
112config SPI_FLASH_SPANSION
113 bool
Aaron Durbina91901c2016-08-11 09:42:27 -0500114 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -0700115 help
116 Select this option if your chipset driver needs to store certain
117 data in the SPI flash and your SPI flash is made by Spansion.
118
119config SPI_FLASH_SST
120 bool
Aaron Durbina91901c2016-08-11 09:42:27 -0500121 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -0700122 help
123 Select this option if your chipset driver needs to store certain
124 data in the SPI flash and your SPI flash is made by SST.
125
126config SPI_FLASH_STMICRO
127 bool
Aaron Durbina91901c2016-08-11 09:42:27 -0500128 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -0700129 help
130 Select this option if your chipset driver needs to store certain
131 data in the SPI flash and your SPI flash is made by ST MICRO.
132
133config SPI_FLASH_WINBOND
134 bool
Aaron Durbina91901c2016-08-11 09:42:27 -0500135 default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -0700136 help
137 Select this option if your chipset driver needs to store certain
138 data in the SPI flash and your SPI flash is made by Winbond.
139
David Hendricks1101a712013-11-22 18:41:38 -0800140config SPI_FLASH_FAST_READ_DUAL_OUTPUT_3B
141 bool
142 default n
143 depends on SPI_FLASH
144 help
145 Select this option if your SPI flash supports the fast read dual-
146 output command (opcode 0x3b) where the opcode and address are sent
147 to the chip on MOSI and data is received on both MOSI and MISO.
148
Kyösti Mälkki88e518f2014-04-29 07:11:39 +0300149endif # SPI_FLASH
Martin Roth3a543182015-09-28 15:27:24 -0600150
151config HAVE_SPI_CONSOLE_SUPPORT
152 def_bool n