i2c: rk3x: Add i2c support for rk3328
[firefly-linux-kernel-4.4.55.git] / drivers / i2c / busses / i2c-rk3x.c
index df8a4b20d56660cbe1572fd0bfa1c36b05b2ff11..56a7cc00c4212dfe5e150abb0fb8df5e9b86e203 100644 (file)
@@ -1151,6 +1151,11 @@ static const struct rk3x_i2c_soc_data rk3288_soc_data = {
        .calc_timings = rk3x_i2c_v0_calc_timings,
 };
 
+static const struct rk3x_i2c_soc_data rk3328_soc_data = {
+       .grf_offset = -1,
+       .calc_timings = rk3x_i2c_v1_calc_timings,
+};
+
 static const struct rk3x_i2c_soc_data rk3399_soc_data = {
        .grf_offset = -1,
        .calc_timings = rk3x_i2c_v1_calc_timings,
@@ -1173,6 +1178,10 @@ static const struct of_device_id rk3x_i2c_match[] = {
                .compatible = "rockchip,rk3288-i2c",
                .data = (void *)&rk3288_soc_data
        },
+       {
+               .compatible = "rockchip,rk3328-i2c",
+               .data = (void *)&rk3328_soc_data
+       },
        {
                .compatible = "rockchip,rk3399-i2c",
                .data = (void *)&rk3399_soc_data