In flexspi driver, each sf command will disable the module in release bus
function. So reading from flexspi memory-map address using "md" command
can't work. When iMX8MM kicks M4 image to run flexspi NOR XIP,
this causes problem.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
e92d831e5b1e149b23aeb1774c57d076ac246b1e)
priv->cur_amba_base =
priv->amba_base[0] + FSL_FSPI_FLASH_SIZE * slave_plat->cs;
- fspi_module_disable(priv, 0);
-
return 0;
}
static int fsl_fspi_release_bus(struct udevice *dev)
{
- struct fsl_fspi_priv *priv;
- struct udevice *bus;
-
- bus = dev->parent;
- priv = dev_get_priv(bus);
-
- fspi_module_disable(priv, 1);
-
return 0;
}