This hack was tweaked until the MMC/SD controller in the SoC was happy with it. Other controllers may differ. In any case will you need the ability to switch CMD and CLK to GPIOs (without disabling the entire MMC controller) and to bit-bang them at a reasonable speed (at least a few MHz).
So it's quite platform-dependent in its current shape, but you can probably apply the same principles with other SoCs as well.
"Old age and treachery will beat youth and skill every time." -- a coffee cup