]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
i.MX31: Use symbolic names for Litekit membases.
authorMagnus Lilja <lilja.magnus@gmail.com>
Sun, 20 Apr 2008 08:36:36 +0000 (10:36 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 24 Apr 2008 21:35:23 +0000 (23:35 +0200)
Use symbolic names instead of hard coded addresses for Litekit membases.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
include/configs/imx31_litekit.h

index 605eb4058d7a86616fe97cd235f768a00e7caeec..5e97cfa72efe7edcee52cf8ce1fff21c9e92d12c 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <asm/arch/mx31-regs.h>
+
  /* High Level Configuration Options */
 #define CONFIG_ARM1136         1    /* This is an arm1136 CPU core */
 #define CONFIG_MX31            1    /* in a mx31 */
@@ -91,7 +93,7 @@
 
 
 #define CONFIG_DRIVER_SMC911X          1
-#define CONFIG_DRIVER_SMC911X_BASE     0xb4020000
+#define CONFIG_DRIVER_SMC911X_BASE     (CS4_BASE + 0x00020000)
 #define CONFIG_DRIVER_SMC911X_32_BIT   1
 
 /*
  * Physical Memory Map
  */
 #define CONFIG_NR_DRAM_BANKS   1
-#define PHYS_SDRAM_1           0x80000000
+#define PHYS_SDRAM_1           CSD0_BASE
 #define PHYS_SDRAM_1_SIZE      (128 * 1024 * 1024)
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_FLASH_BASE         0xa0000000
+#define CFG_FLASH_BASE         CS0_BASE
 #define CFG_MAX_FLASH_BANKS    1           /* max number of memory banks */
 #define CFG_MAX_FLASH_SECT     128          /* max number of sectors on one chip */
 #define CFG_MONITOR_BASE       CFG_FLASH_BASE /* Monitor at beginning of flash */
 
-#define CFG_ENV_ADDR           0xa01f0000
+#define CFG_ENV_ADDR           (CFG_FLASH_BASE + 0x001f0000)
 #define        CFG_ENV_IS_IN_FLASH     1
 #define CFG_ENV_SECT_SIZE      (64 * 1024)
 #define CFG_ENV_SIZE           (64 * 1024)