mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
UPSTREAM: i2c: rk3x: add support for rv1108
Support for the i2c controller on rv1108 soc.
Change-Id: I1eac935446a34e3edb758f9ee81cb84660dfd01e
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 0dbb9634e5)
This commit is contained in:
parent
bfbcdb65aa
commit
9d0b8028e4
|
|
@ -1198,6 +1198,11 @@ static const struct i2c_algorithm rk3x_i2c_algorithm = {
|
|||
.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 = {
|
||||
.grf_offset = 0x154,
|
||||
.calc_timings = rk3x_i2c_v0_calc_timings,
|
||||
|
|
@ -1229,6 +1234,10 @@ static const struct rk3x_i2c_soc_data rk3399_soc_data = {
|
|||
};
|
||||
|
||||
static const struct of_device_id rk3x_i2c_match[] = {
|
||||
{
|
||||
.compatible = "rockchip,rv1108-i2c",
|
||||
.data = (void *)&rv1108_soc_data
|
||||
},
|
||||
{
|
||||
.compatible = "rockchip,rk3066-i2c",
|
||||
.data = (void *)&rk3066_soc_data
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user