blob: e448faad2d6e9ad43f2a3e086c820570e58220de [file] [log] [blame]
Sumit Garge6a488b2022-07-12 12:42:11 +05301/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Qualcomm QCS404 sysmap
4 *
5 * (C) Copyright 2022 Sumit Garg <sumit.garg@linaro.org>
6 */
7#ifndef _MACH_SYSMAP_QCS404_H
8#define _MACH_SYSMAP_QCS404_H
9
10#define GICD_BASE (0x0b000000)
11#define GICC_BASE (0x0b002000)
12
13/* Clocks: (from CLK_CTL_BASE) */
14#define GPLL0_STATUS (0x21000)
15#define APCS_GPLL_ENA_VOTE (0x45000)
16#define APCS_CLOCK_BRANCH_ENA_VOTE (0x45004)
17
18/* BLSP1 AHB clock (root clock for BLSP) */
19#define BLSP1_AHB_CBCR 0x1008
20
21/* Uart clock control registers */
22#define BLSP1_UART2_BCR (0x3028)
23#define BLSP1_UART2_APPS_CBCR (0x302C)
24#define BLSP1_UART2_APPS_CMD_RCGR (0x3034)
25#define BLSP1_UART2_APPS_CFG_RCGR (0x3038)
26#define BLSP1_UART2_APPS_M (0x303C)
27#define BLSP1_UART2_APPS_N (0x3040)
28#define BLSP1_UART2_APPS_D (0x3044)
29
30/* SD controller clock control registers */
31#define SDCC_BCR(n) (((n) * 0x1000) + 0x41000)
32#define SDCC_CMD_RCGR(n) (((n) * 0x1000) + 0x41004)
33#define SDCC_CFG_RCGR(n) (((n) * 0x1000) + 0x41008)
34#define SDCC_M(n) (((n) * 0x1000) + 0x4100C)
35#define SDCC_N(n) (((n) * 0x1000) + 0x41010)
36#define SDCC_D(n) (((n) * 0x1000) + 0x41014)
37#define SDCC_APPS_CBCR(n) (((n) * 0x1000) + 0x41018)
38#define SDCC_AHB_CBCR(n) (((n) * 0x1000) + 0x4101C)
39
Sumit Garg3018e522022-08-04 19:57:15 +053040/* USB-3.0 controller clock control registers */
41#define SYS_NOC_USB3_CBCR (0x26014)
42#define USB30_BCR (0x39000)
43#define USB3PHY_BCR (0x39008)
44#define USB30_MASTER_CBCR (0x3900C)
45#define USB30_SLEEP_CBCR (0x39010)
46#define USB30_MOCK_UTMI_CBCR (0x39014)
47#define USB30_MOCK_UTMI_CMD_RCGR (0x3901C)
48#define USB30_MOCK_UTMI_CFG_RCGR (0x39020)
49#define USB30_MASTER_CMD_RCGR (0x39028)
50#define USB30_MASTER_CFG_RCGR (0x3902C)
51#define USB30_MASTER_M (0x39030)
52#define USB30_MASTER_N (0x39034)
53#define USB30_MASTER_D (0x39038)
54#define USB2A_PHY_SLEEP_CBCR (0x4102C)
55#define USB_HS_PHY_CFG_AHB_CBCR (0x41030)
56
Sumit Garge6a488b2022-07-12 12:42:11 +053057#endif