Re: [PATCH 07/13] cbfs: Unify the two header loaders

2020-05-20 Thread Bin Meng
Hi Simon, On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > 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

[PATCH 07/13] cbfs: Unify the two header loaders

2020-05-13 Thread Simon Glass
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 addre