xref: /freebsd/sys/dev/qcom_tcsr/qcom_tcsr_reg.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1d11f81afSAdrian Chadd /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3d11f81afSAdrian Chadd  *
4d11f81afSAdrian Chadd  * Copyright (c) 2021 Adrian Chadd <adrian@FreeBSD.org>
5d11f81afSAdrian Chadd  *
6d11f81afSAdrian Chadd  * Redistribution and use in source and binary forms, with or without
7d11f81afSAdrian Chadd  * modification, are permitted provided that the following conditions
8d11f81afSAdrian Chadd  * are met:
9d11f81afSAdrian Chadd  * 1. Redistributions of source code must retain the above copyright
10d11f81afSAdrian Chadd  *    notice, this list of conditions and the following disclaimer.
11d11f81afSAdrian Chadd  * 2. Redistributions in binary form must reproduce the above copyright
12d11f81afSAdrian Chadd  *    notice, this list of conditions and the following disclaimer in the
13d11f81afSAdrian Chadd  *    documentation and/or other materials provided with the distribution.
14d11f81afSAdrian Chadd  *
15d11f81afSAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16d11f81afSAdrian Chadd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17d11f81afSAdrian Chadd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18d11f81afSAdrian Chadd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19d11f81afSAdrian Chadd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20d11f81afSAdrian Chadd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21d11f81afSAdrian Chadd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22d11f81afSAdrian Chadd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23d11f81afSAdrian Chadd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24d11f81afSAdrian Chadd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25d11f81afSAdrian Chadd  * SUCH DAMAGE.
26d11f81afSAdrian Chadd  */
27d11f81afSAdrian Chadd 
28d11f81afSAdrian Chadd #ifndef	__QCOM_TCSR_REG_H__
29d11f81afSAdrian Chadd #define	__QCOM_TCSR_REG_H__
30d11f81afSAdrian Chadd 
31d11f81afSAdrian Chadd #define	QCOM_TCSR_USB_PORT_SEL_BASE		0x1A4000B0
32d11f81afSAdrian Chadd #define	QCOM_TCSR_USB_PORT_SEL			0xB0
33d11f81afSAdrian Chadd #define	QCOM_TCSR_USB_HSPHY_CONFIG		0x0C
34d11f81afSAdrian Chadd 
35d11f81afSAdrian Chadd #define	QCOM_TCSR_ESS_INTERFACE_SEL_OFFSET	0x0
36d11f81afSAdrian Chadd #define	QCOM_TCSR_ESS_INTERFACE_SEL_MASK	0xF
37d11f81afSAdrian Chadd 
38d11f81afSAdrian Chadd #define	QCOM_TCSR_WIFI0_GLB_CFG_OFFSET		0x0
39d11f81afSAdrian Chadd #define	QCOM_TCSR_WIFI1_GLB_CFG_OFFSET		0x4
40d11f81afSAdrian Chadd #define	QCOM_TCSR_PNOC_SNOC_MEMTYPE_M0_M2	0x4
41d11f81afSAdrian Chadd 
42d11f81afSAdrian Chadd #endif	/* __QCOM_TCSR_REG_H__ */
43