diff mbox

[U-Boot,2/2] arm: vf610: Initial load to 1/2MB OC gfxRAM.

Message ID 1417632059-11240-3-git-send-email-bpringlemeir@nbsps.com
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Bill Pringlemeir Dec. 3, 2014, 6:40 p.m. UTC
The gfxRAM has no ECC, but it is 512KB in size.  The other
ECC SRAM comes in two banks of 256K each.  The HAB uses parts of the
2nd bank and it seems that loading from the SD card may not exceed
a bank size (256k-32k boot offset = 224k).  U-boot since v2014.04
are larger than this and do not boot by default.

As U-Boot relocates to DDR3 the gfxRAM is probably reliable enough.
However, an SPL framework would be better.

Signed-off-by: Bill Pringlemeir <bpringlemeir@nbsps.com>
---
 include/configs/vf610twr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefan Agner Dec. 4, 2014, 3:37 p.m. UTC | #1
On 2014-12-03 19:40, Bill Pringlemeir wrote:
> The gfxRAM has no ECC, but it is 512KB in size.  The other
> ECC SRAM comes in two banks of 256K each.  The HAB uses parts of the
> 2nd bank and it seems that loading from the SD card may not exceed
> a bank size (256k-32k boot offset = 224k).  U-boot since v2014.04
> are larger than this and do not boot by default.
> 
> As U-Boot relocates to DDR3 the gfxRAM is probably reliable enough.
> However, an SPL framework would be better.
> 
> Signed-off-by: Bill Pringlemeir <bpringlemeir@nbsps.com>
> ---
>  include/configs/vf610twr.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h
> index 62ffb9e..41ad478 100644
> --- a/include/configs/vf610twr.h
> +++ b/include/configs/vf610twr.h
> @@ -122,7 +122,7 @@
>  #define CONFIG_BOOTDELAY		3
>  
>  #define CONFIG_LOADADDR			0x82000000
> -#define CONFIG_SYS_TEXT_BASE		0x3f008000
> +#define CONFIG_SYS_TEXT_BASE		0x3f408000
>  
>  #define CONFIG_EXTRA_ENV_SETTINGS \
>  	"script=boot.scr\0" \


We use gfxRAM since quite some time and it proved working fine, see:
http://git.toradex.com/cgit/u-boot-toradex.git/tree/include/configs/colibri_vf.h?h=2014.10-toradex-next#n128

Also you can specify the board size limit using CONFIG_BOARD_SIZE_LIMIT.

Acked-by Stefan Agner <stefan@agner.ch>

--
Stefan
diff mbox

Patch

diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h
index 62ffb9e..41ad478 100644
--- a/include/configs/vf610twr.h
+++ b/include/configs/vf610twr.h
@@ -122,7 +122,7 @@ 
 #define CONFIG_BOOTDELAY		3
 
 #define CONFIG_LOADADDR			0x82000000
-#define CONFIG_SYS_TEXT_BASE		0x3f008000
+#define CONFIG_SYS_TEXT_BASE		0x3f408000
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"script=boot.scr\0" \