Add HS200 support
I have 32GB and 64GB Foresee eMMC cards that need HS200 support in U-Boot to be bootable. Here's a log of what I get with 2020.04-1 version:
U-Boot TPL 2020.04-1 (May 22 2020 - 11:40:18)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...
U-Boot SPL 2020.04-1 (May 22 2020 - 11:40:18 +0000)
Trying to boot from MMC2
unable to select a mode
spl: mmc init failed with error: -524
Trying to boot from MMC1
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MMC2
unable to select a mode
spl: mmc init failed with error: -524
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
Adding HS200 support with CONFIG_MMC_HS200_SUPPORT=y
and CONFIG_SPL_MMC_HS200_SUPPORT=y
in config fixes it. I've added those by appending them to .config in build()
of my own PKGBUILD (see attached). Is that ok or should I make a patch that modifies rockpro64-rk3399_defconfig in U-Boot sources?