Re: [PATCH 16/34] ARM clep7212: switch to barebox_arm_entry

Alexander Shiyan shc_work at mail.ru
Sun Jan 27 11:32:15 EST 2013


> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  arch/arm/Kconfig                    |    2 ++
>  arch/arm/boards/clep7212/lowlevel.c |    3 ++-
>  arch/arm/mach-clps711x/Kconfig      |    2 --
>  3 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 3197f8b..6ed9bf0 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -44,6 +44,8 @@ config ARCH_CLPS711X
>  	bool "Cirrus Logic EP711x/EP721x/EP731x"
>  	select CLKDEV_LOOKUP
>  	select CPU_32v4T
> +	select MACH_HAS_LOWLEVEL_INIT
> +	select MACH_DO_LOWLEVEL_INIT
>  
>  config ARCH_EP93XX
>  	bool "Cirrus Logic EP93xx"
> diff --git a/arch/arm/boards/clep7212/lowlevel.c b/arch/arm/boards/clep7212/lowlevel.c
> index 9b7e241..7465a42 100644
> --- a/arch/arm/boards/clep7212/lowlevel.c
> +++ b/arch/arm/boards/clep7212/lowlevel.c
> @@ -9,6 +9,7 @@
>  
>  #include <common.h>
>  #include <init.h>
> +#include <sizes.h>
>  
>  #include <asm/io.h>
>  #include <asm/barebox-arm.h>
> @@ -52,5 +53,5 @@ void __naked __bare_init reset(void)
>  	writel(SDCONF_CASLAT_3 | SDCONF_SIZE_256 | SDCONF_WIDTH_16 |
>  	       SDCONF_CLKCTL | SDCONF_ACTIVE, SDCONF);
>  
> -	board_init_lowlevel_return();
> +	barebox_arm_entry(SDRAM0_BASE, SZ_32M, 0);
...
Since this code placed in pbl, can we define a minimal size at this point?
Some targets may have a little than 32M.


More information about the barebox mailing list