fix(rpi3): initialize SD card host controllerAdd initial configuration parameters for Rasperry Pi 3's sdhostcontroller, and then configure and use those parameters.This change allows warm reboot
fix(rpi3): initialize SD card host controllerAdd initial configuration parameters for Rasperry Pi 3's sdhostcontroller, and then configure and use those parameters.This change allows warm reboots of UEFI on Raspberry Pi 3B+ whereexisting code often fails with "unknown error". See discussion at:https://github.com/pftf/RPi3/issues/24The basic idea is that some initial configuration parameters(clock rate, bus width) aren't configured into the hardware beforecommands start being sent. I suspect that the particular settingthat matters is the "slow card" bit, but the initial clock settingalso seemed wrong to me.Change-Id: I526def340def143f23f3422f1fc14c12c937ca7fSigned-off-by: Rob Newberry <robthedude@mac.com>
show more ...
rpi3: sdhost: SDHost driver improvementThis commit improves the SDHost driver for RPi3 as following: * Unblock MMC_CMD(17). Using MMC_CMD(17) is more efficient on block reading. * In some low
rpi3: sdhost: SDHost driver improvementThis commit improves the SDHost driver for RPi3 as following: * Unblock MMC_CMD(17). Using MMC_CMD(17) is more efficient on block reading. * In some low probability that SEND_OP_COND might results CRC7 error. We can consider that the command runs correctly. We don't need to retry this command so removing the code for retry. * Using MMC_BUS_WIDTH_1 as MMC default value to improve the stability. * Increase the clock to 50Mhz in data mode to speed up the io. * Change the pull resistors configuration to gain more stability.Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
rpi3: Add SDHost driverThis commit adds SDHost driver for RaspberryPi3. SDHost driver uses theGPIO driver to connect the SDCard and SDHost. By using this driver it isable to read/write raw blocks
rpi3: Add SDHost driverThis commit adds SDHost driver for RaspberryPi3. SDHost driver uses theGPIO driver to connect the SDCard and SDHost. By using this driver it isable to read/write raw blocks on SDCard.Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>