mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Wadim Egorov <w.egorov@phytec.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/4] PCM051: Update RAM timings
Date: Mon, 12 May 2014 14:24:19 +0200	[thread overview]
Message-ID: <1399897462-21433-1-git-send-email-w.egorov@phytec.de> (raw)

From: Teresa Gámez <t.gamez@phytec.de>

Updated timings for new MT41J256M16HA15EIT RAM.
Timings are backward compatible to the MT41J256M8HX15E RAMs

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
 arch/arm/boards/phytec-phycore-am335x/lowlevel.c |   28 ++++++++++-----------
 1 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/arch/arm/boards/phytec-phycore-am335x/lowlevel.c b/arch/arm/boards/phytec-phycore-am335x/lowlevel.c
index f04961d..2badcc1 100644
--- a/arch/arm/boards/phytec-phycore-am335x/lowlevel.c
+++ b/arch/arm/boards/phytec-phycore-am335x/lowlevel.c
@@ -15,7 +15,7 @@
 #include <mach/wdt.h>
 #include <debug_ll.h>
 
-static const struct am33xx_cmd_control MT41J256M8HX15E_2x256M8_cmd = {
+static const struct am33xx_cmd_control MT41J256M16HA15EIT_1x512MB_cmd = {
 	.slave_ratio0 = 0x40,
 	.dll_lock_diff0 = 0x0,
 	.invert_clkout0 = 0x1,
@@ -27,23 +27,21 @@ static const struct am33xx_cmd_control MT41J256M8HX15E_2x256M8_cmd = {
 	.invert_clkout2 = 0x1,
 };
 
-static const struct am33xx_emif_regs MT41J256M8HX15E_2x256M8_regs = {
+static const struct am33xx_emif_regs MT41J256M16HA15EIT_1x512MB_regs = {
 	.emif_read_latency	= 0x6,
-	.emif_tim1		= 0x0668A39B,
-	.emif_tim2		= 0x26337FDA,
-	.emif_tim3		= 0x501F830F,
-	.sdram_config		= 0x61C04832,
+	.emif_tim1		= 0x0888A39B,
+	.emif_tim2		= 0x26517FDA,
+	.emif_tim3		= 0x501F84EF,
+	.sdram_config		= 0x61C04B32,
 	.zq_config		= 0x50074BE4,
 	.sdram_ref_ctrl		= 0x0000093B,
 };
 
-static const struct am33xx_ddr_data MT41J256M8HX15E_2x256M8_data = {
+static const struct am33xx_ddr_data MT41J256M16HA15EIT_1x512MB_data = {
 	.rd_slave_ratio0	= 0x3B,
-	.wr_dqs_slave_ratio0	= 0x85,
-	.fifo_we_slave_ratio0	= 0x100,
-	.wr_slave_ratio0	= 0xC1,
-	.use_rank0_delay	= 0x01,
-	.dll_lock_diff0		= 0x0,
+	.wr_dqs_slave_ratio0	= 0x3B,
+	.fifo_we_slave_ratio0	= 0x96,
+	.wr_slave_ratio0	= 0x76,
 };
 
 extern char __dtb_am335x_phytec_phycore_start[];
@@ -72,9 +70,9 @@ static noinline void pcm051_board_init(void)
 
 	am33xx_pll_init(MPUPLL_M_600, 25, DDRPLL_M_303);
 
-	am335x_sdram_init(0x18B, &MT41J256M8HX15E_2x256M8_cmd,
-			&MT41J256M8HX15E_2x256M8_regs,
-			&MT41J256M8HX15E_2x256M8_data);
+	am335x_sdram_init(0x18B, &MT41J256M16HA15EIT_1x512MB_cmd,
+			&MT41J256M16HA15EIT_1x512MB_regs,
+			&MT41J256M16HA15EIT_1x512MB_data);
 
 	am33xx_uart0_soft_reset();
 	am33xx_enable_uart0_pin_mux();
-- 
1.7.0.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2014-05-12 12:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12 12:24 Wadim Egorov [this message]
2014-05-12 12:24 ` [PATCH 2/4] barebox: common: added new filetypes Wadim Egorov
2014-05-12 12:24 ` [PATCH 3/4] ARM: omap: barebox update nand xloadslots handler Wadim Egorov
2014-05-13  8:38   ` Sascha Hauer
2014-05-13  9:46   ` Alexander Aring
2014-05-12 12:24 ` [PATCH 4/4] phycore-am335x: Added bbu " Wadim Egorov
2014-05-12 14:13   ` Holger Schurig
2014-05-14  7:21 ` [PATCH 1/4] PCM051: Update RAM timings Sascha Hauer

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=1399897462-21433-1-git-send-email-w.egorov@phytec.de \
    --to=w.egorov@phytec.de \
    --cc=barebox@lists.infradead.org \
    /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