platform/kernel/u-boot.git
16 years agoIntroduce netdev.h header file and remove externs
Ben Warren [Mon, 1 Sep 2008 05:22:04 +0000 (22:22 -0700)]
Introduce netdev.h header file and remove externs

This addresses all drivers whose initializers have already
been moved to board_eth_init()/cpu_eth_init().

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoAdd pixis_set_sgmii command
Andy Fleming [Sun, 31 Aug 2008 21:33:30 +0000 (16:33 -0500)]
Add pixis_set_sgmii command

The 8544DS and 8572DS platforms support an optional SGMII riser card to
expose ethernet over an SGMII interface.  Once the card is in, it is also
necessary to configure the board such that it uses the card, rather than
the on-board ethernet ports.  This can either be done by flipping dip switches
on the motherboard, or by modifying registers in the pixis.  Either way
requires a reboot.

This adds a command to allow users to choose which ports are routed through
the SGMII card, and which through the onboard ports.  It also allows users
to revert to the current switch settings.

This code does not work on the 8572, as the PIXIS is different.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoAdd SGMII support for the 8544 DS
Andy Fleming [Sun, 31 Aug 2008 21:33:29 +0000 (16:33 -0500)]
Add SGMII support for the 8544 DS

The 8544 DS has an optional SGMII Riser card, which uses different PHY
addresses.  Check if we are in SGMII mode, and invoke the SGMII Riser
setup code if so.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoAdd support for Freescale SGMII Riser Card
Andy Fleming [Sun, 31 Aug 2008 21:33:28 +0000 (16:33 -0500)]
Add support for Freescale SGMII Riser Card

The 8544DS and 8572DS systems have an optional SGMII riser card which
exposes new ethernet ports which are connected to the eTSECs via an
SGMII interface.  The SGMII PHYs for this board are offset from the standard
PHY addresses, so this code modifies the passed in tsec_info structure to
use the SGMII PHYs on the card, instead.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoAdd SGMII support to the tsec
Andy Fleming [Sun, 31 Aug 2008 21:33:27 +0000 (16:33 -0500)]
Add SGMII support to the tsec

Adds support for configuring the TBI to talk properly with the SerDes.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoPass in tsec_info struct through tsec_initialize
Andy Fleming [Sun, 31 Aug 2008 21:33:26 +0000 (16:33 -0500)]
Pass in tsec_info struct through tsec_initialize

The tsec driver contains a hard-coded array of configuration information
for the tsec ethernet controllers.  We create a default function that works
for most tsecs, and allow that to be overridden by board code.  It creates
an array of tsec_info structures, which are then parsed by the corresponding
driver instance to determine configuration.  Also, add regs, miiregs, and
devname fields to the tsec_info structure, so that we don't need the kludgy
"index" parameter.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agotsec: Move tsec.h to include/
Andy Fleming [Sun, 31 Aug 2008 21:33:25 +0000 (16:33 -0500)]
tsec: Move tsec.h to include/

This is to prepare the way for board code passing in the tsec_info structure

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoPHY: Add support for the M88E1121R Marvell chip.
Sergei Poselenov [Fri, 6 Jun 2008 13:52:44 +0000 (15:52 +0200)]
PHY: Add support for the M88E1121R Marvell chip.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoMerge branch 'Makefile' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Sun, 31 Aug 2008 22:16:29 +0000 (00:16 +0200)]
Merge branch 'Makefile' of git://git.denx.de/u-boot-arm

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Sun, 31 Aug 2008 22:06:05 +0000 (00:06 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Sun, 31 Aug 2008 22:04:26 +0000 (00:04 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Wolfgang Denk [Sun, 31 Aug 2008 22:03:40 +0000 (00:03 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-sh

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc5xxx
Wolfgang Denk [Sun, 31 Aug 2008 21:53:22 +0000 (23:53 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc5xxx

16 years agosh: Remove CC line from board's Makefile
Nobuhiro Iwamatsu [Sun, 31 Aug 2008 14:28:15 +0000 (23:28 +0900)]
sh: Remove CC line from board's Makefile

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Replaced "@./mkconfig" for @$(MKCONFIG)
Nobuhiro Iwamatsu [Sun, 31 Aug 2008 14:25:57 +0000 (23:25 +0900)]
sh: Replaced "@./mkconfig" for @$(MKCONFIG)

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Add support sh2 to MAKEALL
Nobuhiro Iwamatsu [Thu, 28 Aug 2008 05:50:52 +0000 (14:50 +0900)]
sh: Add support sh2 to MAKEALL

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Fix compile error rsk7203 board
Nobuhiro Iwamatsu [Thu, 28 Aug 2008 05:52:23 +0000 (14:52 +0900)]
sh: Fix compile error rsk7203 board

This boards used old type preprocessor.
This patch fix compile error.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Fix compile error sh7785lcr board
Nobuhiro Iwamatsu [Thu, 28 Aug 2008 05:53:31 +0000 (14:53 +0900)]
sh: Fix compile error sh7785lcr board

This boards used old type preprocessor.
This patch fix compile error.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Renesas Solutions AP325RXA board support
Nobuhiro Iwamatsu [Fri, 22 Aug 2008 08:39:09 +0000 (17:39 +0900)]
sh: Renesas Solutions AP325RXA board support

AP325RXA is SH7723's reference board.
This has SCIF, NOR Flash, Ethernet, USB host, LCDC, SD Host, Camera and other.
In this patch, support SCIF, NOR Flash, and Ethernet.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: add support Renesas SH7723
Nobuhiro Iwamatsu [Fri, 22 Aug 2008 08:48:51 +0000 (17:48 +0900)]
sh: add support Renesas SH7723

Renesas SH7723 has 5 SCIF, SD, Camera, LCDC and other.
This patch supports CPU register's header file and SCIF serial driver.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Renesas RSK+ 7203 board support
Nobuhiro Iwamatsu [Sun, 31 Aug 2008 14:02:04 +0000 (23:02 +0900)]
sh: Renesas RSK+ 7203 board support

This adds initial support for the RTE RSK+ SH7203 board.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Add support Renesas SH7203 processor
Nobuhiro Iwamatsu [Thu, 3 Jul 2008 14:11:02 +0000 (23:11 +0900)]
sh: Add support Renesas SH7203 processor

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Add support SH2/SH2A which is CPU of Renesas Technology
Nobuhiro Iwamatsu [Sun, 31 Aug 2008 13:48:33 +0000 (22:48 +0900)]
sh: Add support SH2/SH2A which is CPU of Renesas Technology

Add support SH2/SH2A basic function.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: Renesas R0P7785LC0011RL board support
Nobuhiro Iwamatsu [Sun, 31 Aug 2008 13:45:08 +0000 (22:45 +0900)]
sh: Renesas R0P7785LC0011RL board support

This board has SH7785, 512MB DDR2-SDRAM, NOR Flash,
Graphic, Ethernet, USB, SD, RTC, and I2C controller.

This patch supports the following functions:
 - 128MB DDR2-SDRAM (29-bit address mode only)
 - NOR Flash
 - USB host
 - Ethernet

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agosh: add support for SH7785
Yoshihiro Shimoda [Thu, 10 Jul 2008 10:32:53 +0000 (19:32 +0900)]
sh: add support for SH7785

Renesas SH7785 has DDR2-SDRAM controller, PCI, and other.
This patch supports CPU register's header file.

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agodavinci: fix remaining dm644x_eth
Jean-Christophe PLAGNIOL-VILLARD [Sun, 31 Aug 2008 02:45:42 +0000 (04:45 +0200)]
davinci: fix remaining dm644x_eth

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agofs: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Sun, 31 Aug 2008 02:24:56 +0000 (04:24 +0200)]
fs: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodevices: merge to list_head
Jean-Christophe PLAGNIOL-VILLARD [Sun, 31 Aug 2008 02:24:55 +0000 (04:24 +0200)]
devices: merge to list_head

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoupdate linux/list
Jean-Christophe PLAGNIOL-VILLARD [Sun, 31 Aug 2008 02:24:51 +0000 (04:24 +0200)]
update linux/list

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agosmdk6400: add gitignore
Jean-Christophe PLAGNIOL-VILLARD [Sat, 30 Aug 2008 22:39:48 +0000 (00:39 +0200)]
smdk6400: add gitignore

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agosmdk6400: Use CONFIG_FLASH_CFI_DRIVER
Jean-Christophe PLAGNIOL-VILLARD [Sat, 30 Aug 2008 22:39:48 +0000 (00:39 +0200)]
smdk6400: Use CONFIG_FLASH_CFI_DRIVER

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agosmdk6400: remove redundant bootargs definition
Guennadi Liakhovetski [Sat, 30 Aug 2008 22:39:47 +0000 (00:39 +0200)]
smdk6400: remove redundant bootargs definition

Double bootargs setting leads to a duplicated environmant entry.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoARM: Add support for S3C6400 based SMDK6400 board
Guennadi Liakhovetski [Sat, 30 Aug 2008 22:39:47 +0000 (00:39 +0200)]
ARM: Add support for S3C6400 based SMDK6400 board

SMDK6400 can only boot U-Boot from NAND-flash. This patch adds a nand_spl
driver for it too. The board can also boot from the NOR flash, but due to
hardware limitations it can only address 64KiB on it, which is not enough
for U-Boot. Based on the original sources by Samsung for U-Boot 1.1.6.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoNAND: add NAND driver for S3C64XX
Guennadi Liakhovetski [Sat, 30 Aug 2008 22:39:47 +0000 (00:39 +0200)]
NAND: add NAND driver for S3C64XX

Based on the original S3C64XX NAND driver by Samsung for U-Boot 1.1.6.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoS3C64XX: remove broken HWFLOW support from the serial driver
Guennadi Liakhovetski [Sat, 30 Aug 2008 22:39:47 +0000 (00:39 +0200)]
S3C64XX: remove broken HWFLOW support from the serial driver

As noted by Harald Welte, HWFLOW support in the S3C64XX serial driver is
broken and currently unused. Remove it.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoserial: add S3C64XX serial driver
Guennadi Liakhovetski [Sat, 30 Aug 2008 22:39:47 +0000 (00:39 +0200)]
serial: add S3C64XX serial driver

Based on the original S3C64XX UART driver by Samsung for U-Boot 1.1.6.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoUSB: Add support for OHCI controller on S3C6400
Guennadi Liakhovetski [Sat, 30 Aug 2008 22:39:46 +0000 (00:39 +0200)]
USB: Add support for OHCI controller on S3C6400

Notice: USB on S3C6400 currently works _only_ with switched off MMU. One could
try to enable the MMU, but map addresses 1-to-1, and disable data cache, then
it should work too and we could still profit from instruction cache.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoARM: Add arm1176 core with S3C6400 SoC
Guennadi Liakhovetski [Sat, 30 Aug 2008 22:39:46 +0000 (00:39 +0200)]
ARM: Add arm1176 core with S3C6400 SoC

Based on the original S3C64XX port by Samsung for U-Boot 1.1.6.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoARM DaVinci: Changing function names for EMAC driver
Sandeep Paulraj [Sat, 30 Aug 2008 22:39:46 +0000 (00:39 +0200)]
ARM DaVinci: Changing function names for EMAC driver

DM644x is just one of a series of DaVinci chips that use the EMAC driver.
By replacing all the function names that start with dm644x_* to davinci_*
we make these function more portable. I have tested this change on my EVM.
DM6467 is another DaVinci SOC which uses the EMAC driver and i will
be sending patches that add DaVinci DM6467 support to the list soon.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
16 years agoIntegrator[AP/CP] - Remove unused file memsetup.S
Gururaja Hebbar K R [Sat, 30 Aug 2008 21:21:30 +0000 (23:21 +0200)]
Integrator[AP/CP] - Remove unused file memsetup.S

- memsetup.s is changed/merged to lowlevel_init.S
  memsetup.S has a global label memsetup that just returns back to caller
- memsetup global label is changed/merged to lowlevel_init
  This label is not called from anywhere.

Signed-off-by: Gururaja Hebbar <gururajakr@sanyo.co.in>
16 years agoARM DaVinci: Standardize names of directories/files
Hugo Villeneuve [Wed, 27 Aug 2008 19:35:52 +0000 (21:35 +0200)]
ARM DaVinci: Standardize names of directories/files

ARM DaVinci: Standardize names of directories/files.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoARM DaVinci: Move common functions to board/davinci/common
Hugo Villeneuve [Fri, 11 Jul 2008 19:10:13 +0000 (15:10 -0400)]
ARM DaVinci: Move common functions to board/davinci/common

ARM DaVinci: Move common functions to board/davinci/common.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
16 years agoppc4xx/NAND: Add select_chip function to 4xx NDFC driver
Stefan Roese [Fri, 29 Aug 2008 09:56:49 +0000 (11:56 +0200)]
ppc4xx/NAND: Add select_chip function to 4xx NDFC driver

This function is needed for the new NAND infrastructure. We only need
a dummy implementation though for the NDFC.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Increase image size for NAND boot target
Stefan Roese [Fri, 29 Aug 2008 10:06:27 +0000 (12:06 +0200)]
ppc4xx: Increase image size for NAND boot target

This is needed since now with HUSH enabled (amcc-common.h) the image
read from NAND exceeds the previous limit.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoMove MPC512x_FEC driver to drivers/net
Ben Warren [Fri, 29 Aug 2008 06:58:30 +0000 (23:58 -0700)]
Move MPC512x_FEC driver to drivers/net

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoMove MPC5xxx_FEC driver to drivers/net
Ben Warren [Fri, 29 Aug 2008 06:58:29 +0000 (23:58 -0700)]
Move MPC5xxx_FEC driver to drivers/net

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agocmd_terminal: remove no need ifdef
Jean-Christophe PLAGNIOL-VILLARD [Fri, 29 Aug 2008 19:53:57 +0000 (21:53 +0200)]
cmd_terminal: remove no need ifdef

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agocommon/Makefile: order by functionality
Jean-Christophe PLAGNIOL-VILLARD [Fri, 29 Aug 2008 19:53:57 +0000 (21:53 +0200)]
common/Makefile: order by functionality

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agomiiphyutil: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Fri, 29 Aug 2008 19:53:56 +0000 (21:53 +0200)]
miiphyutil: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoautoscript: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Fri, 29 Aug 2008 19:53:37 +0000 (21:53 +0200)]
autoscript: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agocrc16: move to lib_generic
Jean-Christophe PLAGNIOL-VILLARD [Thu, 28 Aug 2008 23:18:11 +0000 (01:18 +0200)]
crc16: move to lib_generic

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agomiiphybb: move to drivers/net/phy
Jean-Christophe PLAGNIOL-VILLARD [Thu, 28 Aug 2008 23:18:01 +0000 (01:18 +0200)]
miiphybb: move to drivers/net/phy

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agosoft_spi: move to drivers/spi
Jean-Christophe PLAGNIOL-VILLARD [Thu, 28 Aug 2008 10:31:51 +0000 (12:31 +0200)]
soft_spi: move to drivers/spi

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agosoft_i2c: move to drivers/i2c
Jean-Christophe PLAGNIOL-VILLARD [Thu, 28 Aug 2008 10:31:51 +0000 (12:31 +0200)]
soft_i2c: move to drivers/i2c

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agogunzip: move to lib_generic
Jean-Christophe PLAGNIOL-VILLARD [Thu, 28 Aug 2008 10:31:48 +0000 (12:31 +0200)]
gunzip: move to lib_generic

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoppc4xx: NAND configuration
Wolfgang Ocker [Tue, 26 Aug 2008 17:55:23 +0000 (19:55 +0200)]
ppc4xx: NAND configuration

Made NAND bank configuration setting a config variable.

Signed-off-by: Wolfgang Ocker <weo@reccoware.de>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: fix UIC external_interrupt hang on UIC0
Victor Gallardo [Thu, 28 Aug 2008 23:03:28 +0000 (16:03 -0700)]
ppc4xx: fix UIC external_interrupt hang on UIC0

This patch fixes a UIC external_interrupt hang if critical or non-critical
interrupt is set at the same time as a normal interrupt is set on UIC0.

Signed-off-by: Victor Gallardo <vgallardo@amcc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Optimizations/Cleanups for IBM DDR2 Memory Controller
Prodyut Hazarika [Wed, 27 Aug 2008 23:39:00 +0000 (16:39 -0700)]
ppc4xx: Optimizations/Cleanups for IBM DDR2 Memory Controller

Removed Magic numbers from Initialization preload registers
Tested with Kilauea, Glacier, Canyonlands and Katmai boards
About 5-7% improvement seen for LMBench memtests

Signed-off-by: Prodyut Hazarika <phazarika@amcc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoADS5121: Fix NOR and CPLD ALE timing for rev 2 silicon
John Rigby [Thu, 28 Aug 2008 19:17:07 +0000 (13:17 -0600)]
ADS5121: Fix NOR and CPLD ALE timing for rev 2 silicon

MPC5121 rev 2 silicon has a new register for controlling how long
CS is asserted after deassertion of ALE in multiplexed mode.

The default is to assert CS together with ALE.  The alternative
is to assert CS (ALEN+1)*LPC_CLK clocks after deassertion of ALE.

The default is wrong for the NOR flash and CPLD on the ADS5121.

This patch turns on the alternative for CS0 (NOR) and CS2 (CPLD)
it does so conditionally based on silicon rev 2.0 or greater.

Signed-off-by: Martha J Marx <mmarx@silicontkx.com>
Signed-off-by: John Rigby <jrigby@freescale.com>
16 years agoAdd I2C frequency dividers for ColdFire
TsiChung Liew [Mon, 18 Aug 2008 18:56:46 +0000 (00:56 +0600)]
Add I2C frequency dividers for ColdFire

The existing I2C freqency dividers for FDR does not apply
to ColdFire platforms; thus, a seperate table is added
based on MCF5xxx Reference Manual

Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Acked-by: Tabi Timur <timur@freescale.com>
16 years agoColdFire: I2C fix for multiple platforms
TsiChung Liew [Mon, 18 Aug 2008 21:01:19 +0000 (03:01 +0600)]
ColdFire: I2C fix for multiple platforms

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Add CONFIG_MII_INIT for M5272C3
TsiChung Liew [Mon, 18 Aug 2008 18:37:13 +0000 (00:37 +0600)]
ColdFire: Add CONFIG_MII_INIT for M5272C3

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Multiple fixes for MCF5445x platforms
TsiChung Liew [Mon, 18 Aug 2008 18:26:25 +0000 (00:26 +0600)]
ColdFire: Multiple fixes for MCF5445x platforms

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>
16 years agoColdFire: Change the SDRAM BRD2WT timing from 3 to 7
TsiChung Liew [Fri, 15 Aug 2008 18:24:25 +0000 (18:24 +0000)]
ColdFire: Change the SDRAM BRD2WT timing from 3 to 7

The user manuals recommend 7.

Signed-off-by: Kurt Mahan <kmahan@freescale.com>
Acked-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Raise uart baudrate to 115200 bps
TsiChung Liew [Fri, 15 Aug 2008 16:50:07 +0000 (16:50 +0000)]
ColdFire: Raise uart baudrate to 115200 bps

M5249EVB, M5271EVB, M5272C3, M5275EVB and M5282EVB platforms
uart baudrate increase from 19200 to 115200 bps

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Fix board.c warning message
TsiChung Liew [Wed, 13 Aug 2008 12:07:03 +0000 (12:07 +0000)]
ColdFire: Fix board.c warning message

Implicit declaration of nand_init() warning message

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Wed, 27 Aug 2008 22:39:43 +0000 (00:39 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc5xxx
Wolfgang Denk [Wed, 27 Aug 2008 22:39:27 +0000 (00:39 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc5xxx

16 years agoFSL DDR: Remove duplicate setting of cs0_bnds register on 86xx.
Kumar Gala [Wed, 27 Aug 2008 06:10:34 +0000 (01:10 -0500)]
FSL DDR: Remove duplicate setting of cs0_bnds register on 86xx.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Wed, 27 Aug 2008 22:26:52 +0000 (00:26 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

16 years agompc52xx: added support for the MPC5200 based MUC.MC52 board from MAN.
Heiko Schocher [Thu, 21 Aug 2008 18:44:49 +0000 (20:44 +0200)]
mpc52xx: added support for the MPC5200 based MUC.MC52 board from MAN.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agompc85xx: remove redudant code with lib_ppc/interrupts.c
Kumar Gala [Tue, 19 Aug 2008 19:46:36 +0000 (14:46 -0500)]
mpc85xx: remove redudant code with lib_ppc/interrupts.c

For some reason we duplicated the majority of code in lib_ppc/interrupts.c
not show how that happened, but there is no good reason for it.

Use the interrupt_init_cpu() and timer_interrupt_cpu() since its why
they exist.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agompc85xx: Add support for the MPC8536DS reference board
Kumar Gala [Fri, 25 Jul 2008 18:31:05 +0000 (13:31 -0500)]
mpc85xx: Add support for the MPC8536DS reference board

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
Signed-off-by: Dejan Minic <minic@freescale.com>
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agompc85xx: Add support for the MPC8536
Kumar Gala [Tue, 12 Aug 2008 16:14:19 +0000 (11:14 -0500)]
mpc85xx: Add support for the MPC8536

The MPC8536 Adds SDHC and SATA controllers to the PQ3 family.  We
also have SERDES init code for the 8536.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
Signed-off-by: Dejan Minic <minic@freescale.com>
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agompc85xx: Add support for the MPC8572DS reference board
Kumar Gala [Tue, 12 Aug 2008 16:13:08 +0000 (11:13 -0500)]
mpc85xx: Add support for the MPC8572DS reference board

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Remove old SPD support from cpu/mpc85xx
Kumar Gala [Wed, 27 Aug 2008 06:05:35 +0000 (01:05 -0500)]
FSL DDR: Remove old SPD support from cpu/mpc85xx

All 85xx boards have been converted to the new code so we can
remove the old SPD DDR setup code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert STXSSA to new DDR code.
Kumar Gala [Wed, 27 Aug 2008 06:04:07 +0000 (01:04 -0500)]
FSL DDR: Convert STXSSA to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert STXGP3 to new DDR code.
Kumar Gala [Wed, 27 Aug 2008 06:03:42 +0000 (01:03 -0500)]
FSL DDR: Convert STXGP3 to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert SBC8560 to new DDR code.
Kumar Gala [Wed, 27 Aug 2008 04:52:58 +0000 (23:52 -0500)]
FSL DDR: Convert SBC8560 to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert MPC8540EVAL to new DDR code.
Kumar Gala [Wed, 27 Aug 2008 04:52:32 +0000 (23:52 -0500)]
FSL DDR: Convert MPC8540EVAL to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert PM856 to new DDR code.
Kumar Gala [Wed, 27 Aug 2008 04:52:07 +0000 (23:52 -0500)]
FSL DDR: Convert PM856 to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert PM854 to new DDR code.
Kumar Gala [Wed, 27 Aug 2008 04:51:49 +0000 (23:51 -0500)]
FSL DDR: Convert PM854 to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert sbc8548 to new DDR code.
Kumar Gala [Wed, 27 Aug 2008 04:15:28 +0000 (23:15 -0500)]
FSL DDR: Convert sbc8548 to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert atum8548 to new DDR code.
Kumar Gala [Wed, 27 Aug 2008 04:14:14 +0000 (23:14 -0500)]
FSL DDR: Convert atum8548 to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert socrates to new DDR code.
Kumar Gala [Wed, 27 Aug 2008 03:56:56 +0000 (22:56 -0500)]
FSL DDR: Convert socrates to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert MPC8544DS to new DDR code.
Kumar Gala [Tue, 26 Aug 2008 13:02:30 +0000 (08:02 -0500)]
FSL DDR: Convert MPC8544DS to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert MPC8568MDS to new DDR code.
Jon Loeliger [Tue, 18 Mar 2008 18:51:05 +0000 (13:51 -0500)]
FSL DDR: Convert MPC8568MDS to new DDR code.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert MPC8548CDS to new DDR code.
Jon Loeliger [Tue, 18 Mar 2008 18:51:06 +0000 (13:51 -0500)]
FSL DDR: Convert MPC8548CDS to new DDR code.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert MPC8541CDS to new DDR code.
Jon Loeliger [Mon, 17 Mar 2008 20:48:18 +0000 (15:48 -0500)]
FSL DDR: Convert MPC8541CDS to new DDR code.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert MPC8555ADS to new DDR code.
Jon Loeliger [Tue, 18 Mar 2008 16:12:42 +0000 (11:12 -0500)]
FSL DDR: Convert MPC8555ADS to new DDR code.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert MPC8560ADS to new DDR code.
Jon Loeliger [Tue, 18 Mar 2008 16:12:44 +0000 (11:12 -0500)]
FSL DDR: Convert MPC8560ADS to new DDR code.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert MPC8540ADS to new DDR code.
Kumar Gala [Fri, 6 Jun 2008 18:12:18 +0000 (13:12 -0500)]
FSL DDR: Convert MPC8540ADS to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Add 85xx specific register setting
Kumar Gala [Wed, 27 Aug 2008 02:34:55 +0000 (21:34 -0500)]
FSL DDR: Add 85xx specific register setting

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Add e500 TLB helper for DDR code
Kumar Gala [Mon, 9 Jun 2008 16:07:46 +0000 (11:07 -0500)]
FSL DDR: Add e500 TLB helper for DDR code

Provide a helper function that board code can call to map TLBs when
setting up DDR.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agodm9000 remove dead external phy support, gpio fix
Andrew Dyer [Tue, 26 Aug 2008 22:03:38 +0000 (17:03 -0500)]
dm9000 remove dead external phy support, gpio fix

dm9000 has code to detect and initialize external phy parts, but later
on in the code the part is forced to use the internal phy
unconditionally.  Remove the unused/untested code.

change the GPIO initialization so that only the GPIO used as an
internal phy reset (hardwired in the chip) is set as an output.  The
remaining GPIO need to be handled by board specific code to prevent
possible drive conflicts.  Set as inputs for safety.

replace a few magic numbers with defines

Signed-off-by: Andrew Dyer <adyer@righthandtech.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoStandardize bootp, tftpboot, rarpboot, dhcp, and nfs command descriptions
Peter Tyser [Tue, 26 Aug 2008 16:17:48 +0000 (11:17 -0500)]
Standardize bootp, tftpboot, rarpboot, dhcp, and nfs command descriptions

cmd_net.c command descriptions were updated to describe the optional
hostIPaddr argument.  The dhcp command help message was also updated
to more closely reflect the other commands in cmd_net.c

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoFix bogus error message in the DHCP handler
Remy Bohmer [Wed, 20 Aug 2008 09:30:28 +0000 (11:30 +0200)]
Fix bogus error message in the DHCP handler

The DHCP handler has 1 state that is not listed in this case, causing a
failure message when there is actually no failure.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoFix compile error when CONFIG_BOOTP_RANDOM_DELAY is set.
Remy Bohmer [Wed, 20 Aug 2008 09:30:27 +0000 (11:30 +0200)]
Fix compile error when CONFIG_BOOTP_RANDOM_DELAY is set.

The option CONFIG_BOOTP_RANDOM_DELAY does not compile, because of a
missing extern inside the net/bootp.h header

Signed-off-by: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoColdFire: Add FEC Buffer descriptors in SRAM
TsiChung Liew [Tue, 19 Aug 2008 21:26:32 +0000 (21:26 +0000)]
ColdFire: Add FEC Buffer descriptors in SRAM

Add FEC Buffer descriptors and data buffer in SRAM for
faster execution and access.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoFix ColdFire FEC warning messages
TsiChung Liew [Thu, 21 Aug 2008 23:55:11 +0000 (23:55 +0000)]
Fix ColdFire FEC warning messages

Types mismatch and implicit declaration of icache_invalid()
warning messages

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>