summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2010-08-13 16:07:35 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2010-08-17 11:38:19 +0900
commitd93d0f0cfef46293db97cbdc5e72c9e5bceadd02 (patch)
treee764e9ac49ddf682383aecb92afe25f20f4e1643 /drivers/mmc
parent6a69e11a793130fb61cce5564dc90d83ca9861e4 (diff)
downloadu-boot-imx-d93d0f0cfef46293db97cbdc5e72c9e5bceadd02.zip
u-boot-imx-d93d0f0cfef46293db97cbdc5e72c9e5bceadd02.tar.gz
u-boot-imx-d93d0f0cfef46293db97cbdc5e72c9e5bceadd02.tar.bz2
S5P: Use accessor functions instead of SoC specific defines to access the base address
This patch is intended to prepare the other S5P SoC. (s5pc210) If use SoC specific defines then can't share with other SoC. So, make the accessor functions for access the base address by common way. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/s5p_mmc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mmc/s5p_mmc.c b/drivers/mmc/s5p_mmc.c
index 872f0bb..1fd425c 100644
--- a/drivers/mmc/s5p_mmc.c
+++ b/drivers/mmc/s5p_mmc.c
@@ -30,11 +30,7 @@ struct mmc_host mmc_host[4];
static inline struct s5p_mmc *s5p_get_base_mmc(int dev_index)
{
unsigned long offset = dev_index * sizeof(struct s5p_mmc);
-
- if (cpu_is_s5pc100())
- return (struct s5p_mmc *)(S5PC100_MMC_BASE + offset);
- else
- return (struct s5p_mmc *)(S5PC110_MMC_BASE + offset);
+ return (struct s5p_mmc *)(samsung_get_base_mmc() + offset);
}
static void mmc_prepare_data(struct mmc_host *host, struct mmc_data *data)