diff options
author | Minkyu Kang <mk7.kang@samsung.com> | 2010-08-13 16:07:35 +0900 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2010-08-17 11:38:19 +0900 |
commit | d93d0f0cfef46293db97cbdc5e72c9e5bceadd02 (patch) | |
tree | e764e9ac49ddf682383aecb92afe25f20f4e1643 /arch/arm/cpu/armv7/s5pc1xx/sromc.c | |
parent | 6a69e11a793130fb61cce5564dc90d83ca9861e4 (diff) | |
download | blackbird-obmc-uboot-d93d0f0cfef46293db97cbdc5e72c9e5bceadd02.tar.gz blackbird-obmc-uboot-d93d0f0cfef46293db97cbdc5e72c9e5bceadd02.zip |
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 'arch/arm/cpu/armv7/s5pc1xx/sromc.c')
-rw-r--r-- | arch/arm/cpu/armv7/s5pc1xx/sromc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/cpu/armv7/s5pc1xx/sromc.c b/arch/arm/cpu/armv7/s5pc1xx/sromc.c index 380be81be5..044d12298d 100644 --- a/arch/arm/cpu/armv7/s5pc1xx/sromc.c +++ b/arch/arm/cpu/armv7/s5pc1xx/sromc.c @@ -35,12 +35,8 @@ void s5pc1xx_config_sromc(u32 srom_bank, u32 smc_bw_conf, u32 smc_bc_conf) { u32 tmp; - struct s5pc1xx_smc *srom; - - if (cpu_is_s5pc100()) - srom = (struct s5pc1xx_smc *)S5PC100_SROMC_BASE; - else - srom = (struct s5pc1xx_smc *)S5PC110_SROMC_BASE; + struct s5pc1xx_smc *srom = + (struct s5pc1xx_smc *)samsung_get_base_sromc(); /* Configure SMC_BW register to handle proper SROMC bank */ tmp = srom->bw; |