mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 21:24:21 +08:00
board_r: Detect ifc-nor flash at run-time
CONFIG_MTD_NOR_FLASH flag needs to be enable for all boot sources,as all flash drivers need to compile in TFA Boot.Probe ifc nor flash only when there is nor flash available on board.So needs to detect ifc-nor flash at run-time for probing. Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
c0be08a577
commit
62d3a58dce
@ -369,11 +369,19 @@ static int initr_binman(void)
|
||||
}
|
||||
|
||||
#if defined(CONFIG_MTD_NOR_FLASH)
|
||||
__weak int is_flash_available(void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int initr_flash(void)
|
||||
{
|
||||
ulong flash_size = 0;
|
||||
bd_t *bd = gd->bd;
|
||||
|
||||
if (!is_flash_available())
|
||||
return 0;
|
||||
|
||||
puts("Flash: ");
|
||||
|
||||
if (board_flash_wp_on())
|
||||
|
Loading…
Reference in New Issue
Block a user