blob: 08348d8228a1dd9c82f8ca0d749cc551e697a5c0 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
huang lin1065ca52015-11-17 14:20:17 +08002/*
3 * (C) Copyright 2015 Rockchip Electronics Co., Ltd
huang lin1065ca52015-11-17 14:20:17 +08004 */
5#ifndef _ASM_ARCH_GRF_RK3036_H
6#define _ASM_ARCH_GRF_RK3036_H
7
huang lin1065ca52015-11-17 14:20:17 +08008struct rk3036_grf {
9 unsigned int reserved[0x2a];
10 unsigned int gpio0a_iomux;
11 unsigned int gpio0b_iomux;
12 unsigned int gpio0c_iomux;
13 unsigned int gpio0d_iomux;
14
15 unsigned int gpio1a_iomux;
16 unsigned int gpio1b_iomux;
17 unsigned int gpio1c_iomux;
18 unsigned int gpio1d_iomux;
19
20 unsigned int gpio2a_iomux;
21 unsigned int gpio2b_iomux;
22 unsigned int gpio2c_iomux;
23 unsigned int gpio2d_iomux;
24
25 unsigned int reserved2[0x0a];
26 unsigned int gpiods;
27 unsigned int reserved3[0x05];
28 unsigned int gpio0l_pull;
29 unsigned int gpio0h_pull;
30 unsigned int gpio1l_pull;
31 unsigned int gpio1h_pull;
32 unsigned int gpio2l_pull;
33 unsigned int gpio2h_pull;
34 unsigned int reserved4[4];
35 unsigned int soc_con0;
36 unsigned int soc_con1;
37 unsigned int soc_con2;
38 unsigned int soc_status0;
39 unsigned int reserved5;
40 unsigned int soc_con3;
41 unsigned int reserved6;
42 unsigned int dmac_con0;
43 unsigned int dmac_con1;
44 unsigned int dmac_con2;
45 unsigned int reserved7[5];
46 unsigned int uoc0_con5;
47 unsigned int reserved8[4];
48 unsigned int uoc1_con4;
49 unsigned int uoc1_con5;
50 unsigned int reserved9;
51 unsigned int ddrc_stat;
52 unsigned int uoc_con6;
53 unsigned int soc_status1;
54 unsigned int cpu_con0;
55 unsigned int cpu_con1;
56 unsigned int cpu_con2;
57 unsigned int cpu_con3;
58 unsigned int reserved10;
59 unsigned int reserved11;
60 unsigned int cpu_status0;
61 unsigned int cpu_status1;
62 unsigned int os_reg[8];
63 unsigned int reserved12[6];
64 unsigned int dll_con[4];
65 unsigned int dll_status[4];
66 unsigned int dfi_wrnum;
67 unsigned int dfi_rdnum;
68 unsigned int dfi_actnum;
69 unsigned int dfi_timerval;
70 unsigned int nfi_fifo[4];
71 unsigned int reserved13[0x10];
72 unsigned int usbphy0_con[8];
73 unsigned int usbphy1_con[8];
74 unsigned int reserved14[0x10];
75 unsigned int chip_tag;
76 unsigned int sdmmc_det_cnt;
77};
78check_member(rk3036_grf, sdmmc_det_cnt, 0x304);
79
huang lin1065ca52015-11-17 14:20:17 +080080#endif