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 |
| 21 | help |
| 22 | Use common wrapper to interface CBFS to SPI bootrom. |
| 23 | |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 24 | config SPI_FLASH |
| 25 | bool |
Aaron Durbin | 4a36c4e | 2016-08-11 11:02:26 -0500 | [diff] [blame] | 26 | default y if BOOT_DEVICE_SPI_FLASH |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 27 | 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älkki | 88e518f | 2014-04-29 07:11:39 +0300 | [diff] [blame] | 32 | if SPI_FLASH |
| 33 | |
Aaron Durbin | 08e842c | 2016-08-11 14:40:09 -0500 | [diff] [blame] | 34 | # Keep at 0 because lots of boards assume this default. |
| 35 | config BOOT_DEVICE_SPI_FLASH_BUS |
| 36 | int |
| 37 | default 0 |
| 38 | help |
| 39 | Which SPI bus the boot device is connected to. |
| 40 | |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 41 | config SPI_FLASH_INCLUDE_ALL_DRIVERS |
| 42 | bool |
| 43 | default n if COMMON_CBFS_SPI_WRAPPER |
| 44 | default y |
| 45 | |
David Hendricks | f101bbe | 2014-03-21 19:13:34 -0700 | [diff] [blame] | 46 | config 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 Laurie | 181bbdd | 2012-06-23 16:53:57 -0700 | [diff] [blame] | 56 | config SPI_FLASH_SMM |
| 57 | bool "SPI flash driver support in SMM" |
| 58 | default n |
Kyösti Mälkki | 88e518f | 2014-04-29 07:11:39 +0300 | [diff] [blame] | 59 | depends on HAVE_SMI_HANDLER |
Duncan Laurie | 181bbdd | 2012-06-23 16:53:57 -0700 | [diff] [blame] | 60 | help |
| 61 | Select this option if you want SPI flash support in SMM. |
| 62 | |
Kyösti Mälkki | ab60510 | 2014-06-30 07:49:55 +0300 | [diff] [blame] | 63 | config 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 | |
| 70 | config SPI_FLASH_ADESTO |
| 71 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 72 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Kyösti Mälkki | ab60510 | 2014-06-30 07:49:55 +0300 | [diff] [blame] | 73 | 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 Vollering | 73a1018 | 2014-02-16 00:32:13 +0000 | [diff] [blame] | 77 | config SPI_FLASH_AMIC |
| 78 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 79 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Idwer Vollering | 73a1018 | 2014-02-16 00:32:13 +0000 | [diff] [blame] | 80 | 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älkki | 96d9276 | 2014-11-11 15:04:38 +0200 | [diff] [blame] | 84 | config SPI_FLASH_ATMEL |
| 85 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 86 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Kyösti Mälkki | 96d9276 | 2014-11-11 15:04:38 +0200 | [diff] [blame] | 87 | 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 Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 91 | config SPI_FLASH_EON |
| 92 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 93 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 94 | 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älkki | ab60510 | 2014-06-30 07:49:55 +0300 | [diff] [blame] | 98 | config SPI_FLASH_GIGADEVICE |
| 99 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 100 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Kyösti Mälkki | ab60510 | 2014-06-30 07:49:55 +0300 | [diff] [blame] | 101 | 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 Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 105 | config SPI_FLASH_MACRONIX |
| 106 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 107 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 108 | 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 | |
| 112 | config SPI_FLASH_SPANSION |
| 113 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 114 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 115 | 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 | |
| 119 | config SPI_FLASH_SST |
| 120 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 121 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 122 | 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 | |
| 126 | config SPI_FLASH_STMICRO |
| 127 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 128 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 129 | 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 | |
| 133 | config SPI_FLASH_WINBOND |
| 134 | bool |
Aaron Durbin | a91901c | 2016-08-11 09:42:27 -0500 | [diff] [blame] | 135 | default y if SPI_FLASH_INCLUDE_ALL_DRIVERS |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 136 | 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 Hendricks | 1101a71 | 2013-11-22 18:41:38 -0800 | [diff] [blame] | 140 | config 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älkki | 88e518f | 2014-04-29 07:11:39 +0300 | [diff] [blame] | 149 | endif # SPI_FLASH |
Martin Roth | 3a54318 | 2015-09-28 15:27:24 -0600 | [diff] [blame] | 150 | |
| 151 | config HAVE_SPI_CONSOLE_SUPPORT |
| 152 | def_bool n |