summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/phoenix/include/soc/lpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/phoenix/include/soc/lpc.h')
-rw-r--r--src/soc/amd/phoenix/include/soc/lpc.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/soc/amd/phoenix/include/soc/lpc.h b/src/soc/amd/phoenix/include/soc/lpc.h
new file mode 100644
index 000000000000..be62ce23a924
--- /dev/null
+++ b/src/soc/amd/phoenix/include/soc/lpc.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/* TODO: Update for Phoenix */
+
+#ifndef AMD_PHOENIX_LPC_H
+#define AMD_PHOENIX_LPC_H
+
+/* LPC_MISC_CONTROL_BITS at D14F3x078 */
+
+#define LPC_LDRQ0_PU_EN BIT(10)
+#define LPC_LDRQ0_PD_EN BIT(9)
+
+#define SPI_BASE_ADDRESS_REGISTER 0xa0
+#define SPI_BASE_ALIGNMENT BIT(8)
+#define SPI_BASE_RESERVED (BIT(5) | BIT(6) | BIT(7))
+#define PSP_SPI_MMIO_SEL BIT(4)
+#define ROUTE_TPM_2_SPI BIT(3)
+#define SPI_ABORT_ENABLE BIT(2)
+#define SPI_ROM_ENABLE BIT(1)
+#define SPI_ROM_ALT_ENABLE BIT(0)
+#define SPI_PRESERVE_BITS (BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4))
+
+#endif /* AMD_PHOENIX_LPC_H */