[U-Boot] [RFC] spl: dw_mmc_socfpga: udevice structure is NULL in SPL

Ley Foon Tan lftan.linux at gmail.com
Thu Apr 26 02:26:35 UTC 2018


On Thu, Apr 26, 2018 at 10:24 AM, Dinh Nguyen <dinguyen at kernel.org> wrote:
> Hi,
>
> I am trying to add support for the sdmmc driver to use the reset manager
> driver in SPL. But I'm noticing that the udevice struct dev that passed
> into socfpga_dwmmc_probe() is NULL, thus, I can't use the
> reset_get_by_() functions to get the reset information because it needs
> the dev structure is NULL.
>
> Not sure if I'm missing a config option or something?
>
> Thanks,
> Dinh


I think you need add " u-boot,dm-pre-reloc;" into reset manager and DW
MMC device tree nodes.

Regards
Ley Foon


More information about the U-Boot mailing list