[U-Boot] [PATCH v2 1/2] vexpress64: Juno: Declare all 8GB of RAM and make them visible to the kernel.

Ryan Harkin ryan.harkin at linaro.org
Fri Oct 16 19:14:51 CEST 2015


Hi Liviu,

You can add my Tested-by or Reviewed-by to this patch at your preference.

Thanks,
Ryan.


On 16 October 2015 at 15:41, Liviu Dudau <Liviu.Dudau at foss.arm.com> wrote:

> Juno comes with 8GB RAM, but U-Boot only passes 2GB to the kernel.
> Declare a secondary memory bank and set the sizes correctly.
>
> Signed-off-by: Liviu Dudau <Liviu.Dudau at foss.arm.com>
> Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
>
Reviewed-by: Ryan Harkin <ryan.harkin at linaro.org>
or
Tested-by: Ryan Harkin <ryan.harkin at linaro.org>


> ---
>  board/armltd/vexpress64/vexpress64.c | 8 ++++++++
>  include/configs/vexpress_aemv8a.h    | 4 +++-
>  2 files changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/board/armltd/vexpress64/vexpress64.c
> b/board/armltd/vexpress64/vexpress64.c
> index 7cb4e00..6df9d60 100644
> --- a/board/armltd/vexpress64/vexpress64.c
> +++ b/board/armltd/vexpress64/vexpress64.c
> @@ -38,6 +38,14 @@ int dram_init(void)
>         return 0;
>  }
>
> +void dram_init_banksize(void)
> +{
> +       gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
> +       gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
> +       gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
> +       gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
> +}
> +
>  /*
>   * Board specific reset that is system reset.
>   */
> diff --git a/include/configs/vexpress_aemv8a.h
> b/include/configs/vexpress_aemv8a.h
> index ef3014d..0f2f1a3 100644
> --- a/include/configs/vexpress_aemv8a.h
> +++ b/include/configs/vexpress_aemv8a.h
> @@ -168,11 +168,13 @@
>  #define CONFIG_SYS_LOAD_ADDR           (V2M_BASE + 0x10000000)
>
>  /* Physical Memory Map */
> -#define CONFIG_NR_DRAM_BANKS           1
> +#define CONFIG_NR_DRAM_BANKS           2
>  #define PHYS_SDRAM_1                   (V2M_BASE)      /* SDRAM Bank #1 */
> +#define PHYS_SDRAM_2                   (0x880000000)
>  /* Top 16MB reserved for secure world use */
>  #define DRAM_SEC_SIZE          0x01000000
>  #define PHYS_SDRAM_1_SIZE      0x80000000 - DRAM_SEC_SIZE
> +#define PHYS_SDRAM_2_SIZE      0x180000000
>  #define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
>
>  /* Enable memtest */
> --
> 2.6.0
>
>


More information about the U-Boot mailing list