* [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"
@ 2016-08-12 17:12 Breno Lima
2016-08-12 18:27 ` Otavio Salvador
0 siblings, 1 reply; 8+ messages in thread
From: Breno Lima @ 2016-08-12 17:12 UTC (permalink / raw)
To: u-boot
Commit a13d3757f7df25d0 "warp: Use imx_ddr_size() for calculating the DDR size"
causes breakage on warp board.
U-boot gets stuck in the DRAM line. It's necessary to revert this patch until
a better solution is found, otherwise it's not possible to use the board.
This reverts commit a13d3757f7df25d0f017e85551b899d598ad1bdb.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
---
board/warp/warp.c | 2 +-
include/configs/warp.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/warp/warp.c b/board/warp/warp.c
index 0bc0a6a..49dfdb6 100644
--- a/board/warp/warp.c
+++ b/board/warp/warp.c
@@ -46,7 +46,7 @@ DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
{
- gd->ram_size = imx_ddr_size();
+ gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
return 0;
}
diff --git a/include/configs/warp.h b/include/configs/warp.h
index 12c7c38..4a8e270 100644
--- a/include/configs/warp.h
+++ b/include/configs/warp.h
@@ -43,6 +43,7 @@
/* Physical Memory Map */
#define CONFIG_NR_DRAM_BANKS 1
#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
+#define PHYS_SDRAM_SIZE SZ_512M
#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"
2016-08-12 17:12 [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size" Breno Lima
@ 2016-08-12 18:27 ` Otavio Salvador
2016-08-12 19:38 ` Fabio Estevam
0 siblings, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2016-08-12 18:27 UTC (permalink / raw)
To: u-boot
On Fri, Aug 12, 2016 at 2:12 PM, Breno Lima <breno.lima@nxp.com> wrote:
> Commit a13d3757f7df25d0 "warp: Use imx_ddr_size() for calculating the DDR size"
> causes breakage on warp board.
>
> U-boot gets stuck in the DRAM line. It's necessary to revert this patch until
> a better solution is found, otherwise it's not possible to use the board.
>
> This reverts commit a13d3757f7df25d0f017e85551b899d598ad1bdb.
>
> Signed-off-by: Breno Lima <breno.lima@nxp.com>
Why is this happening? I am fine in reverting this but we need to fix
the detection. Is it due memory callibration problems?
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"
2016-08-12 18:27 ` Otavio Salvador
@ 2016-08-12 19:38 ` Fabio Estevam
2016-08-12 19:40 ` Fabio Estevam
2016-08-12 21:07 ` Stefano Babic
0 siblings, 2 replies; 8+ messages in thread
From: Fabio Estevam @ 2016-08-12 19:38 UTC (permalink / raw)
To: u-boot
Hi Otavio,
On Fri, Aug 12, 2016 at 3:27 PM, Otavio Salvador
<otavio.salvador@ossystems.com.br> wrote:
> Why is this happening? I am fine in reverting this but we need to fix
> the detection. Is it due memory callibration problems?
The problem here is that warp uses the DDR initialization from mx6sl-evk.
From configs/mx6slevk_defconfig:
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6slevk/imximage.cfg,MX6SL"
The usage of imx_ddr_size() revealed that the DDR size is not being
programmed correctly for the warp board.
The proper way to fix this is to create a board/warp/imximage.cfg file
with the DDR configuration done specifically for this board.
Then imx_ddr_size() should work without issues for warp.
Until this is done, better go with the revert patch for now:
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"
2016-08-12 19:38 ` Fabio Estevam
@ 2016-08-12 19:40 ` Fabio Estevam
2016-08-12 21:07 ` Stefano Babic
1 sibling, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2016-08-12 19:40 UTC (permalink / raw)
To: u-boot
On Fri, Aug 12, 2016 at 4:38 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi Otavio,
>
> On Fri, Aug 12, 2016 at 3:27 PM, Otavio Salvador
> <otavio.salvador@ossystems.com.br> wrote:
>
>> Why is this happening? I am fine in reverting this but we need to fix
>> the detection. Is it due memory callibration problems?
>
> The problem here is that warp uses the DDR initialization from mx6sl-evk.
>
> From configs/mx6slevk_defconfig:
Here I meant configs/warp_defconfig instead.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"
2016-08-12 19:38 ` Fabio Estevam
2016-08-12 19:40 ` Fabio Estevam
@ 2016-08-12 21:07 ` Stefano Babic
2016-08-12 21:17 ` Otavio Salvador
2016-08-13 0:49 ` Fabio Estevam
1 sibling, 2 replies; 8+ messages in thread
From: Stefano Babic @ 2016-08-12 21:07 UTC (permalink / raw)
To: u-boot
Hi Fabio,
On 12/08/2016 21:38, Fabio Estevam wrote:
> Hi Otavio,
>
> On Fri, Aug 12, 2016 at 3:27 PM, Otavio Salvador
> <otavio.salvador@ossystems.com.br> wrote:
>
>> Why is this happening? I am fine in reverting this but we need to fix
>> the detection. Is it due memory callibration problems?
>
> The problem here is that warp uses the DDR initialization from mx6sl-evk.
>
> From configs/mx6slevk_defconfig:
> CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6slevk/imximage.cfg,MX6SL"
>
> The usage of imx_ddr_size() revealed that the DDR size is not being
> programmed correctly for the warp board.
>
That means that reverting just hides the problem.
> The proper way to fix this is to create a board/warp/imximage.cfg file
> with the DDR configuration done specifically for this board.
>
> Then imx_ddr_size() should work without issues for warp.
>
> Until this is done, better go with the revert patch for now:
>
> Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
Let's say: if there won't be any fix before the release, it is ok to
revert this.
Regards,
Stefano
--
=====================================================================
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] 8+ messages in thread
* [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"
2016-08-12 21:07 ` Stefano Babic
@ 2016-08-12 21:17 ` Otavio Salvador
2016-08-13 0:49 ` Fabio Estevam
1 sibling, 0 replies; 8+ messages in thread
From: Otavio Salvador @ 2016-08-12 21:17 UTC (permalink / raw)
To: u-boot
On Fri, Aug 12, 2016 at 6:07 PM, Stefano Babic <sbabic@denx.de> wrote:
> Hi Fabio,
>
> On 12/08/2016 21:38, Fabio Estevam wrote:
>> Hi Otavio,
>>
>> On Fri, Aug 12, 2016 at 3:27 PM, Otavio Salvador
>> <otavio.salvador@ossystems.com.br> wrote:
>>
>>> Why is this happening? I am fine in reverting this but we need to fix
>>> the detection. Is it due memory callibration problems?
>>
>> The problem here is that warp uses the DDR initialization from mx6sl-evk.
>>
>> From configs/mx6slevk_defconfig:
>> CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6slevk/imximage.cfg,MX6SL"
>>
>> The usage of imx_ddr_size() revealed that the DDR size is not being
>> programmed correctly for the warp board.
>>
>
> That means that reverting just hides the problem.
>
>> The proper way to fix this is to create a board/warp/imximage.cfg file
>> with the DDR configuration done specifically for this board.
>>
>> Then imx_ddr_size() should work without issues for warp.
>>
>> Until this is done, better go with the revert patch for now:
>>
>> Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
>
> Let's say: if there won't be any fix before the release, it is ok to
> revert this.
Agreed. We ought to fix the calibration so we don't need to hide the issue.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"
2016-08-12 21:07 ` Stefano Babic
2016-08-12 21:17 ` Otavio Salvador
@ 2016-08-13 0:49 ` Fabio Estevam
2016-08-15 13:26 ` Fabio Estevam
1 sibling, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2016-08-13 0:49 UTC (permalink / raw)
To: u-boot
Hi Stefano,
On Fri, Aug 12, 2016 at 6:07 PM, Stefano Babic <sbabic@denx.de> wrote:
> Let's say: if there won't be any fix before the release, it is ok to
> revert this.
Fair enough. I have prepared a patch that adds a imximage file for
warp and fix the MDCTL register.
Breno will test it on Monday.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"
2016-08-13 0:49 ` Fabio Estevam
@ 2016-08-15 13:26 ` Fabio Estevam
0 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2016-08-15 13:26 UTC (permalink / raw)
To: u-boot
Hi Stefano,
On Fri, Aug 12, 2016 at 9:49 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi Stefano,
>
> On Fri, Aug 12, 2016 at 6:07 PM, Stefano Babic <sbabic@denx.de> wrote:
>
>> Let's say: if there won't be any fix before the release, it is ok to
>> revert this.
>
> Fair enough. I have prepared a patch that adds a imximage file for
> warp and fix the MDCTL register.
>
> Breno will test it on Monday.
Breno confirmed my patch fixes the warp board boot. I have just
submitted to the list.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-08-15 13:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-12 17:12 [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size" Breno Lima
2016-08-12 18:27 ` Otavio Salvador
2016-08-12 19:38 ` Fabio Estevam
2016-08-12 19:40 ` Fabio Estevam
2016-08-12 21:07 ` Stefano Babic
2016-08-12 21:17 ` Otavio Salvador
2016-08-13 0:49 ` Fabio Estevam
2016-08-15 13:26 ` Fabio Estevam
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.