Use explicit error checking instead of asserts, use SOC_LOG to print error/warning messages where needed.
Works for 3.3V eMMC in 4 line mode. Not implemented: - DDR mode for SD cards (UHS-I) also need voltage to be switched to 1.8V. - 8-line DDR mode for eMMC to be implemented later.