From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/9 V9] Exynos5420: Add DDR3 initialization for 5420
Date: Thu, 05 Dec 2013 16:43:37 +0900 [thread overview]
Message-ID: <52A02EA9.8030202@samsung.com> (raw)
In-Reply-To: <CAPs=JDckyFCoP5vEucPukrYvCAroDXam3j_t-Ybhkidjn4YLLw@mail.gmail.com>
On 05/12/13 16:25, Rajeshwari Birje wrote:
> Hi Minkyu Kang,
>
> Thank you for comments.
>
> On Tue, Dec 3, 2013 at 11:45 AM, Minkyu Kang <mk7.kang@samsung.com> wrote:
>> Dear Rajeshwari S Shinde,
>>
>> On 02/12/13 20:47, Rajeshwari S Shinde wrote:
>>> This patch intends to add DDR3 initialization code for Exynos5420.
>>>
>>> Signed-off-by: Rajeshwari S Shinde <rajeshwari.s@samsung.com>
>>> Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
>>> Acked-by: Simon Glass <sjg@chromium.org>
>>> ---
>>> Changes in V2:
>>> - Corrected a compilation issue for SMDK5250.
>>> Changes in V3:
>>> - None
>>> Changes in V4:
>>> - None
>>> Changes in V5:
>>> - None
>>> Changes in V6:
>>> - None
>>> Changes in V7:
>>> - Fixed multi line comment.
>>> Changes in V8:
>>> - None
>>> Changes in V9:
>>> - Used samsung_get base to get the dmc base address
>>> arch/arm/cpu/armv7/exynos/dmc_common.c | 10 +-
>>> arch/arm/cpu/armv7/exynos/dmc_init_ddr3.c | 425 +++++++++++++++++++++++++++++-
>>> arch/arm/cpu/armv7/exynos/exynos5_setup.h | 2 +
>>> arch/arm/include/asm/arch-exynos/cpu.h | 4 +
>>> arch/arm/include/asm/arch-exynos/dmc.h | 123 ++++++---
>>> arch/arm/include/asm/arch-exynos/power.h | 6 +
>>> 6 files changed, 525 insertions(+), 45 deletions(-)
>>>
>>> diff --git a/arch/arm/cpu/armv7/exynos/exynos5_setup.h b/arch/arm/cpu/armv7/exynos/exynos5_setup.h
>>> index c8d6515..42a7fb8 100644
>>> --- a/arch/arm/cpu/armv7/exynos/exynos5_setup.h
>>> +++ b/arch/arm/cpu/armv7/exynos/exynos5_setup.h
>>> @@ -436,6 +436,7 @@
>>> */
>>> #ifndef CONFIG_SMDK5420
>>>
>>> +
>>
>> unnecessary blank line.
> will remove this
>>
>>> /* APLL_CON1 */
>>> #define APLL_CON1_VAL (0x00203800)
>>>
>>> @@ -696,6 +697,7 @@
>>> #define CLK_DIV_CPERI1_VAL NOT_AVAILABLE
>>>
>>> #else
>>> +#define PAD_RETENTION_DRAM_COREBLK_VAL 0x10000000
>>>
>>> /* APLL_CON1 */
>>> #define APLL_CON1_VAL (0x0020F300)
>>> diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h
>>> index 2b44210..2c642ba 100644
>>> --- a/arch/arm/include/asm/arch-exynos/cpu.h
>>> +++ b/arch/arm/include/asm/arch-exynos/cpu.h
>>> @@ -53,6 +53,7 @@
>>> #define EXYNOS4_AUDIOSS_BASE DEVICE_NOT_AVAILABLE
>>> #define EXYNOS4_USB_HOST_XHCI_BASE DEVICE_NOT_AVAILABLE
>>> #define EXYNOS4_USB3PHY_BASE DEVICE_NOT_AVAILABLE
>>> +#define EXYNOS4_DMC_TZASC0_BASE DEVICE_NOT_AVAILABLE
>>>
>>> /* EXYNOS4X12 */
>>> #define EXYNOS4X12_GPIO_PART3_BASE 0x03860000
>>> @@ -91,6 +92,7 @@
>>> #define EXYNOS4X12_AUDIOSS_BASE DEVICE_NOT_AVAILABLE
>>> #define EXYNOS4X12_USB_HOST_XHCI_BASE DEVICE_NOT_AVAILABLE
>>> #define EXYNOS4X12_USB3PHY_BASE DEVICE_NOT_AVAILABLE
>>> +#define EXYNOS4X12_DMC_TZASC0_BASE DEVICE_NOT_AVAILABLE
>>>
>>> /* EXYNOS5 */
>>> #define EXYNOS5_I2C_SPACING 0x10000
>>> @@ -129,6 +131,7 @@
>>>
>>> #define EXYNOS5_ADC_BASE DEVICE_NOT_AVAILABLE
>>> #define EXYNOS5_MODEM_BASE DEVICE_NOT_AVAILABLE
>>> +#define EXYNOS5_DMC_TZASC0_BASE DEVICE_NOT_AVAILABLE
>>>
>>> /* EXYNOS5420 */
>>> #define EXYNOS5420_AUDIOSS_BASE 0x03810000
>>> @@ -284,6 +287,7 @@ SAMSUNG_BASE(spi_isp, SPI_ISP_BASE)
>>> SAMSUNG_BASE(tzpc, TZPC_BASE)
>>> SAMSUNG_BASE(dmc_ctrl, DMC_CTRL_BASE)
>>> SAMSUNG_BASE(dmc_phy, DMC_PHY_BASE)
>>> +SAMSUNG_BASE(dmc_tzasc0, DMC_TZASC0_BASE)
>>
>> then do we need to define two base addresses for TZASC?
>> you never use TZASC1.
> Acessing base address for TZASC1 in following manner. Hence added only
> SAMSUNG_BASE(dmc_tzasc0, DMC_TZASC0_BASE)
> "tzasc1 = (struct exynos5_tzasc *)(samsung_get_base_dmc_tzasc0()
> + DMC_OFFSET);"
Yes, so my suggestion is defining TZASC only.
#define EXYNOS5420_DMC_TZASC_BASE 0x10D40000
SAMSUNG_BASE(dmc_tzasc, DMC_TZASC_BASE)
>>
>>> SAMSUNG_BASE(audio_ass, AUDIOSS_BASE)
>>> #endif
>>>
Thanks,
Minkyu Kang.
next prev parent reply other threads:[~2013-12-05 7:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-02 11:47 [U-Boot] [PATCH 0/9 V9] EXYNOS5420: Add SMDK5420 board support Rajeshwari S Shinde
2013-12-02 11:47 ` [U-Boot] [PATCH 1/9 V9] EXYNOS5: Create a common board file Rajeshwari S Shinde
2013-12-03 6:14 ` Minkyu Kang
2013-12-02 11:47 ` [U-Boot] [PATCH 2/9 V9] Exynos5420: Add base addresses for 5420 Rajeshwari S Shinde
2013-12-02 11:47 ` [U-Boot] [PATCH 3/9 V9] Exynos5420: Add clock initialization " Rajeshwari S Shinde
2013-12-03 6:14 ` Minkyu Kang
2013-12-02 11:47 ` [U-Boot] [PATCH 4/9 V9] Exynos5420: Add DDR3 " Rajeshwari S Shinde
[not found] ` <529D76A9.1@samsung.com>
2013-12-03 6:15 ` Minkyu Kang
2013-12-05 7:25 ` Rajeshwari Birje
2013-12-05 7:43 ` Minkyu Kang [this message]
2013-12-09 8:11 ` Rajeshwari Birje
2013-12-02 11:47 ` [U-Boot] [PATCH 5/9 V9] Exynos5420: Add support for 5420 in pinmux and gpio Rajeshwari S Shinde
2013-12-02 11:47 ` [U-Boot] [PATCH 6/9 V9] Exynos5420: Add base patch for SMDK5420 Rajeshwari S Shinde
2013-12-02 11:47 ` [U-Boot] [PATCH 7/9 V9] DTS: Add dts support " Rajeshwari S Shinde
2013-12-02 11:47 ` [U-Boot] [PATCH 8/9 V9] Config: Add initial config " Rajeshwari S Shinde
2013-12-02 11:47 ` [U-Boot] [PATCH 9/9 V9] SPL: EXYNOS: Prepare for variable size SPL support Rajeshwari S Shinde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52A02EA9.8030202@samsung.com \
--to=mk7.kang@samsung.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.