All of lore.kernel.org
 help / color / mirror / Atom feed
* IMX53 Custom board, ram...
@ 2015-03-27  9:39 andrea
  2015-03-27 13:06 ` Ed Sutter
  0 siblings, 1 reply; 4+ messages in thread
From: andrea @ 2015-03-27  9:39 UTC (permalink / raw)
  To: meta-freescale

Hello everybody,

I would like to know what is the minimum requirement of ram that I need
to put on the board.
I saw for example that I can use MT41K128M16JT-125 XIT  from Micron.
it looks like it is a 16 bit ram. 
I know that for a project the ram usage is really low. It is a 16bit
ddr3. I didn't understand if I can use only 1 ram bank or if I need to
use (at least 2). On IMX53qsb there's 4 banks but reading:
http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx53_loco.h?h=imx_v2009.08
it looks like that I can define CONFIG_NR_DRAM_BANKS to 1. 1 bank of
32bit? or I can use 1 bank of 16bit?

Thank you for the reading
Andrea

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IMX53 Custom board, ram...
  2015-03-27  9:39 IMX53 Custom board, ram andrea
@ 2015-03-27 13:06 ` Ed Sutter
  2015-03-27 14:11   ` andrea
  0 siblings, 1 reply; 4+ messages in thread
From: Ed Sutter @ 2015-03-27 13:06 UTC (permalink / raw)
  To: meta-freescale

Andrea,
A while back the first spin of our iMX6 based board had a bug that 
messed up the upper
16 bits or our 32-bit DRAM interface.  I was able to temporarily run 
this as a single bank
in 16 bit mode.  This was not with yocto however.  I would have to dig a 
bit to recall what I
had to change (I don't think it was the file you're pointing to); let me 
know if you
need that.
Ed
> Hello everybody,
>
> I would like to know what is the minimum requirement of ram that I need
> to put on the board.
> I saw for example that I can use MT41K128M16JT-125 XIT  from Micron.
> it looks like it is a 16 bit ram.
> I know that for a project the ram usage is really low. It is a 16bit
> ddr3. I didn't understand if I can use only 1 ram bank or if I need to
> use (at least 2). On IMX53qsb there's 4 banks but reading:
> http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx53_loco.h?h=imx_v2009.08
> it looks like that I can define CONFIG_NR_DRAM_BANKS to 1. 1 bank of
> 32bit? or I can use 1 bank of 16bit?
>
> Thank you for the reading
> Andrea


-- 
Ed Sutter
Alcatel-Lucent Technologies -- Bell Laboratories
Phone: 908-582-2351
Email: ed.sutter@alcatel-lucent.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IMX53 Custom board, ram...
  2015-03-27 13:06 ` Ed Sutter
@ 2015-03-27 14:11   ` andrea
  2015-03-27 14:24     ` Ed Sutter
  0 siblings, 1 reply; 4+ messages in thread
From: andrea @ 2015-03-27 14:11 UTC (permalink / raw)
  To: meta-freescale

Thank you ED for your reply.

Actually I'm in the prototyping phase. so actually I'm just thinking
about how much ram I will need and for cost optimization I need to think
off which part I can safely remove. 
There's no hurry for that. After writing to the ML I found that in the
register ESDCTL that there's an option for setting the 16 bit.
I see that the register is used in this file:
http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/board/freescale/mx53_loco/flash_header.S?h=imx_v2009.08

so ideally if I set: REG_LD_AND_STR_OP(31, 0x000, 0xc3190000) to
REG_LD_AND_STR_OP(31, 0x000, 0xc3180000)

I should be able to set the micro DDR interface to 16 bit mode.

Only if you remember that. Looks this one a solution like the one you
did?

Thank you
Andrea

Il giorno ven, 27/03/2015 alle 14.06 +0100, Ed Sutter ha scritto:
> Andrea,
> A while back the first spin of our iMX6 based board had a bug that 
> messed up the upper
> 16 bits or our 32-bit DRAM interface.  I was able to temporarily run 
> this as a single bank
> in 16 bit mode.  This was not with yocto however.  I would have to dig a 
> bit to recall what I
> had to change (I don't think it was the file you're pointing to); let me 
> know if you
> need that.
> Ed
> > Hello everybody,
> >
> > I would like to know what is the minimum requirement of ram that I need
> > to put on the board.
> > I saw for example that I can use MT41K128M16JT-125 XIT  from Micron.
> > it looks like it is a 16 bit ram.
> > I know that for a project the ram usage is really low. It is a 16bit
> > ddr3. I didn't understand if I can use only 1 ram bank or if I need to
> > use (at least 2). On IMX53qsb there's 4 banks but reading:
> > http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx53_loco.h?h=imx_v2009.08
> > it looks like that I can define CONFIG_NR_DRAM_BANKS to 1. 1 bank of
> > 32bit? or I can use 1 bank of 16bit?
> >
> > Thank you for the reading
> > Andrea
> 
> 
> -- 
> Ed Sutter
> Alcatel-Lucent Technologies -- Bell Laboratories
> Phone: 908-582-2351
> Email: ed.sutter@alcatel-lucent.com
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IMX53 Custom board, ram...
  2015-03-27 14:11   ` andrea
@ 2015-03-27 14:24     ` Ed Sutter
  0 siblings, 0 replies; 4+ messages in thread
From: Ed Sutter @ 2015-03-27 14:24 UTC (permalink / raw)
  To: meta-freescale

No problem...
I found the file I changed.  Note that this was part of u-boot-2013.10,
so I don't know how much of this has changed since then.
The change was in board/freescale/imx/ddr/mx6d_1x_mt41j128.cfg...

DATA 4 0x021b0000 0x83180000
To change something in the MMDC.

IIRC, this is a file that is preprocessed by uboot tools to become part 
of the
initial image that is sucked in at initial bootload stages to configure 
the DDR.

HTH,
Ed

> Thank you ED for your reply.
>
> Actually I'm in the prototyping phase. so actually I'm just thinking
> about how much ram I will need and for cost optimization I need to think
> off which part I can safely remove.
> There's no hurry for that. After writing to the ML I found that in the
> register ESDCTL that there's an option for setting the 16 bit.
> I see that the register is used in this file:
> http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/board/freescale/mx53_loco/flash_header.S?h=imx_v2009.08
>
> so ideally if I set: REG_LD_AND_STR_OP(31, 0x000, 0xc3190000) to
> REG_LD_AND_STR_OP(31, 0x000, 0xc3180000)
>
> I should be able to set the micro DDR interface to 16 bit mode.
>
> Only if you remember that. Looks this one a solution like the one you
> did?
>
> Thank you
> Andrea
>
> Il giorno ven, 27/03/2015 alle 14.06 +0100, Ed Sutter ha scritto:
>> Andrea,
>> A while back the first spin of our iMX6 based board had a bug that
>> messed up the upper
>> 16 bits or our 32-bit DRAM interface.  I was able to temporarily run
>> this as a single bank
>> in 16 bit mode.  This was not with yocto however.  I would have to dig a
>> bit to recall what I
>> had to change (I don't think it was the file you're pointing to); let me
>> know if you
>> need that.
>> Ed
>>> Hello everybody,
>>>
>>> I would like to know what is the minimum requirement of ram that I need
>>> to put on the board.
>>> I saw for example that I can use MT41K128M16JT-125 XIT  from Micron.
>>> it looks like it is a 16 bit ram.
>>> I know that for a project the ram usage is really low. It is a 16bit
>>> ddr3. I didn't understand if I can use only 1 ram bank or if I need to
>>> use (at least 2). On IMX53qsb there's 4 banks but reading:
>>> http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx53_loco.h?h=imx_v2009.08
>>> it looks like that I can define CONFIG_NR_DRAM_BANKS to 1. 1 bank of
>>> 32bit? or I can use 1 bank of 16bit?
>>>
>>> Thank you for the reading
>>> Andrea
>>
>> -- 
>> Ed Sutter
>> Alcatel-Lucent Technologies -- Bell Laboratories
>> Phone: 908-582-2351
>> Email: ed.sutter@alcatel-lucent.com
>>


-- 
Ed Sutter
Alcatel-Lucent Technologies -- Bell Laboratories
Phone: 908-582-2351
Email: ed.sutter@alcatel-lucent.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-27 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-27  9:39 IMX53 Custom board, ram andrea
2015-03-27 13:06 ` Ed Sutter
2015-03-27 14:11   ` andrea
2015-03-27 14:24     ` Ed Sutter

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.