board: ti: j784s4: Add cadence-qspi flash node selection
Add cadence-qspi flash node selection for choosing between OSPI NOR and OSPI NAND flashes put under OSPI0 instance. This is needed for R5 SPL as it is not possible to apply fixup at this stage. Signed-off-by: Apurva Nandan <a-nandan@ti.com>
This commit is contained in:
parent
48be4a4c7f
commit
a4e4f38a06
|
|
@ -238,6 +238,17 @@ int board_late_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ofnode cadence_qspi_get_subnode(struct udevice *dev)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_SPL_BUILD) &&
|
||||
IS_ENABLED(CONFIG_TARGET_J784S4_R5_EVM)) {
|
||||
if (spl_boot_device() == BOOT_DEVICE_SPINAND)
|
||||
return ofnode_by_compatible(dev_ofnode(dev), "spi-nand");
|
||||
}
|
||||
|
||||
return dev_read_first_subnode(dev);
|
||||
}
|
||||
|
||||
void spl_board_init(void)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue