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