[U-Boot] [PATCH] Adds WATCHDOG_RESET() function call to lib_m68k dtimer_interrupt.

2009-06-01 Thread Tsi-Chung Liew
From: Richard Retanubun richardretanu...@ruggedcom.com Ported from lib_ppc/interrupts.c, this adds the ability for the coldfire system timer to auto-reset the watchdog when dtimer_interrupts is called. Signed-off-by: Richard Retanubun richardretanu...@ruggedcom.com --- lib_m68k/time.c | 13

[U-Boot] [PATCH] Add I2C speed and divider formula for ColdFire

2009-04-09 Thread Tsi-Chung Liew
From: TsiChung Liew tsi-chung.l...@freescale.com Implement formula to obtain I2C speed and internal bus divider. This will provide accurate divider than fix table divider value. Signed-off-by: TsiChung Liew tsi-chung.l...@freescale.com --- drivers/i2c/fsl_i2c.c | 76

[U-Boot] [PATCH] ColdFire: Fix M54451 serial boot dram setup

2009-03-17 Thread Tsi-Chung Liew
From: TsiChung Liew tsi-chung.l...@freescale.com The serial boot dram extended/standard mode register was not setup and was using default DRAM setup causing the U-boot was unstable to boot up in serial mode. Signed-off-by: TsiChung Liew tsi-chung.l...@freescale.com --- cpu/mcf5445x/start.S |

[U-Boot] [PATCH] ColdFire: Provide gzip image size V2 V3 platforms

2009-03-17 Thread Tsi-Chung Liew
From: TsiChung Liew tsi-chung.l...@freescale.com Default gzip bootm size is 8MB. Some platforms require more than 8MB Signed-off-by: TsiChung Liew tsi-chung.l...@freescale.com --- include/configs/M52277EVB.h |1 + include/configs/M5235EVB.h |1 + include/configs/M5253DEMO.h |1 +

[U-Boot] [PATCH] ColdFire: Fix M5329EVB and M5373EVB nand issue

2009-03-17 Thread Tsi-Chung Liew
From: TsiChung Liew tsi-chung.l...@freescale.com The Nand flash was unable to read and write properly due to Nand Chip Select (nCE) setup was in reverse order. Also, increase the Nand time out value to 60. Signed-off-by: TsiChung Liew tsi-chung.l...@freescale.com ---

[U-Boot] [PATCH] ColdFire: Fix incorrect definition

2009-03-17 Thread Tsi-Chung Liew
From: TsiChung Liew tsi-chung.l...@freescale.com Signed-off-by: TsiChung Liew tsi-chung.l...@freescale.com --- include/asm-m68k/m5301x.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-m68k/m5301x.h b/include/asm-m68k/m5301x.h index 52bbb87..80cefc4 100644

[U-Boot] [PATCH] ColdFire: PLATFORM_CPPFLAGS updates for new compiler

2009-03-17 Thread Tsi-Chung Liew
From: TsiChung Liew tsi-chung.l...@freescale.com Update PLATFORM_CPPFLAGS to accept 4.3.x version of ColdFire compiler. Signed-off-by: TsiChung Liew tsi-chung.l...@freescale.com --- cpu/mcf5227x/config.mk |4 ++-- cpu/mcf523x/config.mk|2 +- cpu/mcf52x2/config.mk|2 +-

[U-Boot] [PATCH] ColdFire: Fix M5329EVB and M5373EVB nand issue

2008-10-27 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Fix compilation issue caused by a few mismatches. Provide proper nand chip select enable/disable in nand_hwcontrol() rather than in board_nand_init() just enable once. Remove redundant local nand driver functions - nand_read_byte(), nand_write_byte() and

[U-Boot] [PATCH v2 1/9] ColdFire: Remove linker file

2008-10-23 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Each different build for M54455EVB and M5235EVB will create a u-boot.lds linker file. It is redundant to keep the u-boot.lds Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- board/freescale/m5235evb/u-boot.lds | 144 --

[U-Boot] [PATCH v2 4/9] ColdFire: Relocate FEC's GPIO and mii functions protocols

2008-10-23 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Place FEC pin assignments in cpu_init.c from platform's mii.c Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- cpu/mcf523x/cpu_init.c | 24 +++- cpu/mcf52x2/cpu_init.c | 78 +++

[U-Boot] [PATCH v2 6/9] ColdFire: Use CFI driver for M5272C3

2008-10-23 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- board/freescale/m5272c3/Makefile |2 +- board/freescale/m5272c3/flash.c | 378 -- include/configs/M5272C3.h| 14 +- 3 files changed, 11 insertions(+), 383

[U-Boot] [PATCH v2 9/9] ColdFire: Fix compilation error

2008-10-23 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] The error was caused by the change for strmhz() in cpu.c. A few of them were one extra close parenthesis. Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- cpu/mcf5227x/cpu.c | 10 +- cpu/mcf523x/cpu.c |4 ++-- cpu/mcf532x/cpu.c |4 ++--

[U-Boot] [PATCH v2 5/9] ColdFire: Add mii driver in drivers/net

2008-10-23 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] All CF platforms' mii.c are consolidated into one Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- drivers/net/Makefile |4 +- drivers/net/mcffec.c | 18 +--- drivers/net/mcfmii.c | 321 ++ 3 files

[U-Boot] [PATCH 01/19] ColdFire: Remove linker file

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Each different build for M54455EVB and M5235EVB will create a u-boot.lds linker file. It is redundant to keep the u-boot.lds Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- board/freescale/m5235evb/u-boot.lds | 144 --

[U-Boot] [PATCH 02/19] ColdFire: Modules header files cleanup - 1

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Consolidate ATA, ePORT and QSPI structures and definitions in immap_5xxx.h to more unify modules header files. Append DSPI support for m547x_8x. Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- include/asm-m68k/coldfire/ata.h | 79

[U-Boot] [PATCH 04/19] ColdFire: Modules header files cleanup - 3

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Consolidate RNG, MDHA and SKHA structures and definitions in immap_5xxx.h and m5xxx.h to more unify modules header files. SSI cleanup. Remove USB Host structure from immap_5329.h Signed-off-by: TsiChung Liew [EMAIL PROTECTED] ---

[U-Boot] [PATCH 03/19] ColdFire: Modules header files cleanup - 2

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Consolidate FlexCan and PWM structures and definitions in immap_5xxx.h and m5xxx.h to more unify modules header files Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- include/asm-m68k/coldfire/flexcan.h | 219 +++

[U-Boot] [PATCH 05/19] ColdFire: Modules header files cleanup - 4

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Consolidate interrupt control structures and definitions in immap_5xxx.h and m5xxx.h to more unify module header file - 1 Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- include/asm-m68k/coldfire/intctrl.h | 246 +++

[U-Boot] [PATCH 06/19] ColdFire: Modules header files cleanup - 5

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Consolidate interrupt control structures and definitions in immap_5xxx.h and m5xxx.h to more unify module header file - 2 Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- include/asm-m68k/m5227x.h | 233 +--

[U-Boot] [PATCH 07/19] ColdFire: Modules header files cleanup - 6

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Consolidate FlexBus structures and definitions in immap_5xxx.h and m5xxx.h to more unify modules header files. Apply changes to mcf52x2's cpu_init.c Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- cpu/mcf52x2/cpu_init.c | 271

[U-Boot] [PATCH 08/19] ColdFire: Remove platforms mii.c file - 1

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Will use mcfmii.c driver in drivers/net rather than keep creating new mii.c for each future platform. Remove EB+MCF-EV123, cobra5272, idmr and M5235EVB's mii.c Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- board/BuS/EB+MCF-EV123/Makefile |2 +-

[U-Boot] [PATCH 09/19] ColdFire: Remove platforms mii.c file - 2

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Will use mcfmii.c driver in drivers/net rather than keep creating new mii.c for each future platform. Remove M5271EVB, M5272C3, M5275EVB and M5282EVB's mii.c Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- board/freescale/m5271evb/Makefile |2 +-

[U-Boot] [PATCH 10/19] ColdFire: Remove platforms mii.c file - 3

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Will use mcfmii.c driver in drivers/net rather than keep creating new mii.c for each future platform. Remove M5329EVB, M5373EVB, M54451EVB M54455EVB's mii.c Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- board/freescale/m5329evb/Makefile |2 +-

[U-Boot] [PATCH 12/19] ColdFire: Relocate FEC's GPIO and mii functions protocols

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Place FEC pin assignments in cpu_init.c from platform's mii.c Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- cpu/mcf523x/cpu_init.c | 24 +++- cpu/mcf52x2/cpu_init.c | 78 +++

[U-Boot] [PATCH 13/19] ColdFire: Add mii driver in drivers/net

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] All CF platforms' mii.c are consolidated into one Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- drivers/net/Makefile |4 +- drivers/net/mcffec.c | 18 +--- drivers/net/mcfmii.c | 321 ++ 3 files

[U-Boot] [PATCH 14/19] ColdFire: Use CFI driver for M5272C3

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- board/freescale/m5272c3/Makefile |2 +- board/freescale/m5272c3/flash.c | 378 -- include/configs/M5272C3.h| 14 +- 3 files changed, 11 insertions(+), 383

[U-Boot] [PATCH 15/19] ColdFire: Add SBF support for M52277EVB

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Add serial boot support Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- Makefile | 22 +++- board/freescale/m52277evb/config.mk |4 +- board/freescale/m52277evb/m52277evb.c | 26 +++-

[U-Boot] [PATCH 16/19] ColdFire: Add MCF5301x CPU support

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- cpu/mcf532x/cpu.c | 21 +- cpu/mcf532x/cpu_init.c | 202 cpu/mcf532x/speed.c| 119 cpu/mcf532x/start.S| 11

[U-Boot] [PATCH 19/19] ColdFire: Fix compilation error

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] The error was caused by the change for strmhz() in cpu.c. A few of them were one extra close parenthesis. Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- cpu/mcf5227x/cpu.c | 10 +- cpu/mcf523x/cpu.c |4 ++-- cpu/mcf532x/cpu.c |4 ++--

[U-Boot] [PATCH 18/19] ColdFire: Add M53017EVB Platform

2008-10-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- MAINTAINERS |1 + MAKEALL |1 + Makefile |3 + board/freescale/m53017evb/Makefile| 44 ++

[U-Boot] [PATCH] mtd: SPI Flash: Support the STMicro Flash

2008-08-28 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Add MTD SPI Flash support for M25P16, M25P20, M25P32, M25P40, M25P64, M25P80, M25P128. Signed-off-by: Jason McMullan [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- drivers/mtd/spi/Makefile |1 +

[U-Boot] [PATCH] mtd: SPI Flash: Support the STMicro Flash

2008-08-22 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Add MTD SPI Flash support for M25P16, M25P20, M25P32, M25P40, M25P64, M25P80, M25P128. Signed-off-by: Jason McMullan [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- drivers/mtd/spi/Makefile |1 +

[U-Boot] [PATCH] mtd: SPI Flash: Support the STMicro Flash

2008-08-21 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Add MTD SPI Flash support for M25P16, M25P40, M25P64, and M25P80. Signed-off-by: Jason McMullan [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- drivers/mtd/spi/stmicro.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 1/8] ColdFire: Fix board.c warning message

2008-08-21 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Implicit declaration of nand_init() warning message Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- lib_m68k/board.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lib_m68k/board.c b/lib_m68k/board.c index e59c6b0..9f4442e

[U-Boot] [PATCH 7/8] ColdFire: Add CONFIG_MII_INIT for M5272C3

2008-08-21 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- include/configs/M5272C3.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/M5272C3.h b/include/configs/M5272C3.h index 9f1585e..fc457e3 100644 ---

[U-Boot] [PATCH 5/8] ColdFire: Fix compiling error

2008-08-21 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Caused by typo and non-related function Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- board/freescale/m5329evb/nand.c |4 ++-- board/freescale/m5373evb/nand.c |4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH] ColdFire: Add FEC Buffer descriptors in SRAM

2008-08-19 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Add FEC Buffer descriptors and data buffer in SRAM for faster execution and access. Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- drivers/net/mcffec.c | 42 -- 1 files changed, 36 insertions(+), 6 deletions(-)

[U-Boot] [PATCH] Change CFG_ENV_SIZE to CFG_ENV_SECT_SIZE for SPI sector erase

2008-08-12 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] The CFG_ENV_SIZE is not suitable used for SPI flash erase sector size if CFG_ENV_SIZE is less than CFG_ENV_SECT_SIZE. Add condition check if CFG_ENV_SIZE is larger than CFG_ENV_SECT_SIZE, calculate the right number of sectors for erasing. Signed-off-by:

[U-Boot] [PATCH] ColdFire: Add SSPI feature for MCF5445x

2008-08-12 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- cpu/mcf5445x/dspi.c | 178 +-- include/configs/M54455EVB.h | 16 - lib_m68k/board.c| 17 3 files changed, 204 insertions(+), 7

[U-Boot] [PATCH] ColdFire: Implement SBF feature for M5445EVB

2008-08-12 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- Makefile | 16 ++- board/freescale/m54455evb/m54455evb.c | 14 ++- board/freescale/m54455evb/u-boot.stm | 136 + cpu/mcf5445x/cpu_init.c |

[U-Boot] [PATCH] ColdFire: Multiple fixes for M5282EVB

2008-08-12 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Incorrect CFG_HZ value, change 100 to 1000. Rename #waring to #warning. RAMBAR1 uses twice in start.S, rename the later to FLASHBAR. Insert nop for DRAM setup. And, env_offset in linker file. Signed-off-by: TsiChung Liew [EMAIL PROTECTED] ---

[U-Boot] [PATCH] ColdFire: Fix M5253EVB dram bring up issue

2008-08-12 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- board/freescale/m5253evbe/m5253evbe.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/board/freescale/m5253evbe/m5253evbe.c b/board/freescale/m5253evbe/m5253evbe.c index

[U-Boot] [PATCH] ColdFire: Raise M5253EVBE uart baudrate to 115200 bps

2008-08-12 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- include/configs/M5253EVBE.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/configs/M5253EVBE.h b/include/configs/M5253EVBE.h index f5e1b64..5653a39 100644 ---

[U-Boot] [PATCH] Change CFG_ENV_SIZE to CFG_ENV_SECT_SIZE for SPI sector erase

2008-08-12 Thread Tsi-Chung Liew
From: TsiChung Liew [EMAIL PROTECTED] The CFG_ENV_SIZE is not suitable used for SPI flash erase sector size. Signed-off-by: TsiChung Liew [EMAIL PROTECTED] --- common/env_sf.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/env_sf.c b/common/env_sf.c index