Skip to content
Snippets Groups Projects
Commit c0aea6ba authored by Bin Meng's avatar Bin Meng
Browse files

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: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent b45dd662
Branches
Tags
No related merge requests found
...@@ -41,10 +41,7 @@ __weak bool board_should_run_oprom(struct udevice *dev) ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment