public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/5] arch: arm: omap: Declare size of ddr very early
Date: Tue, 18 Apr 2017 15:33:12 +0200	[thread overview]
Message-ID: <20170418153312.0383b955@jawa> (raw)
In-Reply-To: <1492516647-26840-3-git-send-email-ravibabu@ti.com>

Hi Ravi,

> From: Lokesh Vutla <lokeshvutla@ti.com>
> 
> Declare the size of ddr very early in spl, so that this can be
> used to enable cache.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> Signed-off-by: Ravi Babu <ravibabu@ti.com>
> ---
>  arch/arm/mach-omap2/am33xx/board.c  | 4 ++++
>  arch/arm/mach-omap2/hwinit-common.c | 1 +
>  2 files changed, 5 insertions(+)
> 
> diff --git a/arch/arm/mach-omap2/am33xx/board.c
> b/arch/arm/mach-omap2/am33xx/board.c index 2bfc864..568f36f 100644
> --- a/arch/arm/mach-omap2/am33xx/board.c
> +++ b/arch/arm/mach-omap2/am33xx/board.c
> @@ -327,6 +327,10 @@ void board_init_f(ulong dummy)
>  	early_system_init();
>  	board_early_init_f();
>  	sdram_init();
> +	/* dram_init must store complete ramsize in gd->ram_size */
> +	gd->ram_size = get_ram_size(
> +			(void *)CONFIG_SYS_SDRAM_BASE,
> +			CONFIG_MAX_RAM_BANK_SIZE);

The above call is a bit strange, since the sdram_init() function
sets the DDR (EMIF) controller to use the whole SDRAM available.

Why one cannot take this info directly from EMIF controller?

>  }
>  #endif
>  
> diff --git a/arch/arm/mach-omap2/hwinit-common.c
> b/arch/arm/mach-omap2/hwinit-common.c index f317293..cac3274 100644
> --- a/arch/arm/mach-omap2/hwinit-common.c
> +++ b/arch/arm/mach-omap2/hwinit-common.c
> @@ -171,6 +171,7 @@ void board_init_f(ulong dummy)
>  #endif
>  	/* For regular u-boot sdram_init() is called from
> dram_init() */ sdram_init();
> +	gd->ram_size = omap_sdram_size();
>  }
>  #endif
>  




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de

  reply	other threads:[~2017-04-18 13:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-18 11:57 [U-Boot] [PATCH 0/5] QSPI: Falcon or single stage boot mode support Ravi Babu
2017-04-18 11:57 ` [U-Boot] [PATCH 1/5] spl: reorder the assignment of board info to global data Ravi Babu
2017-04-18 13:25   ` Lukasz Majewski
2017-04-18 13:42   ` Tom Rini
2017-05-12 17:18   ` [U-Boot] [U-Boot, " Tom Rini
2017-08-03  0:53   ` York Sun
2017-04-18 11:57 ` [U-Boot] [PATCH 2/5] arch: arm: omap: Declare size of ddr very early Ravi Babu
2017-04-18 13:33   ` Lukasz Majewski [this message]
2017-04-18 14:09     ` B, Ravi
2017-04-20  2:08     ` Lokesh Vutla
2017-05-12 17:18   ` [U-Boot] [U-Boot, " Tom Rini
2017-04-18 11:57 ` [U-Boot] [PATCH 3/5] qspi: dra7xx: enable qspi-boot for dra7x paltform Ravi Babu
2017-04-18 13:33   ` Lukasz Majewski
2017-05-12 17:18   ` [U-Boot] [U-Boot, " Tom Rini
2017-04-18 11:57 ` [U-Boot] [PATCH 4/5] spl: fdt: support for fdt fixup for falcon boot Ravi Babu
2017-04-18 13:35   ` Lukasz Majewski
2017-05-12 17:19   ` [U-Boot] [U-Boot, " Tom Rini
2017-04-18 11:57 ` [U-Boot] [PATCH 5/5] boot: fdt: fixup the memory dt nodes " Ravi Babu
2017-04-18 13:25   ` Lukasz Majewski
2017-04-18 14:05     ` B, Ravi
2017-04-20  1:54     ` Lokesh Vutla
2017-05-12 17:19   ` [U-Boot] [U-Boot, " Tom Rini
2017-08-02 19:10   ` York Sun
2017-08-02 19:32     ` Tom Rini
2017-08-26 11:50       ` Jagan Teki
2017-08-28 16:47         ` York Sun
2017-08-29 19:29           ` Jagan Teki
2017-08-29 20:21             ` York Sun

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=20170418153312.0383b955@jawa \
    --to=lukma@denx.de \
    --cc=u-boot@lists.denx.de \
    /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