summaryrefslogtreecommitdiff
path: root/src/soc/intel/pantherlake/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/pantherlake/include')
-rw-r--r--src/soc/intel/pantherlake/include/soc/pci_devs.h6
-rw-r--r--src/soc/intel/pantherlake/include/soc/ufs.h19
2 files changed, 25 insertions, 0 deletions
diff --git a/src/soc/intel/pantherlake/include/soc/pci_devs.h b/src/soc/intel/pantherlake/include/soc/pci_devs.h
index dc419d022f..bff5bd35cb 100644
--- a/src/soc/intel/pantherlake/include/soc/pci_devs.h
+++ b/src/soc/intel/pantherlake/include/soc/pci_devs.h
@@ -139,6 +139,12 @@
#define PCI_DEV_CSE_3 _PCI_DEV(CSE, 4)
#define PCI_DEV_CSE_4 _PCI_DEV(CSE, 5)
+#if CONFIG(SOC_INTEL_PANTHERLAKE_U_H)
+#define PCI_DEV_SLOT_UFS 0x17
+#define PCI_DEVFN_UFS _PCI_DEVFN(UFS, 0)
+#define PCI_DEV_UFS _PCI_DEV(UFS, 0)
+#endif
+
#define PCI_DEV_SLOT_ESE 0x18
#define PCI_DEVFN_ESE1 _PCI_DEVFN(ESE, 0)
#define PCI_DEVFN_ESE2 _PCI_DEVFN(ESE, 1)
diff --git a/src/soc/intel/pantherlake/include/soc/ufs.h b/src/soc/intel/pantherlake/include/soc/ufs.h
new file mode 100644
index 0000000000..ffd9b1ff73
--- /dev/null
+++ b/src/soc/intel/pantherlake/include/soc/ufs.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/*
+ * This file is created based on Intel Panther Lake Processor PCH Datasheet
+ * Document number: TBD
+ */
+
+#ifndef _SOC_PANTHERLAKE_UFS_H_
+#define _SOC_PANTHERLAKE_UFS_H_
+
+#include <soc/pci_devs.h>
+
+/* Calculate _ADR for Intel UFS Controller */
+#define UFS_ACPI_DEVICE (PCI_DEV_SLOT_UFS << 16 | 0x0007)
+
+#define R_SCS_CFG_PCS 0x84
+#define R_SCS_CFG_PG_CONFIG 0xA2
+
+#endif