From 4e85ec705e08c37a6e071bbb9d5f381eea018283 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 11 Oct 2022 17:27:14 +0530 Subject: soc/intel/alderlake: Create helper header file for UFS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch creates helper header file (ufs.h) for UFS to keep required registers details and ACPI device id for UFS. BUG=none TEST=Able to build and boot Google/Kano. Signed-off-by: Subrata Banik Change-Id: If08c54eb706876a4255542a708aa5fcd8bf43c55 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68299 Reviewed-by: Eric Lai Reviewed-by: Meera Ravindranath Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/soc/intel/alderlake/include/soc/ufs.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/soc/intel/alderlake/include/soc/ufs.h (limited to 'src') diff --git a/src/soc/intel/alderlake/include/soc/ufs.h b/src/soc/intel/alderlake/include/soc/ufs.h new file mode 100644 index 0000000000..3b5e33d0fb --- /dev/null +++ b/src/soc/intel/alderlake/include/soc/ufs.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* + * This file is created based on Intel Alder Lake Processor PCH Datasheet + * Document number: 645550 + */ + +#ifndef _SOC_ALDERLAKE_UFS_H_ +#define _SOC_ALDERLAKE_UFS_H_ + +#include + +/* Calculate _ADR for Intel UFS Controller */ +#define UFS_ACPI_DEVICE (PCH_DEV_SLOT_ISH << 16 | 0x0007) + +#define R_SCS_CFG_PCS 0x84 +#define R_SCS_CFG_PG_CONFIG 0xA2 + +#define R_SCS_PCR_1C20 0x1C20 +#define R_SCS_PCR_4820 0x4820 +#define R_SCS_PCR_4020 0x4020 +#define R_SCS_PCR_5820 0x5820 +#define R_SCS_PCR_5C20 0x5C20 +#define R_SCS_PCR_1078 0x1078 +#define R_PMC_PWRM_LTR_IGN 0x1B0C + +#endif -- cgit v1.2.3