Dear Matthias Weisser,

In message <1285076264-13219-1-git-send-email-weiss...@arcor.de> you wrote:
> This patch modifies jadecpu board so that it is usable
> with the relocation patches by Heiko Schocher
> 
> Signed-off-by: Matthias Weisser <weiss...@arcor.de>
> ---
>  board/syteco/jadecpu/config.mk |    2 +-
>  board/syteco/jadecpu/jadecpu.c |   11 +++++++++--
>  include/configs/jadecpu.h      |    3 +++
>  3 files changed, 13 insertions(+), 3 deletions(-)
> 
> diff --git a/board/syteco/jadecpu/config.mk b/board/syteco/jadecpu/config.mk
> index c661f0b..91994b0 100644
> --- a/board/syteco/jadecpu/config.mk
> +++ b/board/syteco/jadecpu/config.mk
> @@ -1 +1 @@
> -TEXT_BASE = 0x46000000
> +TEXT_BASE = 0x10000000
> diff --git a/board/syteco/jadecpu/jadecpu.c b/board/syteco/jadecpu/jadecpu.c
> index 04d2f9d..e11e686 100644
> --- a/board/syteco/jadecpu/jadecpu.c
> +++ b/board/syteco/jadecpu/jadecpu.c
> @@ -154,12 +154,19 @@ int misc_init_r(void)
>   */
>  int dram_init(void)
>  {
> -     gd->bd->bi_dram[0].start = PHYS_SDRAM;
> -     gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE;
> +     /* dram_init must store complete ramsize in gd->ram_size */
> +     gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM,
> +                                     PHYS_SDRAM_SIZE);

Unfortunately this breaks building for this board:

jadecpu.c: In function 'dram_init':
jadecpu.c:158: error: 'gd_t' has no member named 'ram_size'
jadecpu.c: In function 'dram_init_banksize':
jadecpu.c:167: error: 'gd_t' has no member named 'ram_size'


Can you please provide a fix? Thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
My play was a complete success.  The audience was a failure.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to