coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lpc.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 /* TODO: Check if this is still correct */
4 
5 #ifndef AMD_SABRINA_LPC_H
6 #define AMD_SABRINA_LPC_H
7 
8 /* LPC_MISC_CONTROL_BITS at D14F3x078 */
9 /* The definitions of bits 9 and 10 are swapped on Picasso and older compared to Renoir/Cezanne
10  and newer, so we need to keep those in a SoC-specific header file. */
11 #define LPC_LDRQ0_PU_EN BIT(10)
12 #define LPC_LDRQ0_PD_EN BIT(9)
13 
14 #define SPI_BASE_ADDRESS_REGISTER 0xa0
15 #define SPI_BASE_ALIGNMENT BIT(8)
16 #define SPI_BASE_RESERVED (BIT(5) | BIT(6) | BIT(7))
17 #define PSP_SPI_MMIO_SEL BIT(4)
18 #define ROUTE_TPM_2_SPI BIT(3)
19 #define SPI_ABORT_ENABLE BIT(2)
20 #define SPI_ROM_ENABLE BIT(1)
21 #define SPI_ROM_ALT_ENABLE BIT(0)
22 #define SPI_PRESERVE_BITS (BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4))
23 
24 #endif /* AMD_SABRINA_LPC_H */