[PATCH] ARM OMAP: use SZ_*M constants in RAM device register functions

Antony Pavlov antonynpavlov at gmail.com
Mon Jan 28 04:29:18 EST 2013


ping

On 24 January 2013 22:55, Antony Pavlov <antonynpavlov at gmail.com> wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> ---
>  arch/arm/boards/beaglebone/board.c  |    2 +-
>  arch/arm/boards/omap343xdsp/board.c |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boards/beaglebone/board.c b/arch/arm/boards/beaglebone/board.c
> index 830ff47..fda8031 100644
> --- a/arch/arm/boards/beaglebone/board.c
> +++ b/arch/arm/boards/beaglebone/board.c
> @@ -311,7 +311,7 @@ console_initcall(beaglebone_console_init);
>
>  static int beaglebone_mem_init(void)
>  {
> -       omap_add_ram0(256 * 1024 * 1024);
> +       omap_add_ram0(SZ_256M);
>
>         return 0;
>  }
> diff --git a/arch/arm/boards/omap343xdsp/board.c b/arch/arm/boards/omap343xdsp/board.c
> index 6dbbc4c..d894104 100644
> --- a/arch/arm/boards/omap343xdsp/board.c
> +++ b/arch/arm/boards/omap343xdsp/board.c
> @@ -620,7 +620,7 @@ console_initcall(sdp3430_console_init);
>
>  static int sdp3430_mem_init(void)
>  {
> -       omap_add_ram0(128 * 1024 * 1024);
> +       omap_add_ram0(SZ_128M);
>
>         return 0;
>  }
> --
> 1.7.10.4
>



-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list