xref: /freebsd/sys/dts/include/dt-bindings/soc/qcom,tcsr.h (revision 8e53cd70994369510b24248aad1352aed70727c9)
1*8e53cd70SAdrian Chadd /* SPDX-License-Identifier: GPL-2.0 */
2*8e53cd70SAdrian Chadd /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. */
3*8e53cd70SAdrian Chadd #ifndef	__DT_BINDINGS_QCOM_TCSR_H__
4*8e53cd70SAdrian Chadd #define	__DT_BINDINGS_QCOM_TCSR_H__
5*8e53cd70SAdrian Chadd 
6*8e53cd70SAdrian Chadd #define	TCSR_USB_SELECT_USB3_P0			0x1
7*8e53cd70SAdrian Chadd #define	TCSR_USB_SELECT_USB3_P1			0x2
8*8e53cd70SAdrian Chadd #define	TCSR_USB_SELECT_USB3_DUAL		0x3
9*8e53cd70SAdrian Chadd 
10*8e53cd70SAdrian Chadd #define	TCSR_USB_HSPHY_HOST_MODE		0x00E700E7
11*8e53cd70SAdrian Chadd #define	TCSR_USB_HSPHY_DEVICE_MODE		0x00C700E7
12*8e53cd70SAdrian Chadd 
13*8e53cd70SAdrian Chadd #define	TCSR_ESS_PSGMII			0
14*8e53cd70SAdrian Chadd #define	TCSR_ESS_PSGMII_RGMII5		1
15*8e53cd70SAdrian Chadd #define	TCSR_ESS_PSGMII_RMII0		2
16*8e53cd70SAdrian Chadd #define	TCSR_ESS_PSGMII_RMII1		4
17*8e53cd70SAdrian Chadd #define	TCSR_ESS_PSGMII_RMII0_RMII1	6
18*8e53cd70SAdrian Chadd #define	TCSR_ESS_PSGMII_RGMII4	9
19*8e53cd70SAdrian Chadd 
20*8e53cd70SAdrian Chadd #define	TCSR_WIFI_GLB_CFG		0x41000000
21*8e53cd70SAdrian Chadd 
22*8e53cd70SAdrian Chadd #define	TCSR_WIFI_NOC_MEMTYPE_M0_M2	0x02222222
23*8e53cd70SAdrian Chadd 
24*8e53cd70SAdrian Chadd #define	IPQ806X_TCSR_REG_A_ADM_CRCI_MUX_SEL	0
25*8e53cd70SAdrian Chadd #define	IPQ806X_TCSR_REG_B_ADM_CRCI_MUX_SEL	1
26*8e53cd70SAdrian Chadd 
27*8e53cd70SAdrian Chadd #endif
28