• Chen-Yu Tsai's avatar
    mmc: sunxi: Support 8 bit eMMC DDR transfer modes · 2a7aa63a
    Chen-Yu Tsai authored
    Allwinner's MMC controller needs to run at double the card clock rate
    for 8 bit DDR transfer modes. Interestingly, this is not needed for
    4 bit DDR transfers.
    
    Different clock delays are needed for 8 bit eMMC DDR, due to the
    increased module clock rate. For the A80 though, the same values for
    4 bit and 8 bit are shared. The new values for the other SoCs were from
    A83T user manual's "new timing mode" default values, which describes
    them in clock phase, rather than delay periods. These values were used
    without any modification. They may not be correct, but they work.
    Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
    Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
    Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    2a7aa63a
sunxi-mmc.c 32.8 KB