#define DEFAULT 0
#define INITIAL 1
+#if defined(CONFIG_ARCH_RK31)
+
+#define GRF_GPIO0L_DIR 0x0000
+#define GRF_GPIO0H_DIR 0x0004
+#define GRF_GPIO1L_DIR 0x0008
+#define GRF_GPIO1H_DIR 0x000c
+#define GRF_GPIO2L_DIR 0x0010
+#define GRF_GPIO2H_DIR 0x0014
+#define GRF_GPIO3L_DIR 0x0018
+#define GRF_GPIO3H_DIR 0x001c
+#define GRF_GPIO0L_DO 0x0020
+#define GRF_GPIO0H_DO 0x0024
+#define GRF_GPIO1L_DO 0x0028
+#define GRF_GPIO1H_DO 0x002c
+#define GRF_GPIO2L_DO 0x0030
+#define GRF_GPIO2H_DO 0x0034
+#define GRF_GPIO3L_DO 0x0038
+#define GRF_GPIO3H_DO 0x003c
+#define GRF_GPIO0L_EN 0x0040
+#define GRF_GPIO0H_EN 0x0044
+#define GRF_GPIO1L_EN 0x0048
+#define GRF_GPIO1H_EN 0x004c
+#define GRF_GPIO2L_EN 0x0050
+#define GRF_GPIO2H_EN 0x0054
+#define GRF_GPIO3L_EN 0x0058
+#define GRF_GPIO3H_EN 0x005c
+#define GRF_GPIO0A_IOMUX RK30_GRF_BASE+0x0060
+#define GRF_GPIO0B_IOMUX RK30_GRF_BASE+0x0064
+#define GRF_GPIO0C_IOMUX RK30_GRF_BASE+0x0068
+#define GRF_GPIO0D_IOMUX RK30_GRF_BASE+0x006c
+#define GRF_GPIO1A_IOMUX RK30_GRF_BASE+0x0070
+#define GRF_GPIO1B_IOMUX RK30_GRF_BASE+0x0074
+#define GRF_GPIO1C_IOMUX RK30_GRF_BASE+0x0078
+#define GRF_GPIO1D_IOMUX RK30_GRF_BASE+0x007c
+#define GRF_GPIO2A_IOMUX RK30_GRF_BASE+0x0080
+#define GRF_GPIO2B_IOMUX RK30_GRF_BASE+0x0084
+#define GRF_GPIO2C_IOMUX RK30_GRF_BASE+0x0088
+#define GRF_GPIO2D_IOMUX RK30_GRF_BASE+0x008c
+#define GRF_GPIO3A_IOMUX RK30_GRF_BASE+0x0090
+#define GRF_GPIO3B_IOMUX RK30_GRF_BASE+0x0094
+#define GRF_GPIO3C_IOMUX RK30_GRF_BASE+0x0098
+#define GRF_GPIO3D_IOMUX RK30_GRF_BASE+0x009c
+#define GRF_SOC_CON0 0x00a0
+#define GRF_SOC_CON1 0x00a4
+#define GRF_SOC_CON2 0x00a8
+#define GRF_SOC_STATUS0 0x00ac
+#define GRF_DMAC1_CON0 0x00b0
+#define GRF_DMAC1_CON1 0x00b4
+#define GRF_DMAC1_CON2 0x00b8
+#define GRF_DMAC2_CON0 0x00bc
+#define GRF_DMAC2_CON1 0x00c0
+#define GRF_DMAC2_CON2 0x00c4
+#define GRF_DMAC2_CON3 0x00c8
+#define GRF_UOC0_CON0 0x010c
+#define GRF_UOC0_CON1 0x0110
+#define GRF_UOC0_CON2 0x0114
+#define GRF_UOC0_CON3 0x0118
+#define GRF_UOC1_CON0 0x011c
+#define GRF_UOC1_CON1 0x0120
+#define GRF_UOC1_CON2 0x0124
+#define GRF_UOC1_CON3 0x0128
+#define GRF_UOC2_CON0 0x012c
+#define GRF_UOC2_CON1 0x0130
+#define GRF_UOC3_CON0 0x0138
+#define GRF_UOC3_CON1 0x013c
+#define GRF_HSIC_STAT 0x0140
+#define GRF_DDRC_CON0 0x00ec
+#define GRF_DDRC_STAT 0x00f0
+#define GRF_OS_REG0 0x0144
+#define GRF_OS_REG1 0x0148
+#define GRF_OS_REG2 0x014c
+#define GRF_OS_REG3 0x0150
+#define GRF_OS_REG4 0x0154
+#define GRF_OS_REG5 0x0158
+#define GRF_OS_REG6 0x015c
+#define GRF_OS_REG7 0x0160
+
+#else
#define GRF_GPIO0L_DIR 0x0000
#define GRF_GPIO0H_DIR 0x0004
#define GRF_OS_REG2 0x01d0
#define GRF_OS_REG3 0x01d4
+#endif
+
//GPIO0A
#define GPIO0A7_I2S8CHSDI_NAME "gpio0a7_i2s8chsdi_name"