mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
pci: Make load_oprom and run_oprom independent
At present should_load_oprom() calls board_should_run_oprom() to determine whether oprom should be loaded. But sometimes we just want to load oprom without running. Make them independent. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b45dd66225
commit
c0aea6ba8b
1 changed files with 1 additions and 4 deletions
|
@ -41,10 +41,7 @@ __weak bool board_should_run_oprom(struct udevice *dev)
|
||||||
|
|
||||||
static bool should_load_oprom(struct udevice *dev)
|
static bool should_load_oprom(struct udevice *dev)
|
||||||
{
|
{
|
||||||
if (board_should_run_oprom(dev))
|
return true;
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__weak uint32_t board_map_oprom_vendev(uint32_t vendev)
|
__weak uint32_t board_map_oprom_vendev(uint32_t vendev)
|
||||||
|
|
Loading…
Add table
Reference in a new issue