MLK-21850-2 imx_virt_i2c: Add DM_FLAG_IGNORE_DEFAULT_CLKS flag
authorYe Li <ye.li@nxp.com>
Sun, 28 Apr 2019 11:12:34 +0000 (04:12 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:17 +0000 (04:28 -0700)
When we probe device with virtual i2c driver, assigning default clock
will definitely return false, becasue the resource is owned by M4. So
set this driver to ignore the default clocks

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/i2c/imx_virt_i2c.c

index 68ad9f4..43afea5 100644 (file)
@@ -299,4 +299,5 @@ U_BOOT_DRIVER(imx_virt_i2c) = {
        .child_post_bind = imx_virt_i2c_child_post_bind,
        .priv_auto_alloc_size = sizeof(struct imx_virt_i2c_bus),
        .ops = &imx_virt_i2c_ops,
+       .flags  = DM_FLAG_IGNORE_DEFAULT_CLKS,
 };