All of lore.kernel.org
 help / color / mirror / Atom feed
* ARM Linux: Where the SDRAM address and size defined
@ 2016-03-07  5:25 Woody Wu
  2016-03-07  9:49 ` priyaranjan
  2016-03-07 10:04 ` fser at code-libre.org
  0 siblings, 2 replies; 5+ messages in thread
From: Woody Wu @ 2016-03-07  5:25 UTC (permalink / raw)
  To: kernelnewbies

Hi,

In Samsung s3c24xx arch code, I cannot find where the SDRAM address and
size information was defined. Can someone give me a lead? Thanks.

-woody


-- 
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

woody
public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160307/0614c213/attachment.html 

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

* ARM Linux: Where the SDRAM address and size defined
  2016-03-07  5:25 ARM Linux: Where the SDRAM address and size defined Woody Wu
@ 2016-03-07  9:49 ` priyaranjan
  2016-03-07 10:04 ` fser at code-libre.org
  1 sibling, 0 replies; 5+ messages in thread
From: priyaranjan @ 2016-03-07  9:49 UTC (permalink / raw)
  To: kernelnewbies

Hello Woody,

>On Mon, Mar 7, 2016 at 10:55 AM, Woody Wu <narkewoody@gmail.com> wrote:

> >Hi,
>
> >In Samsung s3c24xx arch code, I cannot find where the SDRAM address and
> size information was defined. Can someone give me a lead? Thanks.
>
> I will try to answer this.

Its usual practice to have the size of RAM in bootargs in Linux kernel. And
I am not sure about the SDRAM address(It may be part of DTSI file).


> >-woody
>
>
> >--
> >Life is the only flaw in an otherwise perfect nonexistence
> >    -- Schopenhauer
>
> >woody
> >public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com)
>
>
>
> _______________________________________________
> >Kernelnewbies mailing list
> >Kernelnewbies at kernelnewbies.org
> >http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160307/5cb76742/attachment.html 

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

* ARM Linux: Where the SDRAM address and size defined
  2016-03-07  5:25 ARM Linux: Where the SDRAM address and size defined Woody Wu
  2016-03-07  9:49 ` priyaranjan
@ 2016-03-07 10:04 ` fser at code-libre.org
  2016-03-07 11:27   ` Woody Wu
  2016-03-07 11:35   ` Carlo Caione
  1 sibling, 2 replies; 5+ messages in thread
From: fser at code-libre.org @ 2016-03-07 10:04 UTC (permalink / raw)
  To: kernelnewbies

On Mon, Mar 07, 2016 at 01:25:25PM +0800, Woody Wu wrote:
> Hi,

Hello,

> In Samsung s3c24xx arch code, I cannot find where the SDRAM address and
> size information was defined. Can someone give me a lead? Thanks.

ARM boards, are now defined using Device Tree (DTS for source, DTB for binary, the compiled form).
I couldn't find out for s3c24xx but, the block memory is defined as follow:

        memory {
                reg = <0x20000000 0x20000000>;
        };

(source: arch/arm/boot/dts/sama5dxcm.dtsi)

>
> -woody

--
Fran?ois

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

* ARM Linux: Where the SDRAM address and size defined
  2016-03-07 10:04 ` fser at code-libre.org
@ 2016-03-07 11:27   ` Woody Wu
  2016-03-07 11:35   ` Carlo Caione
  1 sibling, 0 replies; 5+ messages in thread
From: Woody Wu @ 2016-03-07 11:27 UTC (permalink / raw)
  To: kernelnewbies



Sent from my iPad

> On Mar 7, 2016, at 6:04 PM, fser at code-libre.org wrote:
> 
>> On Mon, Mar 07, 2016 at 01:25:25PM +0800, Woody Wu wrote:
>> Hi,
> 
> Hello,
> 
>> In Samsung s3c24xx arch code, I cannot find where the SDRAM address and
>> size information was defined. Can someone give me a lead? Thanks.
> 
> ARM boards, are now defined using Device Tree (DTS for source, DTB for binary, the compiled form).
> I couldn't find out for s3c24xx but, the block memory is defined as follow:
> 
>        memory {
>                reg = <0x20000000 0x20000000>;
>        };
> 

What about boards that is not using DTD?  For the DTD based boards like above  I also wondering that how to define a board with two SDRAM bands, one is at 0x30000000 - 0x34000000 and another is at 0x38000000 - 0x3C000000, should I put two reg entries in the memory section of the above dtd?

> (source: arch/arm/boot/dts/sama5dxcm.dtsi)
> 
>> 
>> -woody
> 
> --
> Fran?ois
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

* ARM Linux: Where the SDRAM address and size defined
  2016-03-07 10:04 ` fser at code-libre.org
  2016-03-07 11:27   ` Woody Wu
@ 2016-03-07 11:35   ` Carlo Caione
  1 sibling, 0 replies; 5+ messages in thread
From: Carlo Caione @ 2016-03-07 11:35 UTC (permalink / raw)
  To: kernelnewbies

On Mon, Mar 7, 2016 at 11:04 AM,  <fser@code-libre.org> wrote:
> On Mon, Mar 07, 2016 at 01:25:25PM +0800, Woody Wu wrote:
>> Hi,
>
> Hello,
>
>> In Samsung s3c24xx arch code, I cannot find where the SDRAM address and
>> size information was defined. Can someone give me a lead? Thanks.
>
> ARM boards, are now defined using Device Tree (DTS for source, DTB for binary, the compiled form).
> I couldn't find out for s3c24xx but, the block memory is defined as follow:
>
>         memory {
>                 reg = <0x20000000 0x20000000>;
>         };
>

For the record. The memory node in the DTS is most of the time useless
/ there for documentation since the node is overwritten by the
bootloader who is in charge to initialized the DRAM.

-- 
Carlo Caione

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

end of thread, other threads:[~2016-03-07 11:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-07  5:25 ARM Linux: Where the SDRAM address and size defined Woody Wu
2016-03-07  9:49 ` priyaranjan
2016-03-07 10:04 ` fser at code-libre.org
2016-03-07 11:27   ` Woody Wu
2016-03-07 11:35   ` Carlo Caione

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.