]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: modify DATA register offset
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 17 Oct 2011 10:36:23 +0000 (19:36 +0900)
committerChris Ball <cjb@laptop.org>
Wed, 26 Oct 2011 20:32:25 +0000 (16:32 -0400)
commitf9f22d0f7a87143809c05856df19d52402cb4edc
tree64b60adcedd341a02a8f150ce7257e2b0eb40e0c
parentad27f5de18e9da59ac30d60bb6128f34d39cc80e
mmc: dw_mmc: modify DATA register offset

In dw_mmc 2.40a spec, Data register's offset is changed.
Before we used Data register offset 0x100. but if somebody uses a
2.40a controller, we must use 0x200 for Data register.

This patch adds a version-id checking point and uses SDMMC_DATA(x)
instead of SDMMC_DATA.  It assumes 2.40a is the latest version.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c
drivers/mmc/host/dw_mmc.h
include/linux/mmc/dw_mmc.h