]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Merge branch 'master' of git://git.denx.de/u-boot-coldfire
authorWolfgang Denk <wd@denx.de>
Tue, 17 Mar 2009 23:40:57 +0000 (00:40 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 17 Mar 2009 23:40:57 +0000 (00:40 +0100)
19 files changed:
board/freescale/m5329evb/nand.c
board/freescale/m5373evb/nand.c
cpu/mcf5227x/config.mk
cpu/mcf523x/config.mk
cpu/mcf52x2/config.mk
cpu/mcf532x/config.mk
cpu/mcf5445x/config.mk
cpu/mcf5445x/start.S
cpu/mcf547x_8x/config.mk
cpu/mcf547x_8x/cpu_init.c
include/asm-m68k/m5301x.h
include/configs/M52277EVB.h
include/configs/M5235EVB.h
include/configs/M5253DEMO.h
include/configs/M5253EVBE.h
include/configs/M5275EVB.h
include/configs/M53017EVB.h
include/configs/M5329EVB.h
include/configs/M5373EVB.h

index cf27dda2ffef8272c17f570c9f818df9658c91e0..16025f91e2ef73f531483a23623c56124cdb5f7e 100644 (file)
@@ -47,10 +47,12 @@ static void nand_hwcontrol(struct mtd_info *mtdinfo, int cmd, unsigned int ctrl)
                ulong IO_ADDR_W = (ulong) this->IO_ADDR_W;
 
                IO_ADDR_W &= ~(SET_ALE | SET_CLE);
-               *nCE &= 0xFFFB;
 
                if (ctrl & NAND_NCE)
+                       *nCE &= 0xFFFB;
+               else
                        *nCE |= 0x0004;
+
                if (ctrl & NAND_CLE)
                        IO_ADDR_W |= SET_CLE;
                if (ctrl & NAND_ALE)
@@ -78,7 +80,7 @@ int board_nand_init(struct nand_chip *nand)
        gpio->pclrr_timer = 0;
        gpio->podr_timer = 0;
 
-       nand->chip_delay = 50;
+       nand->chip_delay = 60;
        nand->ecc.mode = NAND_ECC_SOFT;
        nand->cmd_ctrl = nand_hwcontrol;
 
index 3ebef059e14d5fe1484792959de69e941fa05916..df8c03b8a272677f05e51178bca15450d163f928 100644 (file)
@@ -47,10 +47,12 @@ static void nand_hwcontrol(struct mtd_info *mtdinfo, int cmd, unsigned int ctrl)
                ulong IO_ADDR_W = (ulong) this->IO_ADDR_W;
 
                IO_ADDR_W &= ~(SET_ALE | SET_CLE);
-               *nCE &= 0xFFFB;
 
                if (ctrl & NAND_NCE)
+                       *nCE &= 0xFFFB;
+               else
                        *nCE |= 0x0004;
+
                if (ctrl & NAND_CLE)
                        IO_ADDR_W |= SET_CLE;
                if (ctrl & NAND_ALE)
@@ -82,7 +84,7 @@ int board_nand_init(struct nand_chip *nand)
        gpio->pclrr_timer = 0;
        gpio->podr_timer = 0;
 
-       nand->chip_delay = 50;
+       nand->chip_delay = 60;
        nand->ecc.mode = NAND_ECC_SOFT;
        nand->cmd_ctrl = nand_hwcontrol;
 
index 8d60fd66bf08bbfbef35328f4e96a86fbf72abbe..8eab49dff9ad8e3467de17f0a2aa980de7728621 100644 (file)
@@ -24,8 +24,8 @@
 #
 
 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
-ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
-PLATFORM_CPPFLAGS += -mcpu=5208 -fPIC
+ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
+PLATFORM_CPPFLAGS += -mcpu=52277 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5307 -fPIC
 endif
index 93645a31e0a086c4c12d6d2d9ec8cd4b93f12f50..fc7945451f02c4f84f05d7e0af4e50e906ca192a 100644 (file)
@@ -24,7 +24,7 @@
 #
 
 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
-ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
+ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
 PLATFORM_CPPFLAGS += -mcpu=5235 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5307 -fPIC
index 650e340aee8deea980598f84c2022e332ed4791d..829273617b4f9b825a8b566ea446461f06a0f163 100644 (file)
@@ -34,7 +34,7 @@ is5275:=$(shell grep CONFIG_M5275 $(TOPDIR)/include/$(cfg))
 is5282:=$(shell grep CONFIG_M5282 $(TOPDIR)/include/$(cfg))
 
 
-ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
+ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
 
 ifneq (,$(findstring CONFIG_M5249,$(is5249)))
 PLATFORM_CPPFLAGS += -mcpu=5249
index 16a0bc3264b1031b394d0180fd5dac5c6a08b269..0cb90ac4e2e0ba3ffab2c547ebd74229fca599c4 100644 (file)
@@ -24,7 +24,7 @@
 #
 
 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
-ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
+ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
 PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5307 -fPIC
index 67efa07af75b80641f2c7ae0024682853d0a20ac..b0b49f7b2623a5b6235b71b8604ac6d202dca01a 100644 (file)
@@ -24,7 +24,7 @@
 #
 
 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
-ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
+ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
 PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5407 -fPIC
index d5a7f937f201a9c69331a4111d37af38c87388f8..26fb2ce0cbd8933407fb19830358fe83eadf5c98 100644 (file)
@@ -243,9 +243,9 @@ wait1000:
        nop
 #elif defined(CONFIG_M54451EVB)
        /* Issue LEMR */
-       move.l  #(CONFIG_SYS_SDRAM_MODE), (%a2)
+       move.l  #(CONFIG_SYS_SDRAM_MODE), (%a1)
        nop
-       move.l  #(CONFIG_SYS_SDRAM_EMOD), (%a2)
+       move.l  #(CONFIG_SYS_SDRAM_EMOD), (%a1)
        nop
 #endif
 
index 567b28192640bbf1b16823b36bb35b53a5363e52..83102abbbbef4a3709785942c903de62a1c71013 100644 (file)
@@ -24,7 +24,7 @@
 #
 
 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
-ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
+ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
 PLATFORM_CPPFLAGS += -mcpu=5485 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5407 -fPIC
index 1ba57835e5454342fce37067e8444156c964e33a..96a3132b7838a67638a3f73ee8d44be8f8ef87db 100644 (file)
@@ -49,14 +49,14 @@ void cpu_init_f(void)
        volatile xlbarb_t *xlbarb = (volatile xlbarb_t *) MMAP_XARB;
 
        xlbarb->adrto = 0x2000;
-       xlbarb->datto = 0x2000;
+       xlbarb->datto = 0x2500;
        xlbarb->busto = 0x3000;
 
-       xlbarb->cfg = XARB_SR_AT | XARB_SR_DT;
+       xlbarb->cfg = XARB_CFG_AT | XARB_CFG_DT;
 
        /* Master Priority Enable */
-       xlbarb->pri = 0;
        xlbarb->prien = 0xff;
+       xlbarb->pri = 0;
 
 #if (defined(CONFIG_SYS_CS0_BASE) && defined(CONFIG_SYS_CS0_MASK) && defined(CONFIG_SYS_CS0_CTRL))
        fbcs->csar0 = CONFIG_SYS_CS0_BASE;
index 52bbb87e274e3c55ea760b3d5d9aa26d59b02f13..80cefc40aaf0bb43ac8dbbafac9c11520bd417b6 100644 (file)
 #define RTC_OCEN_OSCBYP                        (0x00000010)
 #define RTC_OCEN_CLKEN                 (0x00000008)
 
+/* SDRAM */
+#define SDRAMC_SDCR_CKE                        (0x40000000)
+#define SDRAMC_SDCR_REF                        (0x10000000)
+
 #endif                         /* m5301x_h */
index 5d5966fc03782229e09805b9c11ae104dda5e588..053a914eb729004ca82047d19d8311056e97f128 100644 (file)
 
 /* Initial Memory map for Linux */
 #define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTM_LEN           (CONFIG_SYS_SDRAM_SIZE << 20)
 
 /*
  * Configuration for environment
index 8c66f879e827d1b321909bc32b9c6174aed430ff..6b26c0bbc21732b0d63f327289017cbfa058f708 100644 (file)
  */
 /* Initial Memory map for Linux */
 #define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTM_LEN           (CONFIG_SYS_SDRAM_SIZE << 20)
 
 /*-----------------------------------------------------------------------
  * FLASH organization
index 378e45a4469b3ddbeafb7253047b3e096960eb89..1fea6c36a67807e2fa515b0975697b2a43c9f633 100644 (file)
  * the maximum mapped by the Linux kernel during initialization ??
  */
 #define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTM_LEN           (CONFIG_SYS_SDRAM_SIZE << 20)
 
 /* FLASH organization */
 #define CONFIG_SYS_FLASH_BASE          (CONFIG_SYS_CS0_BASE)
index 86de97d7d07c9467e2749a50af37ba5422a04548..cf8b773c28ea803fcf856e8f05f4589c7faeacc3 100644 (file)
  * the maximum mapped by the Linux kernel during initialization ??
  */
 #define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTM_LEN           (CONFIG_SYS_SDRAM_SIZE << 20)
 
 /* FLASH organization */
 #define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_CS0_BASE
index db48d7608b692acd0d21bb0ba169f3b2157f236f..210bb2deff633c9cba7fe6111030163763fe8990 100644 (file)
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial mmap for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTM_LEN           (CONFIG_SYS_SDRAM_SIZE << 20)
 
 /*-----------------------------------------------------------------------
  * FLASH organization
index df54c606be81ce160d1df0ffa6bf5967b13e5c36..07c85c4f5e72794b37d9d1ac7de3ff92aa6db8f0 100644 (file)
  * the maximum mapped by the Linux kernel during initialization ??
  */
 #define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTM_LEN           (CONFIG_SYS_SDRAM_SIZE << 20)
 
 /*-----------------------------------------------------------------------
  * FLASH organization
index 1f1586a215c87935f4c816339a69bc1392e4b940..a2d17c361c5f1aa872e64e02d701fd443f44364c 100644 (file)
  * the maximum mapped by the Linux kernel during initialization ??
  */
 #define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTM_LEN           (CONFIG_SYS_SDRAM_SIZE << 20)
 
 /*-----------------------------------------------------------------------
  * FLASH organization
index 19916876d38dfd40856a6fa837cdf8495c5f512f..98d800f3105675c9d45498c063ec8f188c9ac516 100644 (file)
  * the maximum mapped by the Linux kernel during initialization ??
  */
 #define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTM_LEN           (CONFIG_SYS_SDRAM_SIZE << 20)
 
 /*-----------------------------------------------------------------------
  * FLASH organization