mmc: t210: Add autocal and tap/trim updates for SDMMC1/3
authorTom Warren <twarren@nvidia.com>
Wed, 29 May 2019 16:30:01 +0000 (09:30 -0700)
committerTom Warren <twarren@nvidia.com>
Thu, 2 Apr 2020 21:30:01 +0000 (14:30 -0700)
commit5e965e814067e7539943bbaeb47d7bf9738a701b
treeffea3021ca7f4c6664b8cbbb9f48c2f92143c01b
parent224595abaae918a64fba2625553e51a482ead084
mmc: t210: Add autocal and tap/trim updates for SDMMC1/3

As per the T210 TRM, when running at 3.3v, the SDMMC1 tap/trim and
autocal values need to be set to condition the signals correctly before
talking to the SD-card. This is the same as what's being done in CBoot,
but it gets reset when the SDMMC1 HW is soft-reset during SD driver
init, so needs to be repeated here. Also set autocal and tap/trim for
SDMMC3, although no T210 boards use it for SD-card at this time.

Signed-off-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/arm/include/asm/arch-tegra/tegra_mmc.h
drivers/mmc/tegra_mmc.c