Fix some CFG/CONFIG related problems for AT91RM9200 configuration of U-Boot
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Tue, 6 Jan 2009 16:10:56 +0000 (16:10 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Tue, 6 Jan 2009 16:10:56 +0000 (16:10 -0000)
target/u-boot/2009.01-rc1/u-boot-2009.01-rc1-002-at91rm9200dk.h.patch
target/u-boot/2009.01-rc1/u-boot-2009.01-rc1-004-at91rm9200ek.patch

index c86dcdea9e29daacd93056c7c4bc14707b6370dd..2e7e578229c86daac56f105ac722ab7b222acd61 100644 (file)
@@ -182,7 +182,7 @@ diff -urN u-boot-2009.01-rc1-0rig//include/configs/at91rm9200dk_df.h u-boot-2009
 +#define CONFIG_SYS_MAX_DATAFLASH_PAGES                16384
 +#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* Logical adress for CS0 */
 +#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3   0xD0000000      /* Logical adress for CS3 */
-+#define       CFG_SUPPORT_BLOCK_ERASE         1
++#define CONFIG__SUPPORT_BLOCK_ERASE           1
 +
 +
 +#define PHYS_FLASH_1                  0x10000000
index f979dd3d6a56d621d7bced3dfd0586173898abff..4d22c5334826e748100599bdc975a4c1b7b687ce 100644 (file)
@@ -133,8 +133,8 @@ diff -urN u-boot-2009.01-0rig/include/configs/at91rm9200df.h u-boot-2009.01/incl
 +#define CONFIG_DOS_PARTITION          1
 +#define CONFIG_MMC                    1
 +#define CONFIG_SUPPORT_VFAT           1
-+#define CFG_MMC_BASE                  0xFFFB4000      /* From AT91RM9200.h*/
-+#define CFG_MMC_BLOCKSIZE             512
++#define CONFIG__MMC_BASE                      0xFFFB4000      /* From AT91RM9200.h*/
++#define CONFIG__MMC_BLOCKSIZE         512
 +
 +#define CONFIG_NAND_LEGACY
 +
@@ -185,14 +185,14 @@ diff -urN u-boot-2009.01-0rig/include/configs/at91rm9200df.h u-boot-2009.01/incl
 +#define DATAFLASH_TCHS        (0x1 << 24)
 +
 +#define CONFIG_HAS_DATAFLASH          1
-+#define BOARD_LATE_INIT                       1
++#undef BOARD_LATE_INIT
 +
 +#define CONFIG_SYS_SPI_WRITE_TOUT             (5*CONFIG_SYS_HZ)
 +#define CONFIG_SYS_MAX_DATAFLASH_BANKS                2
 +#define CONFIG_SYS_MAX_DATAFLASH_PAGES                16384
 +#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* Logical adress for CS0 */
 +#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3   0xD0000000      /* Logical adress for CS3 */
-+#define       CFG_SUPPORT_BLOCK_ERASE         1
++#define CONFIG__SUPPORT_BLOCK_ERASE           1
 +
 +#define PHYS_FLASH_1                  0x10000000
 +#define PHYS_FLASH_SIZE                       0x800000  /* 2 megs main flash */
@@ -447,7 +447,7 @@ diff -urN u-boot-2009.01-0rig/include/configs/at91rm9200ek.h u-boot-2009.01/incl
 +#define CONFIG_SYS_MAX_DATAFLASH_PAGES                16384
 +#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* Logical adress for CS0 */
 +#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3   0xD0000000      /* Logical adress for CS3 */
-+#define       CFG_SUPPORT_BLOCK_ERASE         1
++#define CONFIG__SUPPORT_BLOCK_ERASE           1
 +
 +#define PHYS_FLASH_1                  0x10000000
 +#define PHYS_FLASH_SIZE                       0x800000  /* 2 megs main flash */
@@ -462,9 +462,9 @@ diff -urN u-boot-2009.01-0rig/include/configs/at91rm9200ek.h u-boot-2009.01/incl
 +
 +#ifdef CONFIG_ENV_IS_IN_DATAFLASH
 +#ifdef        CONFIG_NEW_PARTITION            
-+#define CFG_ENV_OFFSET                        0x21000
-+#define CFG_ENV_ADDR                  (CFG_DATAFLASH_LOGIC_ADDR_CS0 + CFG_ENV_OFFSET)
-+#define CFG_ENV_SIZE                  0x2000  /* 8 * 1056 really , but start.s is not OK with this*/
++#define CONFIG__ENV_OFFSET                    0x21000
++#define CONFIG__ENV_ADDR                      (CONFIG_SYS__DATAFLASH_LOGIC_ADDR_CS0 + CONFIG__ENV_OFFSET)
++#define CONFIG__ENV_SIZE                      0x2000  /* 8 * 1056 really , but start.s is not OK with this*/
 +> #else
 +#define CONFIG_ENV_OFFSET             0x20000
 +#define CONFIG_ENV_ADDR                       (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)