treewide: Migrate CONFIG_SYS_ALT_MEMTEST to Kconfig
[platform/kernel/u-boot.git] / drivers / i2c / rk_i2c.c
index 68e6653..332280c 100644 (file)
@@ -382,7 +382,7 @@ static int rockchip_i2c_probe(struct udevice *bus)
 {
        struct rk_i2c *priv = dev_get_priv(bus);
 
-       priv->regs = (void *)devfdt_get_addr(bus);
+       priv->regs = dev_read_addr_ptr(bus);
 
        return 0;
 }
@@ -396,6 +396,7 @@ static const struct udevice_id rockchip_i2c_ids[] = {
        { .compatible = "rockchip,rk3066-i2c" },
        { .compatible = "rockchip,rk3188-i2c" },
        { .compatible = "rockchip,rk3288-i2c" },
+       { .compatible = "rockchip,rk3328-i2c" },
        { .compatible = "rockchip,rk3399-i2c" },
        { }
 };