net: ti: cpsw: Enable DM_FLAG_PRE_RELOC
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 18 Mar 2019 08:24:36 +0000 (13:54 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 12 Apr 2019 12:05:54 +0000 (08:05 -0400)
Add DM_FLAG_PRE_RELOC to make the driver probe in SPL.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
drivers/net/ti/cpsw.c

index 403c9b98dd87ef1e9d8a195c9e15c92747117dfa..e16c270985a7451e125f4ce5c762536677caebe4 100644 (file)
@@ -1379,6 +1379,6 @@ U_BOOT_DRIVER(eth_cpsw) = {
        .probe  = cpsw_eth_probe,
        .ops    = &cpsw_eth_ops,
        .priv_auto_alloc_size = sizeof(struct cpsw_priv),
-       .flags = DM_FLAG_ALLOC_PRIV_DMA,
+       .flags = DM_FLAG_ALLOC_PRIV_DMA | DM_FLAG_PRE_RELOC,
 };
 #endif /* CONFIG_DM_ETH */