]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ColdFire: Multiple fixes for MCF5445x platforms
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>
Mon, 18 Aug 2008 18:26:25 +0000 (00:26 +0600)
committerJohn Rigby <jrigby@freescale.com>
Thu, 28 Aug 2008 15:16:54 +0000 (09:16 -0600)
Add FEC pin set and mii reset in __mii_init(). Change
legacy flash vendor from 2 to AMD LEGACY (0xFFF0),
change cfi_offset to 0, and change CFG_FLASH_CFI to
CONFIG_FLASH_CFI_LEGACY. Correct M54451EVB and
M54455EVB env settings in configuration file.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
board/freescale/m54451evb/m54451evb.c
board/freescale/m54455evb/m54455evb.c
board/freescale/m54455evb/mii.c
include/configs/M54451EVB.h
include/configs/M54455EVB.h

index 5b33a8358e9517967b33164c7179b341b43cdfd5..768f40bb0aa83efe9ba1637738c51a0a57cbe95d 100644 (file)
@@ -49,7 +49,7 @@ phys_size_t initdram(int board_type)
         * Serial Boot: The dram is already initialized in start.S
         * only require to return DRAM size
         */
-       dramsize = CFG_SDRAM_SIZE * 0x100000 >> 1;
+       dramsize = CFG_SDRAM_SIZE * 0x100000;
 #else
        volatile sdramc_t *sdram = (volatile sdramc_t *)(MMAP_SDRAM);
        volatile gpio_t *gpio = (volatile gpio_t *)(MMAP_GPIO);
@@ -67,7 +67,7 @@ phys_size_t initdram(int board_type)
        }
        i--;
 
-       gpio->mscr_sdram = 0x44;
+       gpio->mscr_sdram = CFG_SDRAM_DRV_STRENGTH;
 
        sdram->sdcs0 = (CFG_SDRAM_BASE | i);
 
index 4f02121a5def0d3ad3290c6e69571889e6596916..100682a261e0152c9cf1561b7a40dfade211219e 100644 (file)
@@ -171,7 +171,7 @@ void pci_init_board(void)
 }
 #endif                         /* CONFIG_PCI */
 
-#if defined(CFG_FLASH_CFI)
+#if defined(CONFIG_FLASH_CFI_LEGACY)
 #include <flash.h>
 ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
 {
@@ -189,7 +189,7 @@ ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
        info->erase_blk_tout    = 16384;
        info->write_tout        = 2;
        info->buffer_write_tout = 5;
-       info->vendor            = 2; /* CFI_CMDSET_AMD_STANDARD */
+       info->vendor            = 0xFFF0; /* CFI_CMDSET_AMD_LEGACY */
        info->cmd_reset         = 0x00F0;
        info->interface         = FLASH_CFI_X8;
        info->legacy_unlock     = 0;
@@ -199,12 +199,11 @@ ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
 
        info->ext_addr          = 0;
        info->cfi_version       = 0x3133;
-       info->cfi_offset        = 0x0055;
+       info->cfi_offset        = 0x0000;
        info->addr_unlock1      = 0x00000555;
        info->addr_unlock2      = 0x000002AA;
        info->name              = "CFI conformant";
 
-
        info->size              = 0;
        info->sector_count      = CFG_ATMEL_TOTALSECT;
        info->start[0] = base;
index 7a59aa06748b7279af6d1b033fb43b2d2000cfde..0be5439ef9522299eca598bff6b0e396f73bdf30 100644 (file)
@@ -237,6 +237,10 @@ void __mii_init(void)
 
        fecp = (fec_t *) info->miibase;
 
+       fecpin_setclear(dev, 1);
+
+       mii_reset(info);
+
        /* We use strictly polling mode only */
        fecp->eimr = 0;
 
index 588c00c6295139d84cbd812796f1c35ac2062995..cf58239df3f07c0f0b63933cba10839036e8e155 100644 (file)
        "u-boot=u-boot.bin\0"                   \
        "load=tftp ${loadaddr) ${u-boot}\0"     \
        "upd=run load; run prog\0"              \
-       "prog=prot off 0 " MK_STR(CFG_UBOOT_END)\
-       "; era 0 " MK_STR(CFG_UBOOT_END)        \
-       "2ffff;"                                \
+       "prog=prot off 0 " MK_STR(CFG_UBOOT_END)        \
+       "; era 0 " MK_STR(CFG_UBOOT_END) " ;"   \
        "cp.b ${loadaddr} 0 ${filesize};"       \
        "save\0"                                \
        ""
index 476aba34786ed505032026eb01266e3dbb6ee6eb..ad9c15eb9b1f4323ab1a7a0bf89095fa53502130 100644 (file)
        " " MK_STR(CFG_UBOOT_END) ";"           \
        "era " MK_STR(CFG_FLASH_BASE) " "       \
        MK_STR(CFG_UBOOT_END) ";"               \
-       "cp.b ${loadaddr} " MK_STR(CFG_FLASH_BASE)\
+       "cp.b ${loadaddr} " MK_STR(CFG_FLASH_BASE)      \
        " ${filesize}; save\0"                  \
        ""
 #endif
 #endif
 #endif
 
-#define CFG_FLASH_PROTECTION           /* "Real" (hardware) sectors protection */
-#define CFG_FLASH_CHECKSUM
-
 /*
  * This is setting for JFFS2 support in u-boot.
  * NOTE: Enable CONFIG_CMD_JFFS2 for JFFS2 support.