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