mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
nand: raw: zynq: Do not try to probe driver if nand flash is disabled
There is no reason to continue when DT status property indicates that NAND flash is disabled. But that means that NOR flash should be present that's why try it find it out. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
This commit is contained in:
parent
36f1f3b640
commit
3811746ed9
1 changed files with 5 additions and 0 deletions
|
@ -1090,6 +1090,11 @@ static int zynq_nand_probe(struct udevice *dev)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (!ofnode_is_available(of_nand)) {
|
||||
debug("Nand node in dt disabled\n");
|
||||
return dm_scan_fdt_dev(dev);
|
||||
}
|
||||
|
||||
if (ofnode_read_resource(of_nand, 0, &res)) {
|
||||
printf("Failed to get nand resource\n");
|
||||
return -ENODEV;
|
||||
|
|
Loading…
Add table
Reference in a new issue