diff options
author | Subrata Banik <subratabanik@google.com> | 2024-11-19 17:05:50 +0530 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-11-22 02:49:25 +0000 |
commit | acbde3351392baeb8c2c258460bb6b57aecd55ea (patch) | |
tree | 460bde3764e0040335954ac114c1b6c6eaef9206 /src/soc/intel/pantherlake/include | |
parent | e7264110a6b32f9949a8e4a533548b903e041352 (diff) |
soc/intel/pantherlake: Add option to enable UFS controller
This patch adds a Kconfig option to enable the UFS controller for
mainboards using the Intel Panther Lake-UH SoC.
By default, the UFS controller is disabled as it is not supported by
other SoC configurations. This prevents accidental enabling of the
UFS controller on unsupported platforms.
BUG=b:379828045
TEST=Built google/fatcat with and without UFS enabled.
Change-Id: Ica89ae85582367809128fc6cf0cd5fe5d40a2235
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85191
Reviewed-by: Pranava Y N <pranavayn@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/pantherlake/include')
-rw-r--r-- | src/soc/intel/pantherlake/include/soc/pci_devs.h | 6 | ||||
-rw-r--r-- | src/soc/intel/pantherlake/include/soc/ufs.h | 19 |
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 |