]> Git Repo - J-u-boot.git/commitdiff
powerpc/corenet_ds: Various updates to initial env cfg
authorEmil Medve <[email protected]>
Wed, 1 Sep 2010 03:57:43 +0000 (22:57 -0500)
committerKumar Gala <[email protected]>
Thu, 7 Oct 2010 14:49:47 +0000 (09:49 -0500)
* Make the U-Boot update command sequence conditional.  Helps prevent
  accidental erasing if an upload or previous step fails
* Make it easier to update other FLASH banks
* Enable DDR controller cache line interleaving and bank cs0/cs1 by default

Signed-off-by: Emil Medve <[email protected]>
Signed-off-by: York Sun <[email protected]>
Signed-off-by: Kumar Gala <[email protected]>
include/configs/corenet_ds.h

index d223a4d73bb7c8eddc974e8f9f6e499eb5ec3602..648686969445113048e87280b30fcc43b2c4bc4d 100644 (file)
 #define CONFIG_BAUDRATE        115200
 
 #define        CONFIG_EXTRA_ENV_SETTINGS                               \
+       "hwconfig=fsl_ddr:ctlr_intlv=cacheline,"                \
+       "bank_intlv=cs0_cs1\0"                                  \
        "netdev=eth0\0"                                         \
        "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0"                  \
-       "tftpflash=tftpboot $loadaddr $uboot; "                 \
-       "protect off " MK_STR(TEXT_BASE) " +$filesize; "        \
-       "erase " MK_STR(TEXT_BASE) " +$filesize; "              \
-       "cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; "      \
-       "protect on " MK_STR(TEXT_BASE) " +$filesize; "         \
-       "cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0"     \
+       "ubootaddr=" MK_STR(TEXT_BASE) "\0"                     \
+       "tftpflash=tftpboot $loadaddr $uboot && "               \
+       "protect off $ubootaddr +$filesize && "                 \
+       "erase $ubootaddr +$filesize && "                       \
+       "cp.b $loadaddr $ubootaddr $filesize && "               \
+       "protect on $ubootaddr +$filesize && "                  \
+       "cmp.b $loadaddr $ubootaddr $filesize\0"                \
        "consoledev=ttyS0\0"                                    \
        "ramdiskaddr=2000000\0"                                 \
        "ramdiskfile=p4080ds/ramdisk.uboot\0"                   \
This page took 0.039396 seconds and 4 git commands to generate.