commit | 9dc2355e515d2026b40da3beab5b9ebaef854c4c | [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 | a2c528fe8a2187abf444627f964b5b727bf5fd2b [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>