platform/kernel/u-boot.git
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 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>
16 years agoMoved initialization of SKGE Ethernet driver to board code.
Ben Warren [Sat, 12 Jul 2008 07:17:50 +0000 (00:17 -0700)]
Moved initialization of SKGE Ethernet driver to board code.

The only board using this driver is the SL8245 board.
Removed initialization for the driver from net/eth.c

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoMoved conditional compilation to Makefile for SK98 Ethernet driver
Ben Warren [Sat, 12 Jul 2008 07:08:45 +0000 (00:08 -0700)]
Moved conditional compilation to Makefile for SK98 Ethernet driver

Brute-force removal of #ifdefs.  Didn't touch the code.
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoMoved initialization of ULI526X Ethernet driver to board code.
Ben Warren [Sat, 12 Jul 2008 06:42:19 +0000 (23:42 -0700)]
Moved initialization of ULI526X Ethernet driver to board code.

The only board using this driver is the Freescale MPC8610HPCD board.
Removed initialization for the driver from net/eth.c

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoMoved initialization of Blackfin EMAC Ethernet controller to board_eth_init()
Ben Warren [Sat, 12 Jul 2008 06:15:28 +0000 (23:15 -0700)]
Moved initialization of Blackfin EMAC Ethernet controller to board_eth_init()

Added board_eth_init() function to bf537-stamp board.
Removed initialization for the Blackin EMAC driver from net/eth.c

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoMoved initialization of GRETH Ethernet driver to CPU directory
Ben Warren [Wed, 9 Jul 2008 08:04:19 +0000 (01:04 -0700)]
Moved initialization of GRETH Ethernet driver to CPU directory

Added a cpu_eth_init() function to leon2/leon3 CPU directories and
removed code from net/eth.c

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoMoved initialization of MCFFEC Ethernet driver to CPU directory
Ben Warren [Wed, 27 Aug 2008 05:16:25 +0000 (22:16 -0700)]
Moved initialization of MCFFEC Ethernet driver to CPU directory

Added a cpu_eth_init() function to coldfire CPU directories and
removed code from net/eth.c

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoMoved initialization of FSL_MCDMAFEC Ethernet driver to CPU directory
Ben Warren [Wed, 27 Aug 2008 05:12:36 +0000 (22:12 -0700)]
Moved initialization of FSL_MCDMAFEC Ethernet driver to CPU directory

Added a cpu_eth_init() function to cpu/mcf547x_8x directory and
removed code from net/eth.c

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoFSL DDR: Remove old SPD support from cpu/mpc86xx
Kumar Gala [Tue, 26 Aug 2008 20:01:38 +0000 (15:01 -0500)]
FSL DDR: Remove old SPD support from cpu/mpc86xx

All 86xx 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 SBC8641D to new DDR code.
Kumar Gala [Tue, 26 Aug 2008 20:01:37 +0000 (15:01 -0500)]
FSL DDR: Convert SBC8641D to new DDR code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Convert MPC8610HPCD to new DDR code.
Jon Loeliger [Tue, 26 Aug 2008 20:01:36 +0000 (15:01 -0500)]
FSL DDR: Convert MPC8610HPCD 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 MPC8641HPCN to new DDR code.
Kumar Gala [Tue, 26 Aug 2008 20:01:35 +0000 (15:01 -0500)]
FSL DDR: Convert MPC8641HPCN 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: Add 86xx specific register setting
Kumar Gala [Tue, 26 Aug 2008 20:01:34 +0000 (15:01 -0500)]
FSL DDR: Add 86xx specific register setting

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Add DDR2 DIMM paramter support
Kumar Gala [Tue, 26 Aug 2008 20:01:32 +0000 (15:01 -0500)]
FSL DDR: Add DDR2 DIMM paramter support

Compute DIMM parameters based upon the SPD information.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Add DDR1 DIMM paramter support
Kumar Gala [Tue, 26 Aug 2008 20:01:30 +0000 (15:01 -0500)]
FSL DDR: Add DDR1 DIMM paramter support

Compute DIMM parameters based upon the SPD information in spd.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Rewrite the FSL mpc8xxx DDR controller setup code.
Kumar Gala [Tue, 26 Aug 2008 20:01:29 +0000 (15:01 -0500)]
FSL DDR: Rewrite the FSL mpc8xxx DDR controller setup code.

The main purpose of this rewrite it to be able to share the same
initialization code on all FSL PowerPC products that have DDR
controllers.  (83xx, 85xx, 86xx).

The code is broken up into the following steps:
GET_SPD
COMPUTE_DIMM_PARMS
COMPUTE_COMMON_PARMS
GATHER_OPTS
ASSIGN_ADDRESSES
COMPUTE_REGS
PROGRAM_REGS

This allows us to share more code an easily allow for board specific code
overrides.

Additionally this code base adds support for >4G of DDR and provides a
foundation for supporting interleaving on processors with more than one
controller.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL DDR: Provide a generic set_ddr_laws()
Kumar Gala [Tue, 26 Aug 2008 20:01:28 +0000 (15:01 -0500)]
FSL DDR: Provide a generic set_ddr_laws()

Provide a helper function that will setup the last available
LAWs (upto 2) for DDR.  Useful for SPD/dyanmic DDR setting code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoAdd proper SPD definitions for DDR1/2/3
James Yang [Tue, 26 Aug 2008 20:01:27 +0000 (15:01 -0500)]
Add proper SPD definitions for DDR1/2/3

Also adds helper functions for DDR1/2 to verify the checksum.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoUpdate CHANGELOG
Wolfgang Denk [Tue, 26 Aug 2008 23:02:48 +0000 (01:02 +0200)]
Update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoAdd support for muas3001 board (MPC8270)
Heiko Schocher [Tue, 19 Aug 2008 08:08:49 +0000 (10:08 +0200)]
Add support for muas3001 board (MPC8270)

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agocommon/cmd_load.c cleanup - remove unused variables
Gururaja Hebbar K R [Tue, 19 Aug 2008 03:01:18 +0000 (08:31 +0530)]
common/cmd_load.c cleanup - remove unused variables

- Remove unused global variable os_data_count.
- Remove unused variable z.

Signed-off-by: Gururaja Hebbar <gururajakr@sanyo.co.in>
16 years agoremove MVS1 board
Andre Schwarz [Mon, 18 Aug 2008 11:35:27 +0000 (13:35 +0200)]
remove MVS1 board

MVS1 board has reached end-of-life and can be removed completely.

Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
16 years agobootm: refactor do_reset and os boot function args
Kumar Gala [Fri, 15 Aug 2008 13:24:45 +0000 (08:24 -0500)]
bootm: refactor do_reset and os boot function args

There is no need for each OS specific function to call do_reset() we
can just do it once in bootm. This means its feasible on an error for
the OS boot function to return.

Also, remove passing in cmd_tbl_t as its not needed by the OS boot
functions.  flag isn't currently used but might be in the future so
we left it alone.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agofdt: Added resize command
Kumar Gala [Fri, 15 Aug 2008 13:24:44 +0000 (08:24 -0500)]
fdt: Added resize command

Resize the fdt to size + padding to 4k boundary

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agofdt: refactor initrd related code
Kumar Gala [Fri, 15 Aug 2008 13:24:43 +0000 (08:24 -0500)]
fdt: refactor initrd related code

Created a new fdt_initrd() to deal with setting the initrd properties
in the device tree and fixing up the mem reserve.  We can use this
both in the choosen node handling and lets us remove some duplicated
code when we fixup the initrd info in bootm on PPC.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agofdt: refactor fdt resize code
Kumar Gala [Fri, 15 Aug 2008 13:24:42 +0000 (08:24 -0500)]
fdt: refactor fdt resize code

Move the fdt resizing code out of ppc specific boot code and into
common fdt support code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agobootm: refactor image detection and os load steps
Kumar Gala [Fri, 15 Aug 2008 13:24:41 +0000 (08:24 -0500)]
bootm: refactor image detection and os load steps

Created a bootm_start() that handles the parsing and detection of all
the images that will be used by the bootm command (OS, ramdisk, fdt).
As part of this we now tract all the relevant image offsets in the
bootm_headers_t struct. This will allow us to have all the needed
state for future sub-commands and lets us reduce a bit of arch
specific code on SPARC.

Created a bootm_load_os() that deals with decompression and loading
the OS image.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agobootm: move lmb into the bootm_headers_t structure
Kumar Gala [Fri, 15 Aug 2008 13:24:40 +0000 (08:24 -0500)]
bootm: move lmb into the bootm_headers_t structure

To allow for persistent state between future bootm subcommands we
need the lmb to exist in a global state.
Moving it into the bootm_headers_t allows us to do that.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agobootm: Set working fdt address as part of the bootm flow
Kumar Gala [Fri, 15 Aug 2008 13:24:39 +0000 (08:24 -0500)]
bootm: Set working fdt address as part of the bootm flow

Set the fdt working address so "fdt FOO" commands can be used as part
of the bootm flow.  Also set an the environment variable "fdtaddr"
with the value.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agobootm: refactor fdt locating and relocation code
Kumar Gala [Fri, 15 Aug 2008 13:24:38 +0000 (08:24 -0500)]
bootm: refactor fdt locating and relocation code

Move the code that handles finding a device tree blob and relocating
it (if needed) into common code so all arch's have access to it.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agobootm: refactor ramdisk locating code
Kumar Gala [Fri, 15 Aug 2008 13:24:37 +0000 (08:24 -0500)]
bootm: refactor ramdisk locating code

Move determing if we have a ramdisk and where its located into the
common code. Keep track of the ramdisk start and end in the
bootm_headers_t image struct.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agobootm: refactor entry point code
Kumar Gala [Fri, 15 Aug 2008 13:24:36 +0000 (08:24 -0500)]
bootm: refactor entry point code

Move entry point code out of each arch and into common code.
Keep the entry point in the bootm_headers_t images struct.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agompc7448hpc2: Fix PCI I/O space mapping.
Randy Vinson [Wed, 13 Aug 2008 18:44:57 +0000 (11:44 -0700)]
mpc7448hpc2: Fix PCI I/O space mapping.

PCI I/O space is currently mapped 1:1 at 0xFA000000. Linux requires
PCI I/O space to start at 0 on the PCI bus. This patch maps PCI I/O
space such that 0xFA000000 in the processor's address space maps to 0
on the PCI I/O bus.

Signed-off-by Randy Vinson <rvinson@mvista.com>
Acked-by: Roy Zang <tie-fei.zang@freescale.com>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Tue, 26 Aug 2008 21:14:58 +0000 (23:14 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

16 years agoi.MX31: Specify maintainers for i.MX31-based boards
Guennadi Liakhovetski [Wed, 13 Aug 2008 16:10:26 +0000 (18:10 +0200)]
i.MX31: Specify maintainers for i.MX31-based boards

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoADS5121: adjust image addresses in RAM and flash
Wolfgang Denk [Tue, 26 Aug 2008 13:01:28 +0000 (15:01 +0200)]
ADS5121: adjust image addresses in RAM and flash

Use the same mapping in flash as used by Linux

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agocmd_mem.c: Fix help message alignment
Wolfgang Denk [Tue, 26 Aug 2008 11:14:34 +0000 (13:14 +0200)]
cmd_mem.c: Fix help message alignment

Bug was introced by "Big white-space cleanup" (53677ef1)

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agochange mvBL-M7 default env and move to vendor subdir
Andre Schwarz [Wed, 20 Aug 2008 09:11:52 +0000 (11:11 +0200)]
change mvBL-M7 default env and move to vendor subdir

fix mvBL-M7 config and move to matrix_vision subdir

Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoMPC83XX: Add miscellaneous registers and #defines to support MPC83xx family devices
Nick Spence [Sat, 23 Aug 2008 06:52:40 +0000 (23:52 -0700)]
MPC83XX: Add miscellaneous registers and #defines to support MPC83xx family devices

This patch adds elements to the 83xx sysconf structure and #define values that are used
by mpc83xx family devices.

Signed-off-by: Nick Spence <nick.spence@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoMPC8349EMDS: Add PCI Agent (PCISLAVE) support
Ira W. Snyder [Fri, 22 Aug 2008 18:00:15 +0000 (11:00 -0700)]
MPC8349EMDS: Add PCI Agent (PCISLAVE) support

Add the ability for the MPC8349EMDS to run in PCI Agent mode, acting as a
PCI card rather than a host computer.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: add PCISLAVE support to 83XX_GENERIC_PCI setup code
Ira W. Snyder [Fri, 22 Aug 2008 18:00:14 +0000 (11:00 -0700)]
mpc83xx: add PCISLAVE support to 83XX_GENERIC_PCI setup code

This adds a helper function to unlock the PCI configuration bit, so that
any extra PCI setup (such as outbound windows, etc.) can be done after
using the 83XX_GENERIC_PCI code to set up the PCI bus.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoMPC8349EMDS: use 83XX_GENERIC_PCI setup code
Ira W. Snyder [Fri, 22 Aug 2008 18:00:13 +0000 (11:00 -0700)]
MPC8349EMDS: use 83XX_GENERIC_PCI setup code

Change the MPC8349EMDS board to use the generic PCI initialization code
for the mpc83xx cpu.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agofix out of tree building
Kim Phillips [Mon, 25 Aug 2008 19:53:09 +0000 (14:53 -0500)]
fix out of tree building

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoMerge branch 'next'
Kim Phillips [Mon, 25 Aug 2008 22:02:10 +0000 (17:02 -0500)]
Merge branch 'next'

16 years agoMinor coding style cleanup, updte CHANGELOG
Wolfgang Denk [Mon, 25 Aug 2008 21:45:41 +0000 (23:45 +0200)]
Minor coding style cleanup, updte CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Mon, 25 Aug 2008 21:34:22 +0000 (23:34 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

16 years agoRTC: Fix Makefile problem with COBJS-$(CONFIG_RTC_DS1307 || CONFIG_RTC_DS1338)
Stefan Roese [Wed, 20 Aug 2008 18:29:38 +0000 (20:29 +0200)]
RTC: Fix Makefile problem with COBJS-$(CONFIG_RTC_DS1307 || CONFIG_RTC_DS1338)

This "||" doesn't seem to work. Now using the idea suggest by Scott Wood
to combine both config options into one line. This even allows defining
both options and not generating the target object twice.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoMX31: fix bit masks in function mx31_decode_pll()
Jens Gehrlein [Fri, 4 Jul 2008 14:50:05 +0000 (16:50 +0200)]
MX31: fix bit masks in function mx31_decode_pll()

Bits MPCTL[MFN] and MPCTL[MFD] were not fully covered.

Signed-off-by: Jens Gehrlein <sew_s@tqs.de>
16 years agoCorrect ARM Versatile Timer Initialization
Gururaja Hebbar K R [Mon, 25 Aug 2008 09:11:34 +0000 (11:11 +0200)]
Correct ARM Versatile Timer Initialization

 - According to ARM Dual-Timer Module (SP804) TRM (ARM DDI0271),
   -- Timer Value Register @ TIMER Base + 4 is Read-only.
   -- Prescale Value (Bits 3-2 of TIMER Control register)
can only be one of 00,01,10. 11 is undefined.
   -- CFG_HZ for Versatile board is set to
#define CFG_HZ (1000000 / 256)
So Prescale bits is set to indicate
- 8 Stages of Prescale, Clock divided by 256
 - The Timer Control Register has one Undefined/Shouldn't Use Bit
   So we should do read/modify/write Operation

Signed-off-by: Gururaja Hebbar <gururajakr@sanyo.co.in>
16 years agoAdd ARM AMBA PL031 RTC Support
Gururaja Hebbar K R [Mon, 25 Aug 2008 09:30:29 +0000 (11:30 +0200)]
Add ARM AMBA PL031 RTC Support

Signed-off-by: Gururaja Hebbar K R <gururajakr@sanyo.co.in>
16 years agoARM DaVinci: Removed redundant NAND initialization code.
Hugo Villeneuve [Tue, 19 Aug 2008 20:21:03 +0000 (16:21 -0400)]
ARM DaVinci: Removed redundant NAND initialization code.

ARM DaVinci: Removed redundant NAND initialization code.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
16 years agoARM DaVinci: Fix compilation error with new MTD code.
Hugo Villeneuve [Tue, 19 Aug 2008 20:21:00 +0000 (16:21 -0400)]
ARM DaVinci: Fix compilation error with new MTD code.

ARM DaVinci: Fix compilation error with new MTD code.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
16 years agoAdd note on dereferencing /aliases pointers
Gerald Van Baren [Fri, 22 Aug 2008 18:37:05 +0000 (14:37 -0400)]
Add note on dereferencing /aliases pointers

Replace the "must quote special characters" note with a hint on
how to dereference /aliases pointers by omitting the leading "/".
This feature was introduced by Kumar Gala as a libfdt enhancement
in commit ed035708235332c3c117ee3bb1a426063f03cfcb.

Example:

=> fdt print /aliases
aliases {
        ethernet0 = "/qe@e0100000/ucc@2000";
        ethernet1 = "/qe@e0100000/ucc@3000";
        serial0 = "/soc8360@e0000000/serial@4500";
        serial1 = "/soc8360@e0000000/serial@4600";
        pci0 = "/pci@e0008500";
};
=> fdt print ethernet0
ucc@2000 {
        device_type = "network";
        compatible = "ucc_geth";
        cell-index = <0x1>;
        reg = <0x2000 0x200>;
        interrupts = <0x20>;
        interrupt-parent = <0x2>;
        local-mac-address = [00 00 00 00 00 00];
        rx-clock-name = "none";
        tx-clock-name = "clk9";
        phy-handle = <0x3>;
        phy-connection-type = "rgmii-id";
        pio-handle = <0x4>;
};

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agolibfdt: Add support for using aliases in fdt_path_offset()
Kumar Gala [Thu, 14 Aug 2008 13:28:19 +0000 (08:28 -0500)]
libfdt: Add support for using aliases in fdt_path_offset()

If the path doesn't start with '/' check to see if it matches some alias
under "/aliases" and substitute the matching alias value in the path
and retry the lookup.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agolibfdt: Implement fdt_get_property_namelen() and fdt_getprop_namelen()
David Gibson [Wed, 6 Aug 2008 04:50:49 +0000 (14:50 +1000)]
libfdt: Implement fdt_get_property_namelen() and fdt_getprop_namelen()

As well as fdt_subnode_offset(), libfdt includes an
fdt_subnode_offset_namelen() function that takes the subnode name to
look up not as a NUL-terminated string, but as a string with an
explicit length.  This can be useful when the caller has the name as
part of a longer string, such as a full path.

However, we don't have corresponding 'namelen' versions for
fdt_get_property() and fdt_getprop().  There are less obvious use
cases for these variants on property names, but there are
circumstances where they can be useful e.g. looking up property names
which need to be parsed from a longer string buffer such as user input
or a configuration file, or looking up an alias in a path with
IEEE1275 style aliases.

So, since it's very easy to implement such variants, this patch does
so.  The original NUL-terminated variants are, of course, implemented
in terms of the namelen versions.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
16 years agolibfdt: Forgot one function when cleaning the namespace
David Gibson [Tue, 29 Jul 2008 04:51:22 +0000 (14:51 +1000)]
libfdt: Forgot one function when cleaning the namespace

In commit b6d80a20fc293f3b995c3ce1a6744a5574192125, we renamed all
libfdt functions to be prefixed with fdt_ or _fdt_ to minimise the
chance of collisions with things from whatever package libfdt is
embedded in, pulled into the libfdt build via that environment's
libfdt_env.h.

Except... I missed one.  This patch applies the same treatment to
_stringlist_contains().  While we're at it, also make it static since
it's only used in the same file.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
16 years agolibfdt: Improve documentation in libfdt.h
Wolfram Sang [Wed, 9 Jul 2008 09:22:44 +0000 (11:22 +0200)]
libfdt: Improve documentation in libfdt.h

Fix a few typos and mistakes.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
16 years agolibfdt: Increase namespace-pollution paranoia
David Gibson [Wed, 9 Jul 2008 04:10:24 +0000 (14:10 +1000)]
libfdt: Increase namespace-pollution paranoia

libfdt is supposed to easy to embed in projects all and sundry.
Often, it won't be practical to separate the embedded libfdt's
namespace from that of the surrounding project.  Which means there can
be namespace conflicts between even libfdt's internal/static functions
and functions or macros coming from the surrounding project's headers
via libfdt_env.h.

This patch, therefore, renames a bunch of libfdt internal functions
and macros and makes a few other chances to reduce the chances of
namespace collisions with embedding projects.  Specifically:
- Internal functions (even static ones) are now named _fdt_*()

- The type and (static) global for the error table in
          fdt_strerror() gain an fdt_ prefix

- The unused macro PALIGN is removed

- The memeq and streq macros are removed and open-coded in the
          users (they were only used once each)

- Other macros gain an FDT_ prefix

- To save some of the bulk from the previous change, an
          FDT_TAGALIGN() macro is introduced, where FDT_TAGALIGN(x) ==
          FDT_ALIGN(x, FDT_TAGSIZE)

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
16 years agodtc: Enable and fix -Wcast-qual warnings
David Gibson [Mon, 7 Jul 2008 00:14:15 +0000 (10:14 +1000)]
dtc: Enable and fix -Wcast-qual warnings

Enabling -Wcast-qual warnings in dtc shows up a number of places where
we are incorrectly discarding a const qualification.  There are also
some places where we are intentionally discarding the 'const', and we
need an ugly cast through uintptr_t to suppress the warning.  However,
most of these are pretty well isolated with the *_w() functions.  So
in the interests of maximum safety with const qualifications, this
patch enables the warnings and fixes the existing complaints.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agodtc: Enable and fix -Wpointer-arith warnings
David Gibson [Mon, 7 Jul 2008 00:10:48 +0000 (10:10 +1000)]
dtc: Enable and fix -Wpointer-arith warnings

This patch turns on the -Wpointer-arith option in the dtc Makefile,
and fixes the resulting warnings due to using (void *) in pointer
arithmetic.  While convenient, pointer arithmetic on void * is not
portable, so it's better that we avoid it, particularly in libfdt.

Also add necessary definition of uintptr_t needed by David Gibson's
changeset "dtc: Enable and fix -Wpointer-arith warnings" (the definition
comes from stdint.h, which u-boot doesn't have). -- gvb

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Fri, 22 Aug 2008 22:10:43 +0000 (00:10 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

16 years agoppc4xx: AMCC PPC460GT/EX PCI-E de-emphasis adjustment fix
Tirumala R Marri [Fri, 22 Aug 2008 04:54:53 +0000 (21:54 -0700)]
ppc4xx: AMCC PPC460GT/EX PCI-E de-emphasis adjustment fix

During recent PCI-E tests it has been found that current
driverl level and de-emphasis values are not set correctly.
After sweeping throgh all de-ephasis values, it was found that
0x130 is a right value. Where 0x13 is driver level and 0 is
de-emphasis.

Signed-off-by: Tirumala R Marri <tmarri@amcc.com>
Signed-off-by: Stefan Roese <sr@denx.de>