Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 1 | ## |
| 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 Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 15 | |
Aaron Durbin | 3326f15 | 2016-08-12 15:50:16 -0500 | [diff] [blame] | 16 | config COMMON_CBFS_SPI_WRAPPER |
| 17 | bool |
| 18 | default n |
| 19 | depends on !ARCH_X86 |
| 20 | depends on BOOT_DEVICE_SPI_FLASH |
Aaron Durbin | e8e118d | 2016-08-12 15:00:10 -0500 | [diff] [blame^] | 21 | select BOOT_DEVICE_SUPPORTS_WRITES |
Aaron Durbin | 3326f15 | 2016-08-12 15:50:16 -0500 | [diff] [blame] | 22 | help |
| 23 | Use common wrapper to interface CBFS to SPI bootrom. |
| 24 | |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 25 | config SPI_FLASH |
| 26 | bool |
Aaron Durbin | e8e118d | 2016-08-12 15:00:10 -0500 | [diff] [blame^] | 27 | default y if BOOT_DEVICE_SPI_FLASH && BOOT_DEVICE_SUPPORTS_WRITES |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 28 | default n |
| 29 | help |
| 30 | Select this option if your chipset driver needs to store certain |
| 31 | data in the SPI flash. |
| 32 | |
Kyösti Mälkki | 88e518f | 2014-04-29 07:11:39 +0300 | [diff] [blame] | 33 | if SPI_FLASH |
| 34 | |
Aaron Durbin | 08e842c | 2016-08-11 14:40:09 -0500 | [diff] [blame] | 35 | # Keep at 0 because lots of boards assume this default. |
| 36 | config BOOT_DEVICE_SPI_FLASH_BUS |
| 37 | int |
| 38 | default 0 |
| 39 | help |
| 40 | Which SPI bus the boot device is connected to. |
| 41 | |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 42 | config SPI_FLASH_INCLUDE_ALL_DRIVERS |
| 43 | bool |
| 44 | default n if COMMON_CBFS_SPI_WRAPPER |
| 45 | default y |
| 46 | |
David Hendricks | f101bbe | 2014-03-21 19:13:34 -0700 | [diff] [blame] | 47 | config SPI_ATOMIC_SEQUENCING |
| 48 | bool |
| 49 | default y if ARCH_X86 |
| 50 | default n if !ARCH_X86 |
| 51 | help |
| 52 | Select this option if the SPI controller uses "atomic sequencing." |
| 53 | Atomic sequencing is when the sequence of commands is pre-programmed |
| 54 | in the SPI controller. Hardware manages the transaction instead of |
| 55 | software. This is common on x86 platforms. |
| 56 | |
Duncan Laurie | 181bbdd | 2012-06-23 16:53:57 -0700 | [diff] [blame] | 57 | config SPI_FLASH_SMM |
| 58 | bool "SPI flash driver support in SMM" |
| 59 | default n |
Kyösti Mälkki | 88e518f | 2014-04-29 07:11:39 +0300 | [diff] [blame] | 60 | depends on HAVE_SMI_HANDLER |
Duncan Laurie | 181bbdd | 2012-06-23 16:53:57 -0700 | [diff] [blame] | 61 | help |
| 62 | Select this option if you want SPI flash support in SMM. |
| 63 | |
Kyösti Mälkki | ab60510 | 2014-06-30 07:49:55 +0300 | [diff] [blame] | 64 | config SPI_FLASH_NO_FAST_READ |
| 65 | bool "Disable Fast Read command" |
| 66 | default n |
| 67 | help |
| 68 | Select this option if your setup requires to avoid "fast read"s |
| 69 | from the SPI flash parts. |
| 70 | |
| 71 | config SPI_FLASH_ADESTO |
| 72 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 73 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Kyösti Mälkki | ab60510 | 2014-06-30 07:49:55 +0300 | [diff] [blame] | 74 | help |
| 75 | Select this option if your chipset driver needs to store certain |
| 76 | data in the SPI flash and your SPI flash is made by Adesto Technologies. |
| 77 | |
Idwer Vollering | 73a1018 | 2014-02-16 00:32:13 +0000 | [diff] [blame] | 78 | config SPI_FLASH_AMIC |
| 79 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 80 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Idwer Vollering | 73a1018 | 2014-02-16 00:32:13 +0000 | [diff] [blame] | 81 | help |
| 82 | Select this option if your chipset driver needs to store certain |
| 83 | data in the SPI flash and your SPI flash is made by AMIC. |
| 84 | |
Kyösti Mälkki | 96d9276 | 2014-11-11 15:04:38 +0200 | [diff] [blame] | 85 | config SPI_FLASH_ATMEL |
| 86 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 87 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Kyösti Mälkki | 96d9276 | 2014-11-11 15:04:38 +0200 | [diff] [blame] | 88 | help |
| 89 | Select this option if your chipset driver needs to store certain |
| 90 | data in the SPI flash and your SPI flash is made by Atmel. |
| 91 | |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 92 | config SPI_FLASH_EON |
| 93 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 94 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 95 | help |
| 96 | Select this option if your chipset driver needs to store certain |
| 97 | data in the SPI flash and your SPI flash is made by EON. |
| 98 | |
Kyösti Mälkki | ab60510 | 2014-06-30 07:49:55 +0300 | [diff] [blame] | 99 | config SPI_FLASH_GIGADEVICE |
| 100 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 101 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Kyösti Mälkki | ab60510 | 2014-06-30 07:49:55 +0300 | [diff] [blame] | 102 | help |
| 103 | Select this option if your chipset driver needs to store certain |
| 104 | data in the SPI flash and your SPI flash is made by Gigadevice. |
| 105 | |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 106 | config SPI_FLASH_MACRONIX |
| 107 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 108 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 109 | help |
| 110 | Select this option if your chipset driver needs to store certain |
| 111 | data in the SPI flash and your SPI flash is made by Macronix. |
| 112 | |
| 113 | config SPI_FLASH_SPANSION |
| 114 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 115 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 116 | help |
| 117 | Select this option if your chipset driver needs to store certain |
| 118 | data in the SPI flash and your SPI flash is made by Spansion. |
| 119 | |
| 120 | config SPI_FLASH_SST |
| 121 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 122 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 123 | help |
| 124 | Select this option if your chipset driver needs to store certain |
| 125 | data in the SPI flash and your SPI flash is made by SST. |
| 126 | |
| 127 | config SPI_FLASH_STMICRO |
| 128 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 129 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 130 | help |
| 131 | Select this option if your chipset driver needs to store certain |
| 132 | data in the SPI flash and your SPI flash is made by ST MICRO. |
| 133 | |
| 134 | config SPI_FLASH_WINBOND |
| 135 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 136 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 137 | help |
| 138 | Select this option if your chipset driver needs to store certain |
| 139 | data in the SPI flash and your SPI flash is made by Winbond. |
| 140 | |
David Hendricks | 1101a71 | 2013-11-22 18:41:38 -0800 | [diff] [blame] | 141 | config SPI_FLASH_FAST_READ_DUAL_OUTPUT_3B |
| 142 | bool |
| 143 | default n |
| 144 | depends on SPI_FLASH |
| 145 | help |
| 146 | Select this option if your SPI flash supports the fast read dual- |
| 147 | output command (opcode 0x3b) where the opcode and address are sent |
| 148 | to the chip on MOSI and data is received on both MOSI and MISO. |
| 149 | |
Kyösti Mälkki | 88e518f | 2014-04-29 07:11:39 +0300 | [diff] [blame] | 150 | endif # SPI_FLASH |
Martin Roth | 3a54318 | 2015-09-28 15:27:24 -0600 | [diff] [blame] | 151 | |
| 152 | config HAVE_SPI_CONSOLE_SUPPORT |
| 153 | def_bool n |