Attention is currently required from: Sandeep Maheswaram. Hello Sandeep Maheswaram,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/56092
to review the following change.
Change subject: sc7280: Add support for USB common driver ......................................................................
sc7280: Add support for USB common driver
Use common USB driver for sc7280 soc instead of existing USB driver.
BUG=b:182963902 TEST=Validated USB enumeration on qcom sc7280 development board
Signed-off-by: Sandeep Maheswaram sanm@codeaurora.org Change-Id: Ib92b74c8035a8c0148a9aa48e7870b261b832a33 --- M src/soc/qualcomm/sc7280/Kconfig M src/soc/qualcomm/sc7280/Makefile.inc M src/soc/qualcomm/sc7280/include/soc/addressmap.h 3 files changed, 25 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/56092/1
diff --git a/src/soc/qualcomm/sc7280/Kconfig b/src/soc/qualcomm/sc7280/Kconfig index 5aa5d32..c1c5451 100644 --- a/src/soc/qualcomm/sc7280/Kconfig +++ b/src/soc/qualcomm/sc7280/Kconfig @@ -49,4 +49,16 @@ help Select the QUP instance to be used for UART console output.
+config SC7280_PCIE_NVME + bool + default y + +config SNPS_USB_PHY + bool + default y + +config QMPV4_USB_PHY + bool + default y + endif diff --git a/src/soc/qualcomm/sc7280/Makefile.inc b/src/soc/qualcomm/sc7280/Makefile.inc index 97e44f0..49c884d 100644 --- a/src/soc/qualcomm/sc7280/Makefile.inc +++ b/src/soc/qualcomm/sc7280/Makefile.inc @@ -35,6 +35,9 @@ ramstage-y += soc.c ramstage-y += cbmem.c ramstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c +ramstage-y += ../common/usb/usb.c +ramstage-y += ../common/usb/snps_usb_phy.c +ramstage-y += ../common/usb/qmp_usb_phy.c ramstage-y += pcie_host.c ramstage-y += ../common/aop_load_reset.c ramstage-y += cpucp_load_reset.c diff --git a/src/soc/qualcomm/sc7280/include/soc/addressmap.h b/src/soc/qualcomm/sc7280/include/soc/addressmap.h index 905a431..56b0595 100644 --- a/src/soc/qualcomm/sc7280/include/soc/addressmap.h +++ b/src/soc/qualcomm/sc7280/include/soc/addressmap.h @@ -93,4 +93,14 @@ /*PHY BCR */ #define GCC_PCIE_1_PHY_BCR 0x18E01C
+/* + * USB BASE ADDRESSES + */ +#define HS_USB_PRIM_PHY_BASE 0x088e3000 +#define QMP_PHY_QSERDES_COM_REG_BASE 0x088e9000 +#define QMP_PHY_QSERDES_TX_REG_BASE 0x088e9200 +#define QMP_PHY_QSERDES_RX_REG_BASE 0x088e9400 +#define QMP_PHY_PCS_REG_BASE 0x088e9c00 +#define USB_HOST_DWC3_BASE 0x0a60c100 + #endif /* __SOC_QUALCOMM_SC7280_ADDRESS_MAP_H__ */