]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: tegra2: Implement card-detect hook.
authorThierry Reding <thierry.reding@avionic-design.de>
Mon, 2 Jan 2012 01:15:39 +0000 (01:15 +0000)
committerAndy Fleming <afleming@freescale.com>
Mon, 9 Jan 2012 03:28:28 +0000 (21:28 -0600)
commitbf83662ba3a8586e52d3cfee1d82d5e06b61eefc
tree52f4541d6dae623210ec3232d5b69a7b6027cc6d
parentd48d2e21d4cec0f1ae70287a6d32413d3262675c
mmc: tegra2: Implement card-detect hook.

On Tegra2, card-detection is implemented by passing the card-detection
GPIOs to the MMC driver at initialization time. Instead of implementing
the board_mmc_getcd() function, use the card-detect hook and allow
boards to override it by providing their own board_mmc_getcd()
implementation.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/mmc/tegra2_mmc.c