* [U-Boot] [PATCH 1/2] mx6sabresd: Fix SPL memory description
@ 2015-04-17 1:11 Fabio Estevam
2015-04-17 1:11 ` [U-Boot] [PATCH 2/2] mx6sabresd: Remove uneeded ifdef Fabio Estevam
2015-04-22 12:57 ` [U-Boot] [PATCH 1/2] mx6sabresd: Fix SPL memory description Stefano Babic
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2015-04-17 1:11 UTC (permalink / raw)
To: u-boot
From: Fabio Estevam <fabio.estevam@freescale.com>
mx6sabresd has four MT41K128M16JT-125 chips. Each memory has 16-bit bus
and 2GiB, so fix the width and density fields accordingly.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
board/freescale/mx6sabresd/mx6sabresd.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index bb2dd96..a4f3a94 100644
--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -753,10 +753,11 @@ const struct mx6_mmdc_calibration mx6_mmcd_calib = {
.p1_mpwrdlctl = 0x48254A36,
};
+/* MT41K128M16JT-125 */
static struct mx6_ddr3_cfg mem_ddr = {
.mem_speed = 1600,
- .density = 4,
- .width = 64,
+ .density = 2,
+ .width = 16,
.banks = 8,
.rowaddr = 14,
.coladdr = 10,
@@ -798,7 +799,7 @@ static void spl_dram_init(void)
{
struct mx6_ddr_sysinfo sysinfo = {
/* width of data bus:0=16,1=32,2=64 */
- .dsize = mem_ddr.width/32,
+ .dsize = 2,
/* config for full 4GB range so that get_mem_size() works */
.cs_density = 32, /* 32Gb per CS */
/* single chip select */
@@ -818,7 +819,7 @@ static void spl_dram_init(void)
.rst_to_cke = 0x23, /* 33 cycles, 500us (JEDEC default) */
};
- mx6dq_dram_iocfg(mem_ddr.width, &mx6_ddr_ioregs, &mx6_grp_ioregs);
+ mx6dq_dram_iocfg(64, &mx6_ddr_ioregs, &mx6_grp_ioregs);
mx6_dram_cfg(&sysinfo, &mx6_mmcd_calib, &mem_ddr);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH 2/2] mx6sabresd: Remove uneeded ifdef
2015-04-17 1:11 [U-Boot] [PATCH 1/2] mx6sabresd: Fix SPL memory description Fabio Estevam
@ 2015-04-17 1:11 ` Fabio Estevam
2015-04-22 12:57 ` Stefano Babic
2015-04-22 12:57 ` [U-Boot] [PATCH 1/2] mx6sabresd: Fix SPL memory description Stefano Babic
1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2015-04-17 1:11 UTC (permalink / raw)
To: u-boot
From: Fabio Estevam <fabio.estevam@freescale.com>
RTT_NOM_120OHM is not defined, so remove its ifdef.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
board/freescale/mx6sabresd/mx6sabresd.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index a4f3a94..23f8f6b 100644
--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -806,11 +806,7 @@ static void spl_dram_init(void)
.ncs = 1,
.cs1_mirror = 0,
.rtt_wr = 1 /*DDR3_RTT_60_OHM*/, /* RTT_Wr = RZQ/4 */
-#ifdef RTT_NOM_120OHM
- .rtt_nom = 2 /*DDR3_RTT_120_OHM*/, /* RTT_Nom = RZQ/2 */
-#else
.rtt_nom = 1 /*DDR3_RTT_60_OHM*/, /* RTT_Nom = RZQ/4 */
-#endif
.walat = 1, /* Write additional latency */
.ralat = 5, /* Read additional latency */
.mif3_mode = 3, /* Command prediction working mode */
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH 1/2] mx6sabresd: Fix SPL memory description
2015-04-17 1:11 [U-Boot] [PATCH 1/2] mx6sabresd: Fix SPL memory description Fabio Estevam
2015-04-17 1:11 ` [U-Boot] [PATCH 2/2] mx6sabresd: Remove uneeded ifdef Fabio Estevam
@ 2015-04-22 12:57 ` Stefano Babic
1 sibling, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2015-04-22 12:57 UTC (permalink / raw)
To: u-boot
On 17/04/2015 03:11, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> mx6sabresd has four MT41K128M16JT-125 chips. Each memory has 16-bit bus
> and 2GiB, so fix the width and density fields accordingly.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH 2/2] mx6sabresd: Remove uneeded ifdef
2015-04-17 1:11 ` [U-Boot] [PATCH 2/2] mx6sabresd: Remove uneeded ifdef Fabio Estevam
@ 2015-04-22 12:57 ` Stefano Babic
0 siblings, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2015-04-22 12:57 UTC (permalink / raw)
To: u-boot
On 17/04/2015 03:11, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> RTT_NOM_120OHM is not defined, so remove its ifdef.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-22 12:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-17 1:11 [U-Boot] [PATCH 1/2] mx6sabresd: Fix SPL memory description Fabio Estevam
2015-04-17 1:11 ` [U-Boot] [PATCH 2/2] mx6sabresd: Remove uneeded ifdef Fabio Estevam
2015-04-22 12:57 ` Stefano Babic
2015-04-22 12:57 ` [U-Boot] [PATCH 1/2] mx6sabresd: Fix SPL memory description Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox