coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spi.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _BROADWELL_SPI_H_
4 #define _BROADWELL_SPI_H_
5 
6 /*
7  * SPI Opcode Menu setup for SPIBAR lockdown
8  * should support most common flash chips.
9  */
10 
11 #define SPIBAR_OFFSET 0x3800
12 #define SPIBAR8(x) RCBA8(x + SPIBAR_OFFSET)
13 #define SPIBAR32(x) RCBA32(x + SPIBAR_OFFSET)
14 
15 /* Registers within the SPIBAR */
16 #define SPIBAR_SSFC 0x91
17 #define SPIBAR_FDOC 0xb0
18 #define SPIBAR_FDOD 0xb4
19 
20 #define SPIBAR_HSFS 0x04 /* SPI hardware sequence status */
21 #define SPIBAR_HSFS_FLOCKDN (1 << 15)/* Flash Configuration Lock-Down */
22 
23 #endif