summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/sdm845/include/soc/efuse.h
diff options
context:
space:
mode:
authorChandana Kishori Chiluveru <cchiluve@codeaurora.org>2018-03-26 15:13:36 -0700
committerJulius Werner <jwerner@chromium.org>2019-05-02 23:06:06 +0000
commitc0fe0b28a9461e963d6dff5d91cf70231dcae0e8 (patch)
tree535ce069b581837415a945081ab34223db66797f /src/soc/qualcomm/sdm845/include/soc/efuse.h
parent7a3e46d767890f502b09771e19decc5033e27079 (diff)
downloadcoreboot-c0fe0b28a9461e963d6dff5d91cf70231dcae0e8.tar.xz
sdm845: Add USB support on cheza platform
This patch adds code to initialize two USB DWC3.0 controllers and its associated QUSB V2 10nm PHYs to the SDM845 SOC, and uses them to initialize USB3.0 on the cheza mainboard. Synopsis controller initialization and configuration sequences taken from USB 3.0 HPG chapter 2.2 and refer PHY HPG chapter 10.2 for QUSB phy programming. Includes Super speed mode support. TEST=USB keypad and mass-storage device enumeration tested with this patch Change-Id: I475a7757239acb8ef22a4d61afd59b304a7f0acc Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/25213 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/soc/qualcomm/sdm845/include/soc/efuse.h')
-rw-r--r--src/soc/qualcomm/sdm845/include/soc/efuse.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/soc/qualcomm/sdm845/include/soc/efuse.h b/src/soc/qualcomm/sdm845/include/soc/efuse.h
new file mode 100644
index 0000000000..309193cf43
--- /dev/null
+++ b/src/soc/qualcomm/sdm845/include/soc/efuse.h
@@ -0,0 +1,30 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (c) 2018 Qualcomm Technologies
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __SOC_QUALCOMM_SDM845_EFUSE_ADDRESS_MAP_H__
+#define __SOC_QUALCOMM_SDM845_EFUSE_ADDRESS_MAP_H__
+
+/**
+ * USB EFUSE registers
+ */
+struct qfprom_corr {
+ u8 rsvd[0x41E8 - 0x0];
+ u32 qusb_hstx_trim_lsb;
+ u32 qusb_hstx_trim_msb;
+};
+
+check_member(qfprom_corr, qusb_hstx_trim_lsb, 0x41E8);
+check_member(qfprom_corr, qusb_hstx_trim_msb, 0x41EC);
+#endif /* __SOC_QUALCOMM_SDM845_EFUSE_ADDRESS_MAP_H__ */