TI DaVinci: Remove references to SZ_xx
PATCH v2 1/1 TI DaVinci: Remove references to SZ_xx
From: Sandeep Paulraj <[email protected]>
This patch removes the asm/sizes.h header file from being included in the DaVinci SOC configs.
References to SZ_xx have been replaced by appropriate bit shifted values.
---
v2 version of the patch does not change the DM355 configuration as suggested by Tom. This will be addressed in another patch.
include/configs/davinci_dm355evm.h | 9 ++++----- include/configs/davinci_dm365evm.h | 9 ++++----- include/configs/davinci_dvevm.h | 5 ++--- include/configs/davinci_schmoogie.h | 3 +-- include/configs/davinci_sffsdr.h | 3 +-- include/configs/davinci_sonata.h | 3 +-- 6 files changed, 13 insertions(+), 19 deletions(-)
include/configs/davinci_dm355evm.h +4 -5
@@ -19,7 +19,6 @@#ifndef __CONFIG_H#define __CONFIG_H -#include <asm/sizes.h> /* Spectrum Digital TMS320DM355 EVM board */ #define DAVINCI_DM355EVM
@@ -40,7 +39,7 @@/* Memory Info */ #define CONFIG_NR_DRAM_BANKS 1#define PHYS_SDRAM_1 0x80000000 -#define PHYS_SDRAM_1_SIZE SZ_128M +#define PHYS_SDRAM_1_SIZE (128 << 20)/* 128 MiB */ /* Serial Driver info: UART0 for console */ #define CONFIG_SYS_NS16550
@@ -130,7 +129,7 @@#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "#define CONFIG_SYS_LONGHELP -#define CONFIG_ENV_SIZE SZ_16K +#define CONFIG_ENV_SIZE (16 << 10)/* 16 KiB */ /* NYET -- #define CONFIG_BOOTDELAY 5 */ #define CONFIG_BOOTCOMMAND \
@@ -146,8 +145,8 @@#define CONFIG_NET_RETRY_COUNT 10/* U-Boot memory configuration */ -#define CONFIG_STACKSIZE SZ_256K/* regular stack */ -#define CONFIG_SYS_MALLOC_LEN SZ_512K/* malloc() arena */ +#define CONFIG_STACKSIZE (256 << 10)/* 256 KiB */ +#define CONFIG_SYS_MALLOC_LEN (512 << 10)/* 512 KiB */ #define CONFIG_SYS_GBL_DATA_SIZE 128/* for initial data */ #define CONFIG_SYS_MEMTEST_START 0x87000000/* physical address */ #define CONFIG_SYS_MEMTEST_END 0x88000000/* test 16MB RAM */
include/configs/davinci_dm365evm.h +4 -5
@@ -18,7 +18,6 @@#ifndef __CONFIG_H#define __CONFIG_H -#include <asm/sizes.h> /* Spectrum Digital TMS320DM365 EVM board */ #define DAVINCI_DM365EVM
@@ -38,7 +37,7 @@/* Memory Info */ #define CONFIG_NR_DRAM_BANKS 1#define PHYS_SDRAM_1 0x80000000 -#define PHYS_SDRAM_1_SIZE SZ_128M +#define PHYS_SDRAM_1_SIZE (128 << 20)/* 128 MiB */ /* Serial Driver info: UART0 for console */ #define CONFIG_SYS_NS16550
@@ -125,7 +124,7 @@#define CONFIG_SYS_LONGHELP #ifdef CONFIG_NAND_DAVINCI -#define CONFIG_ENV_SIZE SZ_256K +#define CONFIG_ENV_SIZE (256 << 10)/* 256 KiB */ #define CONFIG_ENV_IS_IN_NAND #define CONFIG_ENV_OFFSET 0x3C0000#undef CONFIG_ENV_IS_IN_FLASH
@@ -143,8 +142,8 @@#define CONFIG_TIMESTAMP /* U-Boot memory configuration */ -#define CONFIG_STACKSIZE SZ_256K/* regular stack */ -#define CONFIG_SYS_MALLOC_LEN SZ_1M/* malloc() arena */ +#define CONFIG_STACKSIZE (256 << 10)/* 256 KiB */ +#define CONFIG_SYS_MALLOC_LEN (1 << 20)/* 1 MiB */ #define CONFIG_SYS_GBL_DATA_SIZE 128/* for initial data */ #define CONFIG_SYS_MEMTEST_START 0x87000000/* physical address */ #define CONFIG_SYS_MEMTEST_END 0x88000000/* test 16MB RAM */
include/configs/davinci_dvevm.h +2 -3
@@ -19,7 +19,6 @@#ifndef __CONFIG_H#define __CONFIG_H -#include <asm/sizes.h> /* * Define this to make U-Boot skip low level initialization when loaded
@@ -120,7 +119,7 @@#define CONFIG_ENV_IS_IN_NAND /* U-Boot env in NAND Flash */ #ifdef CONFIG_SYS_NAND_SMALLPAGE #define CONFIG_ENV_SECT_SIZE 512/* Env sector Size */ -#define CONFIG_ENV_SIZE SZ_16K +#define CONFIG_ENV_SIZE (16 << 10)/* 16 KiB */ #define CONFIG_MTD_PARTITIONS #define CONFIG_CMD_MTDPARTS #define MTDIDS_DEFAULT \
@@ -129,7 +128,7 @@ "mtdparts=davinci_nand.0:384k(bootloader)ro,4m(kernel),-(filesystem)"#else #define CONFIG_ENV_SECT_SIZE 2048/* Env sector Size */ -#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_SIZE (128 << 10)/* 128 KiB */ #endif #define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is loaded by a bootloader */ #define CONFIG_SKIP_RELOCATE_UBOOT /* to a proper address, init done */
include/configs/davinci_schmoogie.h +1 -2
@@ -19,7 +19,6 @@#ifndef __CONFIG_H#define __CONFIG_H -#include <asm/sizes.h> /*=======*/ /* Board */
@@ -86,7 +85,7 @@#define CONFIG_NAND_DAVINCI #define CONFIG_ENV_IS_IN_NAND /* U-Boot env in NAND Flash */ #define CONFIG_ENV_SECT_SIZE 2048/* Env sector Size */ -#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_SIZE (128 << 10)/* 128 KiB */ #define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is loaded by a bootloader */ #define CONFIG_SKIP_RELOCATE_UBOOT /* to a proper address, init done */ #define CONFIG_SYS_NAND_BASE 0x02000000
include/configs/davinci_sffsdr.h +1 -2
@@ -22,7 +22,6 @@#ifndef __CONFIG_H#define __CONFIG_H -#include <asm/sizes.h> /* Board */ #define SFFSDR
@@ -81,7 +80,7 @@#define CONFIG_NAND_DAVINCI #define CONFIG_ENV_IS_IN_NAND /* U-Boot env in NAND Flash */ #define CONFIG_ENV_SECT_SIZE 2048/* Env sector Size */ -#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_SIZE (128 << 10)/* 128 KiB */ #define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is loaded by a bootloader */ #define CONFIG_SKIP_RELOCATE_UBOOT /* to a proper address, init done */ #define CONFIG_SYS_NAND_BASE 0x02000000
include/configs/davinci_sonata.h +1 -2
@@ -19,7 +19,6 @@#ifndef __CONFIG_H#define __CONFIG_H -#include <asm/sizes.h> /* * Define this to make U-Boot skip low level initialization when loaded
@@ -119,7 +118,7 @@#define CONFIG_SYS_NO_FLASH #define CONFIG_ENV_IS_IN_NAND /* U-Boot env in NAND Flash */ #define CONFIG_ENV_SECT_SIZE 512/* Env sector Size */ -#define CONFIG_ENV_SIZE SZ_16K +#define CONFIG_ENV_SIZE (16 << 10)/* 16 KiB */ #define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is loaded by a bootloader */ #define CONFIG_SKIP_RELOCATE_UBOOT /* to a proper address, init done */ #define CONFIG_SYS_NAND_BASE 0x02000000
Signature · 1 line
1.6.0.4
PATCH v2 1/1 TI DaVinci: Remove references to SZ_xx
Dear s-paulraj at ti.com,
Quoted 11 lines · In message <[email protected]> you wrote:
From: Sandeep Paulraj <[email protected]>
This patch removes the
asm/sizes.hheader file from being included in the DaVinci SOC configs.
References toSZ_xxhave been replaced by appropriate bit shifted values.Signed-off-by Sandeep Paulraj <[email protected]>---
v2 version of the patch does not change the DM355 configuration as suggested by Tom. This will be addressed in another patch.
Quoted 7 lines
include/configs/davinci_dm355evm.h | 9 ++++----- include/configs/davinci_dm365evm.h | 9 ++++----- include/configs/davinci_dvevm.h | 5 ++--- include/configs/davinci_schmoogie.h | 3 +-- include/configs/davinci_sffsdr.h | 3 +-- include/configs/davinci_sonata.h | 3 +-- 6 files changed, 13 insertions(+), 19 deletions(-)
Best regards,
Wolfgang Denk
Signature · 4 lines
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: wd at denx.de What's the sound a name makes when it's dropped?