#define GPIO3A_SDMMC0_WRITE_PRT 1
#define GPIO3A_GPIO3A6 0
#define GPIO3A_SDMMC0_RSTN_OUT 1
-#define GPIO4A_GPIO4A5 0
-#define GPIO4A_I2C4_SCL 1
+#define GPIO3A_GPIO3A5 0
+#define GPIO3A_I2C4_SCL 1
#define GPIO3A_GPIO3A4 0
#define GPIO3A_I2C4_SDA 1
#define GPIO3A_GPIO3A3 0
//GPIO3A
#define GPIO3A7_SDMMC0WRITEPRT_NAME "gpio3a7_sdmmc0writeprt_name"
#define GPIO3A6_SDMMC0RSTNOUT_NAME "gpio3a6_sdmmc0rstnout_name"
-#define GPIO4A5_I2C4SCL_NAME "gpio4a5_i2c4scl_name"
+#define GPIO3A5_I2C4SCL_NAME "gpio3a5_i2c4scl_name"
#define GPIO3A4_I2C4SDA_NAME "gpio3a4_i2c4sda_name"
#define GPIO3A3_I2C3SCL_NAME "gpio3a3_i2c3scl_name"
#define GPIO3A2_I2C3SDA_NAME "gpio3a2_i2c3sda_name"
//GPIO3A
MUX_CFG(GPIO3A7_SDMMC0WRITEPRT_NAME, GPIO3A, 14, 2, 0, DEFAULT)
MUX_CFG(GPIO3A6_SDMMC0RSTNOUT_NAME, GPIO3A, 12, 2, 0, DEFAULT)
-MUX_CFG(GPIO4A5_I2C4SCL_NAME, GPIO3A, 10, 2, 0, DEFAULT)
+MUX_CFG(GPIO3A5_I2C4SCL_NAME, GPIO3A, 10, 2, 0, DEFAULT)
MUX_CFG(GPIO3A4_I2C4SDA_NAME, GPIO3A, 8, 2, 0, DEFAULT)
MUX_CFG(GPIO3A3_I2C3SCL_NAME, GPIO3A, 6, 2, 0, DEFAULT)
MUX_CFG(GPIO3A2_I2C3SDA_NAME, GPIO3A, 4, 2, 0, DEFAULT)
rk30_mux_api_set(GPIO2C4_LCDC1DATA20_SPI1CSN0_HSADCDATA1_NAME, GPIO2C_SPI1_CSN0);
rk30_mux_api_set(GPIO2C3_LCDC1DATA19_SPI1CLK_HSADCDATA0_NAME, GPIO2C_SPI1_CLK);
#endif
+
+#ifdef CONFIG_I2C0_RK30
+ rk30_mux_api_set(GPIO2D5_I2C0SCL_NAME, GPIO2D_I2C0_SCL);
+ rk30_mux_api_set(GPIO2D4_I2C0SDA_NAME, GPIO2D_I2C0_SDA);
+#endif
+
+#ifdef CONFIG_I2C1_RK30
+ rk30_mux_api_set(GPIO2D7_I2C1SCL_NAME, GPIO2D_I2C1_SCL);
+ rk30_mux_api_set(GPIO2D6_I2C1SDA_NAME, GPIO2D_I2C1_SDA);
+#endif
+
+#ifdef CONFIG_I2C2_RK30
+ rk30_mux_api_set(GPIO3A1_I2C2SCL_NAME, GPIO3A_I2C2_SCL);
+ rk30_mux_api_set(GPIO3A0_I2C2SDA_NAME, GPIO3A_I2C2_SDA);
+#endif
+
+#ifdef CONFIG_I2C3_RK30
+ rk30_mux_api_set(GPIO3A3_I2C3SCL_NAME, GPIO3A_I2C3_SCL);
+ rk30_mux_api_set(GPIO3A2_I2C3SDA_NAME, GPIO3A_I2C2_SDA);
+#endif
+
+#ifdef CONFIG_I2C4_RK30
+ rk30_mux_api_set(GPIO3A5_I2C4SCL_NAME, GPIO3A_I2C3_SCL);
+ rk30_mux_api_set(GPIO3A4_I2C4SDA_NAME, GPIO3A_I2C2_SDA);
+#endif
+
#ifdef CONFIG_RK30_VMAC
rk30_mux_api_set(GPIO1C0_CIF1DATA2_RMIICLKOUT_RMIICLKIN_NAME, GPIO1C_RMII_CLKOUT);
rk30_mux_api_set(GPIO1C1_CIFDATA3_RMIITXEN_NAME, GPIO1C_RMII_TX_EN);