From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/5 v2] OMAP3: Fix SDRC init
Date: Mon, 19 Oct 2009 16:55:36 +0200 [thread overview]
Message-ID: <4ADC7DE8.9060303@googlemail.com> (raw)
In-Reply-To: <5e088bd90910190753gd7c93e0wa11667fff5136df0@mail.gmail.com>
Steve Sakoman wrote:
> On Tue, Oct 6, 2009 at 7:17 PM, Nishanth Menon <nm@ti.com> wrote:
>> Defaults are for Infineon DDR timings.
>> Since none of the supported boards currently do
>> XIP boot, these seem to be faulty. fix the values
>> as per the calculations(ACTIMA,B), conf
>> the sdrc power with pwdnen and wakeupproc bits
>>
>> Signed-off-by: Nishanth Menon <nm@ti.com>
>> Cc: David B <david-b@pacbell.net>
>> Cc: Vikram Pandita <vikram.pandita@ti.com>
>> Cc: Richard Woodruff <r-woodruff2@ti.com>
>> Cc: Sandeep Paulraj <s-paulraj@ti.com>
>> Cc: Tom Rix <tom.rix@windriver.com>
>> Cc: Dirk Behme <dirk.behme@googlemail.com>
>> ---
>> cpu/arm_cortexa8/omap3/mem.c | 3 ++-
>> include/asm-arm/arch-omap3/cpu.h | 1 +
>> include/asm-arm/arch-omap3/mem.h | 8 ++++----
>> 3 files changed, 7 insertions(+), 5 deletions(-)
>>
>> diff --git a/cpu/arm_cortexa8/omap3/mem.c b/cpu/arm_cortexa8/omap3/mem.c
>> index 079c848..8731c9d 100644
>> --- a/cpu/arm_cortexa8/omap3/mem.c
>> +++ b/cpu/arm_cortexa8/omap3/mem.c
>> @@ -164,7 +164,8 @@ void do_sdrc_init(u32 cs, u32 early)
>> writel(SDP_SDRC_SHARING, &sdrc_base->sharing);
>>
>> /* Disable Power Down of CKE cuz of 1 CKE on combo part */
>> - writel(SRFRONRESET | PAGEPOLICY_HIGH, &sdrc_base->power);
>> + writel(WAKEUPPROC | PWDNEN | SRFRONRESET | PAGEPOLICY_HIGH,
>> + &sdrc_base->power);
>>
>> writel(ENADLL | DLLPHASE_90, &sdrc_base->dlla_ctrl);
>> sdelay(0x20000);
>> diff --git a/include/asm-arm/arch-omap3/cpu.h b/include/asm-arm/arch-omap3/cpu.h
>> index 8ab2e39..e51c4f3 100644
>> --- a/include/asm-arm/arch-omap3/cpu.h
>> +++ b/include/asm-arm/arch-omap3/cpu.h
>> @@ -222,6 +222,7 @@ struct sdrc {
>>
>> #define PAGEPOLICY_HIGH (0x1 << 0)
>> #define SRFRONRESET (0x1 << 7)
>> +#define PWDNEN (0x1 << 2)
>> #define WAKEUPPROC (0x1 << 26)
>>
>> #define DDR_SDRAM (0x1 << 0)
>> diff --git a/include/asm-arm/arch-omap3/mem.h b/include/asm-arm/arch-omap3/mem.h
>> index 5b9ac75..31cbdef 100644
>> --- a/include/asm-arm/arch-omap3/mem.h
>> +++ b/include/asm-arm/arch-omap3/mem.h
>> @@ -78,16 +78,16 @@ enum {
>> #define TRP_165 3
>> #define TRAS_165 7
>> #define TRC_165 10
>> -#define TRFC_165 21
>> +#define TRFC_165 12
>> #define V_ACTIMA_165 ((TRFC_165 << 27) | (TRC_165 << 22) | \
>> (TRAS_165 << 18) | (TRP_165 << 15) | \
>> (TRCD_165 << 12) | (TRRD_165 << 9) | \
>> (TDPL_165 << 6) | (TDAL_165))
>>
>> #define TWTR_165 1
>> -#define TCKE_165 1
>> -#define TXP_165 5
>> -#define XSR_165 23
>> +#define TCKE_165 2
>> +#define TXP_165 2
>> +#define XSR_165 20
>> #define V_ACTIMB_165 (((TCKE_165 << 12) | (XSR_165 << 0)) | \
>> (TXP_165 << 8) | (TWTR_165 << 16))
>>
>> --
>> 1.6.0.4
>
> I see issues after applying this patch (Overo/Beagle).
>
> In about half of my boot attempts I get a hang after Uncompressing Linux....
>
> In the other half I get many many errors of this type:
>
> SLAB: cache with size 192 has lost its name
>
> Reverting the patch restores normal operation.
What's about removing it from recent ARM pull request than and do some
further testing?
Thanks for testing
Dirk
next prev parent reply other threads:[~2009-10-19 14:55 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 2:17 [U-Boot] [PATCH 0/5 v2] ARM:OMAP3:SDP3430 initial support Nishanth Menon
2009-10-07 2:17 ` [U-Boot] [PATCH 1/5 v2] OMAP3: Fix SDRC init Nishanth Menon
2009-10-07 2:17 ` [U-Boot] [PATCH 2/5] OMAP3: export enable_gpmc_cs_config to board files Nishanth Menon
2009-10-07 2:17 ` [U-Boot] [PATCH 3/5] OMAP3: make gpmc_config as const Nishanth Menon
2009-10-07 2:17 ` [U-Boot] [PATCH 4/5] OMAP3: fix warnings when NAND/ONENAND is not used Nishanth Menon
2009-10-07 2:17 ` [U-Boot] [PATCH 5/5 v2] ARM:OMAP3:SDP3430: initial support Nishanth Menon
2009-10-10 19:20 ` [U-Boot] [PATCH 4/5] OMAP3: fix warnings when NAND/ONENAND is not used Paulraj, Sandeep
2009-10-10 19:29 ` [U-Boot] [PATCH 3/5] OMAP3: make gpmc_config as const Paulraj, Sandeep
2009-10-11 7:54 ` Dirk Behme
2009-10-11 12:22 ` Paulraj, Sandeep
2009-10-11 14:35 ` Nishanth Menon
2009-10-11 14:48 ` Paulraj, Sandeep
2009-10-11 15:01 ` Nishanth Menon
2009-10-10 19:18 ` [U-Boot] [PATCH 2/5] OMAP3: export enable_gpmc_cs_config to board files Paulraj, Sandeep
2009-10-10 19:24 ` [U-Boot] [PATCH 1/5 v2] OMAP3: Fix SDRC init Paulraj, Sandeep
2009-10-19 14:53 ` Steve Sakoman
2009-10-19 14:55 ` Dirk Behme [this message]
2009-10-19 15:06 ` Steve Sakoman
2009-10-20 2:19 ` [U-Boot] OMAP3 DDR Fix patches (was Re: [PATCH 1/5 v2] OMAP3: Fix SDRC init) Nishanth Menon
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=4ADC7DE8.9060303@googlemail.com \
--to=dirk.behme@googlemail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox