Commit 0dbb9634 authored by Andy Yan's avatar Andy Yan Committed by Wolfram Sang

i2c: rk3x: add support for rv1108

Support for the i2c controller on rv1108 soc.
Signed-off-by: default avatarAndy Yan <andy.yan@rock-chips.com>
Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent f14cb3e2
...@@ -1131,6 +1131,11 @@ static const struct i2c_algorithm rk3x_i2c_algorithm = { ...@@ -1131,6 +1131,11 @@ static const struct i2c_algorithm rk3x_i2c_algorithm = {
.functionality = rk3x_i2c_func, .functionality = rk3x_i2c_func,
}; };
static const struct rk3x_i2c_soc_data rv1108_soc_data = {
.grf_offset = -1,
.calc_timings = rk3x_i2c_v1_calc_timings,
};
static const struct rk3x_i2c_soc_data rk3066_soc_data = { static const struct rk3x_i2c_soc_data rk3066_soc_data = {
.grf_offset = 0x154, .grf_offset = 0x154,
.calc_timings = rk3x_i2c_v0_calc_timings, .calc_timings = rk3x_i2c_v0_calc_timings,
...@@ -1157,6 +1162,10 @@ static const struct rk3x_i2c_soc_data rk3399_soc_data = { ...@@ -1157,6 +1162,10 @@ static const struct rk3x_i2c_soc_data rk3399_soc_data = {
}; };
static const struct of_device_id rk3x_i2c_match[] = { static const struct of_device_id rk3x_i2c_match[] = {
{
.compatible = "rockchip,rv1108-i2c",
.data = (void *)&rv1108_soc_data
},
{ {
.compatible = "rockchip,rk3066-i2c", .compatible = "rockchip,rk3066-i2c",
.data = (void *)&rk3066_soc_data .data = (void *)&rk3066_soc_data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment