diff options
author | Akshay Saraswat <akshay.s@samsung.com> | 2014-05-26 19:17:03 +0530 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-06-13 17:05:13 +0900 |
commit | cfde7588d8ad22560e2328574a4f415642170b92 (patch) | |
tree | 3504329bb93b40be89ff1640fb05f86813700da3 /arch/arm/cpu/armv7/exynos/dmc_init_ddr3.c | |
parent | 7922a2d479b6cdce853b853b80d94675b955a66a (diff) | |
download | u-boot-imx-cfde7588d8ad22560e2328574a4f415642170b92.zip u-boot-imx-cfde7588d8ad22560e2328574a4f415642170b92.tar.gz u-boot-imx-cfde7588d8ad22560e2328574a4f415642170b92.tar.bz2 |
Exynos5: DMC: Modify the definition of ddr3_mem_ctrl_init
Passing fewer arguments is better and mem_iv_size is never
used. Let's keep only one argument and make it cleaner.
Signed-off-by: Hatim Ali <hatim.rv@samsung.com>
Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch/arm/cpu/armv7/exynos/dmc_init_ddr3.c')
-rw-r--r-- | arch/arm/cpu/armv7/exynos/dmc_init_ddr3.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/cpu/armv7/exynos/dmc_init_ddr3.c b/arch/arm/cpu/armv7/exynos/dmc_init_ddr3.c index 487e6f4..4481ab4 100644 --- a/arch/arm/cpu/armv7/exynos/dmc_init_ddr3.c +++ b/arch/arm/cpu/armv7/exynos/dmc_init_ddr3.c @@ -28,8 +28,7 @@ static void reset_phy_ctrl(void) writel(DDR3PHY_CTRL_PHY_RESET, &clk->lpddr3phy_ctrl); } -int ddr3_mem_ctrl_init(struct mem_timings *mem, unsigned long mem_iv_size, - int reset) +int ddr3_mem_ctrl_init(struct mem_timings *mem, int reset) { unsigned int val; struct exynos5_phy_control *phy0_ctrl, *phy1_ctrl; @@ -221,8 +220,7 @@ int ddr3_mem_ctrl_init(struct mem_timings *mem, unsigned long mem_iv_size, #endif #ifdef CONFIG_EXYNOS5420 -int ddr3_mem_ctrl_init(struct mem_timings *mem, unsigned long mem_iv_size, - int reset) +int ddr3_mem_ctrl_init(struct mem_timings *mem, int reset) { struct exynos5420_clock *clk = (struct exynos5420_clock *)samsung_get_base_clock(); @@ -244,7 +242,6 @@ int ddr3_mem_ctrl_init(struct mem_timings *mem, unsigned long mem_iv_size, tzasc0 = (struct exynos5420_tzasc *)samsung_get_base_dmc_tzasc(); tzasc1 = (struct exynos5420_tzasc *)(samsung_get_base_dmc_tzasc() + DMC_OFFSET); - /* Enable PAUSE for DREX */ setbits_le32(&clk->pause, ENABLE_BIT); |