commit | 51541003179ada0f2fe379e795f876a0fbabdcb2 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun May 24 17:38:18 2020 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Wed May 27 14:40:09 2020 +0800 |
tree | 33924b0203609a57a36d05056df4d12d57404bc7 | |
parent | e78f9bb829a3a53d21abc4fcc7322a5acae0d7d5 [diff] |
cbfs: Unify the two header loaders These two functions have mostly the same code. Pull this out into a common function. Also make this function zero the private data so that callers don't have to do it. Finally, update cbfs_load_header_ptr() to take the base of the ROM as its parameter, which makes more sense than passing the address of the header within the ROM. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>