]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: ML507: Environment in flash and MTD Support
authorRicardo Ribalda Delgado <ricardo.ribalda@uam.es>
Wed, 30 Jul 2008 10:39:28 +0000 (12:39 +0200)
committerStefan Roese <sr@denx.de>
Wed, 30 Jul 2008 11:56:19 +0000 (13:56 +0200)
- Relocate the location of U-Boot in the flash
- Save the environment in one sector of the flash memory
- MTD Support

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es>
Signed-off-by: Stefan Roese <sr@denx.de>
Makefile
board/xilinx/ml507/xparameters.h
include/configs/ml507.h

index 8f4fdd09953ab23574f2c822b8d04d0d64a2a857..ea572cf36d36a4361d9316efc935f212ec209999 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1352,7 +1352,7 @@ ml300_config:     unconfig
 ml507_flash_config:    unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ml507
        @cp $(obj)board/xilinx/ml507/u-boot-rom.lds  $(obj)board/xilinx/ml507/u-boot.lds
-       @echo "TEXT_BASE = 0xFE3E0000" > $(obj)board/xilinx/ml507/config.tmp
+       @echo "TEXT_BASE = 0xFE360000" > $(obj)board/xilinx/ml507/config.tmp
        @$(MKCONFIG) $(@:_flash_config=) ppc ppc4xx ml507 xilinx
 
 ml507_config:  unconfig
index 6a8e1831715ae0421043646bc376c31302789014..77d2ddf9bd2e63131ff90a6475400df6fa565334 100644 (file)
@@ -24,7 +24,7 @@
 #define XPAR_DDR2_SDRAM_MEM_BASEADDR   0x00000000
 #define XPAR_IIC_EEPROM_BASEADDR       0x81600000
 #define XPAR_INTC_0_BASEADDR           0x81800000
-#define XPAR_LLTEMAC_0_BASEADDR        0x81c00000
+#define XPAR_LLTEMAC_0_BASEADDR        0x81C00000
 #define XPAR_UARTLITE_0_BASEADDR       0x84000000
 #define XPAR_FLASH_MEM0_BASEADDR       0xFE000000
 #define XPAR_PLB_CLOCK_FREQ_HZ                 100000000
index a79bc1eb5074228ab3ffeb5c40a97763d2afcae3..c653a5105cfcee697f6091edf5eb8803d5589943 100644 (file)
@@ -33,7 +33,7 @@
 #define CFG_SDRAM_SIZE_MB      256
 #define CFG_MONITOR_BASE       TEXT_BASE
 #define CFG_MONITOR_LEN                ( 192 * 1024 )
-#define CFG_MALLOC_LEN         ( 128 * 1024 )
+#define CFG_MALLOC_LEN         ( CFG_ENV_SIZE + 128 * 1024 )
 
 /*Uart*/
 #define CONFIG_XILINX_UARTLITE
@@ -49,6 +49,8 @@
 #define CONFIG_CMD_ELF
 #define CONFIG_CMD_IRQ
 #define CONFIG_CMD_REGINFO
+#define CONFIG_CMD_JFFS2
+#define CONFIG_JFFS2_CMDLINE
 #undef CONFIG_CMD_I2C
 #undef CONFIG_CMD_DTT
 #undef CONFIG_CMD_NET
 #undef CONFIG_CMD_IMLS
 
 /*Env*/
-#define        CFG_ENV_IS_NOWHERE
-#define        CFG_ENV_SIZE            0x200
-#define CFG_ENV_OFFSET                 0x100
+#define        CFG_ENV_IS_IN_FLASH
+#define        CFG_ENV_SIZE            0x20000
+#define        CFG_ENV_SECT_SIZE       0x20000
+#define CFG_ENV_OFFSET                 0x340000
+#define CFG_ENV_ADDR           (XPAR_FLASH_MEM0_BASEADDR+CFG_ENV_OFFSET)
 
 /*Misc*/
 #define CONFIG_BOOTDELAY       5               /* autoboot after 5 seconds     */
 #define        CFG_MAX_FLASH_BANKS     1
 #define        CFG_MAX_FLASH_SECT      259
 #define        CFG_FLASH_PROTECTION
+#define MTDIDS_DEFAULT         "nor0=ml507-flash"
+#define MTDPARTS_DEFAULT       "mtdparts=ml507-flash:-(user)"
+
 
 #endif                                         /* __CONFIG_H */