Re: [PATCH v2 09/18] spl: Drop bd_info in the data section

2020-12-28 Thread Simon Glass
This uses up space in the SPL binary but it always starts as zero. Also some boards cannot support data in TPL (e.g. Intel Apollo Lake). Use malloc() to allocate this structure instead, by moving the init a little later, after malloc() is inited. Make this function optional since it pulls in mallo

[PATCH v2 09/18] spl: Drop bd_info in the data section

2020-12-22 Thread Simon Glass
This uses up space in the SPL binary but it always starts as zero. Also some boards cannot support data in TPL (e.g. Intel Apollo Lake). Use malloc() to allocate this structure instead, by moving the init a little later, after malloc() is inited. Make this function optional since it pulls in mallo