Port some upstream fixes from U-Boot master
Done with the fromupstream.py script.
Build tested for all variants and did the following:
- Boot tested AM62P
- Tested snagrecover on AM62P
- Tested flashing AM62P with the new bootloaders
Bug: TIAU-511
Edited by Mattijs Korpershoek