]> git.sur5r.net Git - u-boot/log
u-boot
16 years agompc83xx: Reduce the latency of DDR
Dave Liu [Thu, 10 Jan 2008 15:07:23 +0000 (23:07 +0800)]
mpc83xx: Reduce the latency of DDR

Reduce the AL from 2 to 1 clock to improve the performance.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: Fix the wrong definition of MPC8315E
Dave Liu [Thu, 10 Jan 2008 15:06:05 +0000 (23:06 +0800)]
mpc83xx: Fix the wrong definition of MPC8315E

According to the latest user manual of MPC8315E,
1) The SVCOD of HRCWL is different than 837x
2) The SCCR has changes

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: Fix the typo in mpc83xx.h
Dave Liu [Thu, 10 Jan 2008 15:05:00 +0000 (23:05 +0800)]
mpc83xx: Fix the typo in mpc83xx.h

The SPCR about TSEC priority is wrong.

Signed-off-by: Michael Barkowski <Michael.Barkowski@freescale.com>
Signed-off-by: Joe D'Abbraccio <Joe.D'abbraccio@freescale.com>
Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: Fix the typo in global data struct
Dave Liu [Thu, 10 Jan 2008 15:04:13 +0000 (23:04 +0800)]
mpc83xx: Fix the typo in global data struct

Fix the typo in global_data.h

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: Remove cache config from config.h
Dave Liu [Thu, 10 Jan 2008 15:03:03 +0000 (23:03 +0800)]
mpc83xx: Remove cache config from config.h

clean up the cache config from configs.h of board

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: add support for the MPC8360E-RDK
Anton Vorontsov [Wed, 9 Jan 2008 17:57:47 +0000 (20:57 +0300)]
mpc83xx: add support for the MPC8360E-RDK

This is MPC8360E based board with:
- 256MB fixed SDRAM;
- 8MB Intel Strata NOR flash;
- StMICRO 64MiB NAND flash;
- two 10/100/1000 ethernet ports connected via Broadcom
  BCM5481 PHYs;
- two 10/100 ethernet ports connected via National
  DP83848 PHYs;
- one PCI and one miniPCI slots;
- four serial ports (two NS16550-compatible, two UCCs);
- four USB ports working through MPC8360E "FHCI" USB controller;
- Fujitsu MB86277 graphics controller;
- Analog to Digital Converter/Touchscreen controller, AD7843
  connected to SPI.

Features not supported in this patch are:
- StMICRO 64MiB NAND flash (patch sent);
- MINT framebuffer initialization (patch is pending);
- Fetching production information from the EEPROM via I2C;
- FHCI USB;
- Two slow UCCs used as RS-485 UARTs.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: add "fsl, qe" compatible fixups
Anton Vorontsov [Wed, 9 Jan 2008 17:57:40 +0000 (20:57 +0300)]
mpc83xx: add "fsl, qe" compatible fixups

New device trees will use "fsl,qe" compatible properties.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: add missing CONFIG_HAS_ETH0 defines
Kim Phillips [Wed, 9 Jan 2008 21:24:06 +0000 (15:24 -0600)]
mpc83xx: add missing CONFIG_HAS_ETH0 defines

the new libfdt code only updates eth0 if CONFIG_HAS_ETH0
is defined; add the define to the missing board configs.

Thanks to Emilian Medve for finding this.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoFix Ethernet init() return codes
Ben Warren [Wed, 9 Jan 2008 23:15:53 +0000 (18:15 -0500)]
Fix Ethernet init() return codes

Change return values of init() functions in all Ethernet drivers to conform
to the following:

    >=0: Success
    <0:  Failure

All drivers going forward should return 0 on success.  Current drivers that
return 1 on success were left as-is to minimize changes.

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-By: Timur Tabi <timur@freescale.com>
16 years agoCoding Style cleanup; update CHANGELOG
Wolfgang Denk [Wed, 9 Jan 2008 23:55:14 +0000 (00:55 +0100)]
Coding Style cleanup; update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc85xx
Wolfgang Denk [Wed, 9 Jan 2008 23:49:59 +0000 (00:49 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-mpc85xx

16 years agoAdd QE brg freq and correct qe bus freq fdt update code
Kim Phillips [Wed, 9 Jan 2008 22:56:54 +0000 (16:56 -0600)]
Add QE brg freq and correct qe bus freq fdt update code

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agoMerge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
Wolfgang Denk [Wed, 9 Jan 2008 22:43:10 +0000 (23:43 +0100)]
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master

16 years agoRemove cache config from ATUM8548 and sbc8548 configs
Andy Fleming [Wed, 9 Jan 2008 22:34:51 +0000 (16:34 -0600)]
Remove cache config from ATUM8548 and sbc8548 configs

These boards weren't updated by Kumar's config patch because they
weren't in the tree, yet.

Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years ago85xx: add ability to upload QE firmware
Timur Tabi [Mon, 7 Jan 2008 19:31:19 +0000 (13:31 -0600)]
85xx: add ability to upload QE firmware

Define the layout of a binary blob that contains a QE firmware and instructions
on how to upload it.  Add function qe_upload_firmware() to parse the blob and
perform the actual upload.  Add command-line command "qe fw" to take a firmware
blob in memory and upload it.  Update ft_cpu_setup() on 85xx to create the
'firmware' device tree node if U-Boot has uploaded a firmware.  Fully define
'struct rsp' in immap_qe.h to include the actual RISC Special Registers.

Signed-off-by: Timur Tabi <timur@freescale.com>
16 years ago85xx: Remove cache config from configs.h
Kumar Gala [Tue, 8 Jan 2008 07:22:21 +0000 (01:22 -0600)]
85xx: Remove cache config from configs.h

Either use the standard defines in asm/cache.h or grab the information
at runtime from the L1CFG SPR.

Also, minor cleanup in cache.h to make the code a bit more readable.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agompc85xx: Add support for ATUM8548 (updated)
robert lazarski [Fri, 21 Dec 2007 15:39:27 +0000 (10:39 -0500)]
mpc85xx: Add support for ATUM8548 (updated)

Add support for Instituto Atlantico's ATUM8548 board

Signed-off-by: robert lazarski <robertlazarski@gmail.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agompc85xx: Add support for ATUM8548 (updated)
robert lazarski [Fri, 21 Dec 2007 15:36:37 +0000 (10:36 -0500)]
mpc85xx: Add support for ATUM8548 (updated)

Add support for Instituto Atlantico's ATUM8548 board

Signed-off-by: robert lazarski <robertlazarski@gmail.com>
16 years agompc85xx: Add support for SBC8548 (updated)
Joe Hamman [Thu, 13 Dec 2007 12:45:14 +0000 (06:45 -0600)]
mpc85xx: Add support for SBC8548 (updated)

Add support for Wind River's SBC8548 reference board.

Signed-off by: Joe Hamman <joe.hamman@embeddedspecialties.com>

16 years agompc85xx: Add support for SBC8548 (updated)
Joe Hamman [Thu, 13 Dec 2007 12:45:08 +0000 (06:45 -0600)]
mpc85xx: Add support for SBC8548 (updated)

Add support for Wind River's SBC8548 reference board.

Signed-off by: Joe Hamman <joe.hamman@embeddedspecialties.com>
Signed-off by: Andy Fleming <afleming@freescale.com>

16 years agoMPC8568E-MDS: set up QE pario for UART1
Anton Vorontsov [Mon, 22 Oct 2007 15:58:19 +0000 (19:58 +0400)]
MPC8568E-MDS: set up QE pario for UART1

To use UART1 on the MPC8568E-MDS, QE pario pins PC[0:3] should
be set up appropriately.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agoMPC8568E-MDS: reset UCCs to use them reliably
Anton Vorontsov [Mon, 22 Oct 2007 14:12:46 +0000 (18:12 +0400)]
MPC8568E-MDS: reset UCCs to use them reliably

In order to use GETH1 and GETH2 on the MPC8568E-MDS, we should reset
UCCs.

p.s Similar code exists in the Linux kernel board file (for capability
reasons with older U-Boots), but should be removed some day.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agoReworked FSL Book-E TLB macros to be more readable
Kumar Gala [Wed, 19 Dec 2007 07:18:15 +0000 (01:18 -0600)]
Reworked FSL Book-E TLB macros to be more readable

The old macros made it difficult to know what WIMGE and perm bits
were set for a TLB entry.  Actually use the bit masks for these items
since they are only a single bit.

Also moved the macros into mmu.h out of e500.h since they aren't specific
to e500.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoUse FSL Book-E MMU macros from Linux Kernel
Kumar Gala [Wed, 19 Dec 2007 05:21:51 +0000 (23:21 -0600)]
Use FSL Book-E MMU macros from Linux Kernel

Grab the FSL Book-E MAS register macros from Linux.  Also added
defines for page sizes up to 4TB and removed SHAREN since it doesnt
really exist.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFix my own merge stupidity
Andy Fleming [Wed, 9 Jan 2008 19:51:32 +0000 (13:51 -0600)]
Fix my own merge stupidity

Way back in August I merged Heiko's patch:
566a494f592: [PCS440EP] upgrade the PCS440EP board

with Jon's CONFIG_COMMANDS patches.

This was done in commit: 6bf6f114dcdd97ec3f80c2761ed40e31229d6b78

However, in the process, I left out some of Heiko's good changes.

Now Heiko's and Jon's patches are properly merged in fat_register_device()

Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Wed, 9 Jan 2008 22:06:57 +0000 (23:06 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-freebsd
Wolfgang Denk [Wed, 9 Jan 2008 22:06:15 +0000 (23:06 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-freebsd

16 years agoMerge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
Wolfgang Denk [Wed, 9 Jan 2008 21:53:39 +0000 (22:53 +0100)]
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master

16 years agoExpose parse_line() globally.
James Yang [Wed, 9 Jan 2008 17:17:49 +0000 (11:17 -0600)]
Expose parse_line() globally.

Add new function readline_into_buffer() that allows the
output of readline to be put into a pointer to char buffer.

This refactoring allows other functions besides the
main command loop to also use the same input mechanism.

Signed-off-by: James Yang <James.Yang@freescale.com>
Acked-by: Jon Loeliger <jdl@freescale.com>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-usb
Wolfgang Denk [Wed, 9 Jan 2008 21:41:02 +0000 (22:41 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-usb

16 years agotrivial: fix consequences of a bad merge
Guennadi Liakhovetski [Wed, 9 Jan 2008 00:15:25 +0000 (01:15 +0100)]
trivial: fix consequences of a bad merge

Fix what looks like a merge artifact.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoAdd Ctrl combo key support to usb keyboard driver.
Zhang Wei [Thu, 3 Jan 2008 02:51:15 +0000 (10:51 +0800)]
Add Ctrl combo key support to usb keyboard driver.

Ctrl combo key support is added, which is very useful to input Ctrl-C
for interrupt current job.
Also add usb_event_poll() calling to usb_kbd_testc(), which can get
key input when tstc() is called.

Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
16 years agofix various comments
Marcel Ziswiler [Sun, 30 Dec 2007 02:30:56 +0000 (03:30 +0100)]
fix various comments

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
16 years agofix comments with new drivers organization
Marcel Ziswiler [Sun, 30 Dec 2007 02:30:46 +0000 (03:30 +0100)]
fix comments with new drivers organization

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
16 years agoRemove the obsolete terse version of do_mii()
Shinya Kuribayashi [Fri, 28 Dec 2007 03:50:59 +0000 (12:50 +0900)]
Remove the obsolete terse version of do_mii()

We now have more useful version of do_mii() and everybody use it.
Gerald Van Baren says:

> When I originally wrote the mii command 6(!) years ago, I wrote a
> verbose version that printed human readable decomposition of the flags,
> etc., and a terse one that didn't print as much stuff and thus had a
> smaller memory footprint.
>
> It sounds like the terse version has withered and died, apparently
> people are only using the verbose version (which is very understandable,
> I do myself).

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agoDo not reference sha1.c when building mkimage.
Mike Frysinger [Thu, 27 Dec 2007 18:42:56 +0000 (13:42 -0500)]
Do not reference sha1.c when building mkimage.

remove sha1.o from mkimage linking since it isn't actually used.

Signed-Off-By: Mike Frysinger <vapier@gentoo.org>
16 years agocommon/cmd_mii.c: Add sanity argc check
Shinya Kuribayashi [Thu, 27 Dec 2007 06:39:54 +0000 (15:39 +0900)]
common/cmd_mii.c: Add sanity argc check

If type mii command without arguments, we suffer from uninitialized argv[]
entries; for example we MIPS get stuck by TLB error.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/master/
Wolfgang Denk [Wed, 9 Jan 2008 20:34:46 +0000 (21:34 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/master/

16 years agoAPI for external applications.
Rafal Jaworowski [Wed, 9 Jan 2008 18:39:36 +0000 (19:39 +0100)]
API for external applications.

This is an API for external (standalone) applications running on top of
U-Boot, and is meant to be more extensible and robust than the existing
jumptable mechanism. It is similar to UNIX syscall approach. See api/README
for more details.

Included is the demo application using this new framework (api_examples).

Please note this is still an experimental feature, and is turned off by
default.

Signed-off-by: Rafal Jaworowski <raj@semihalf.com>
16 years agoGlobalize envmatch()
Rafal Jaworowski [Wed, 9 Jan 2008 17:05:27 +0000 (18:05 +0100)]
Globalize envmatch()

The newly introduced API (routines related to env vars) will need to call
it.

Signed-off-by: Rafal Zabdyr <armo@semihalf.com>
16 years agoCoding Style cleanup, update CHANGELOG
Wolfgang Denk [Wed, 9 Jan 2008 14:14:46 +0000 (15:14 +0100)]
Coding Style cleanup, update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agofix easylogo on big endian dev systems
Mike Frysinger [Tue, 18 Dec 2007 09:29:55 +0000 (04:29 -0500)]
fix easylogo on big endian dev systems

didnt realize how out of shape easylogo actually was until i tried using it.
this patch does byte swapping as need be on the input tga header since the tga
is in little endian but the host could just as well be big endian.  i didnt
bother using bswap macros or such stuff from system headers as nothing in
POSIX dictates byte swapping functionality.

Signed-Off-By: Mike Frysinger <vapier@gentoo.org>
16 years agocleanup easylogo
Mike Frysinger [Tue, 18 Dec 2007 08:23:25 +0000 (03:23 -0500)]
cleanup easylogo

- make the Makefile not suck
- include proper headers for prototypes
- fix obvious broken handling of strchr() when handling '.' in filenames

Signed-Off-By: Mike Frysinger <vapier@gentoo.org>
16 years agoFix build problems under Cygwin
raptorbrino@aim.com [Fri, 14 Dec 2007 02:23:28 +0000 (21:23 -0500)]
Fix build problems under Cygwin

This patch allows u-boot to build without error in a cygwin
environment.  Cygwin does not define __u64 in it's
include/asm/types.h file.  The -idirafter flag in the u-boot
build causes the inclusion of the cygwin types.h file as opposed
to u-bot/include/asm/types.h file which does define __u64.
Subsequently, sha1.c compile fails due to unknown symbol.

Signed-off-by: Brian Miller <raptorbrino@netscape.net>
16 years agocmd_bmp: Add support for displaying gzip compressed bmps
Hans-Christian Egtvedt [Fri, 30 Nov 2007 16:29:59 +0000 (17:29 +0100)]
cmd_bmp: Add support for displaying gzip compressed bmps

The existing code can show information about a gzip compressed BMP
image, but can't actually display it.

Therefore, move the decompression code out of bmp_info() and use it in
bmp_display() as well in order to display a compressed BMP image.

Also, clean things up a bit and fix a memory leak while we're at it.

[hskinnemoen@atmel.com: a bit of refactoring]
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
16 years agoFix and optimize MII operations on FEC (MPC8xx) controllers
Guennadi Liakhovetski [Thu, 29 Nov 2007 20:15:56 +0000 (21:15 +0100)]
Fix and optimize MII operations on FEC (MPC8xx) controllers

This patch fixes several issues at least on a MPC885 based system with two
FEC interfaces used in MII mode.

1. PHY discovery should first read PHY_PHYIDR2 register and only then
   PHY_PHYIDR1 like cpu/mpc8xx/fec.c::mii_discover_phy() does it,
   otherwise the values read are wrong. Also notice, that PHY discovery
   cannot work on MPC88x / MPC87x in setups with both FECs active at all
   in its present form, because for both interfaces the registers from FEC
   1 are used to communicate over MII.

2. Remove code duplication for resetting the FEC by isolating it into a
   separate function.

3. Initialize MII on FEC 1 when communicating over FEC 2 in fec_init().

4. Optimize mii_init() to only reset the FEC 1 controller once.

5. Fix a typo in mii_init() using index i instead of j thus potentially
   leading to unpredictable results.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoFix endianness conversions in rtl8169 driver
Guennadi Liakhovetski [Tue, 20 Nov 2007 12:14:20 +0000 (13:14 +0100)]
Fix endianness conversions in rtl8169 driver

It is unclear on what platforms this driver has been tested, since
noone up to now defines CONFIG_RTL8169 in the board configuration
header. Now it has been fixed for a big-endian mpc8241 based
linkstation platform. This patch presents the necessary endianness
conversion fixes.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoAdd Ctrl combo key support to usb keyboard driver.
Zhang Wei [Thu, 3 Jan 2008 02:51:15 +0000 (10:51 +0800)]
Add Ctrl combo key support to usb keyboard driver.

Ctrl combo key support is added, which is very useful to input Ctrl-C
for interrupt current job.
Also add usb_event_poll() calling to usb_kbd_testc(), which can get
key input when tstc() is called.

Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
Signed-off-by: Markus Klotzbuecher <mk@denx.de>
16 years agoMerge git://www.denx.de/git/u-boot
Markus Klotzbuecher [Wed, 9 Jan 2008 12:57:10 +0000 (13:57 +0100)]
Merge git://www.denx.de/git/u-boot

Conflicts:

board/tqm5200/tqm5200.c

16 years agoCoding Style clenaup; update CHANGELOG
Wolfgang Denk [Wed, 9 Jan 2008 12:43:38 +0000 (13:43 +0100)]
Coding Style clenaup; update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoRemove bit swapping in Xilinx Spartan bitfile loading
Matthias Fuchs [Thu, 27 Dec 2007 16:13:11 +0000 (17:13 +0100)]
Remove bit swapping in Xilinx Spartan bitfile loading

This patch removes the unnecessary bit swapping when
booting .bit files with the 'fpga loadb' command.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoFix MSB check in Xilinx Spartan slave serial mode
Matthias Fuchs [Thu, 27 Dec 2007 16:13:05 +0000 (17:13 +0100)]
Fix MSB check in Xilinx Spartan slave serial mode

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoAdd new Xilinx Spartan FPGA types
Matthias Fuchs [Thu, 27 Dec 2007 16:12:56 +0000 (17:12 +0100)]
Add new Xilinx Spartan FPGA types

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoAdd pre and post configuration callbacks for Spartan FPGAs
Matthias Fuchs [Thu, 27 Dec 2007 16:12:43 +0000 (17:12 +0100)]
Add pre and post configuration callbacks for Spartan FPGAs

This patch adds a post configuration callback for Spartan2/3 FPGAs.
pre and post configuration callback are now optional and
not called when the function pointer is set to NULL.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoImprove configuration of FPGA subsystem
Matthias Fuchs [Thu, 27 Dec 2007 16:12:34 +0000 (17:12 +0100)]
Improve configuration of FPGA subsystem

This patch removes the FPGA subsystem configuration through
the CONFIG_FPGA bitmask configuration option.

See README for the new options:

CONFIG_FPGA,
CONFIG_FPGA_<vendor>,
CONFIG_FPGA_<family>

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoAdd Epson RX8025 RTC support
Matthias Fuchs [Thu, 27 Dec 2007 15:55:17 +0000 (16:55 +0100)]
Add Epson RX8025 RTC support

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoserial: Make default_serial_console() a weak function
Matthias Fuchs [Thu, 27 Dec 2007 15:57:23 +0000 (16:57 +0100)]
serial: Make default_serial_console() a weak function

With this patch it is possible to reimplement default_serial_console()
in board specific code. This will be done in the upcomming PMC440
U-Boot port. This also allows the lwmon board maintainer to
remove the '#if !defined(CONFIG_LWMON) ...' from common/serial.c.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoadd 'terminal program' functionality
Harald Welte [Wed, 19 Dec 2007 13:14:47 +0000 (14:14 +0100)]
add 'terminal program' functionality

This patch adds a 'cu' like serial terminal command to u-boot
using which you can access other serial ports from the system console.

OpenMoko uses this in their Neo1973 phones to get access to the GSM
Modem and GPS chip from the bootloader.

Signed-off-by: Harald Welte <laforge@openmoko.org>
16 years agoRe-introduce the 'nand read.oob' and 'nand write.oob' commands
Harald Welte [Wed, 19 Dec 2007 13:12:53 +0000 (14:12 +0100)]
Re-introduce the 'nand read.oob' and 'nand write.oob' commands
that used to exist with the legacy NAND code

Signed-off-by: Harald Welte <laforge@openmoko.org>
16 years agoFix building with CRAMFS but not JFFS2 support
Harald Welte [Wed, 19 Dec 2007 13:09:58 +0000 (14:09 +0100)]
Fix building with CRAMFS but not JFFS2 support

Signed-off-by: Harald Welte <laforge@openmoko.org>
16 years agoAllow CONFIG_AUTO_COMPLETE and command history CONFIG_CMDLINE_EDITING at the sametime
Jean-Christophe PLAGNIOL-VILLARD [Sat, 22 Dec 2007 14:52:58 +0000 (15:52 +0100)]
Allow CONFIG_AUTO_COMPLETE and command history CONFIG_CMDLINE_EDITING at the sametime

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoARM: support board-specific ethernet PHY init
Jean-Christophe PLAGNIOL-VILLARD [Tue, 11 Dec 2007 09:53:12 +0000 (10:53 +0100)]
ARM: support board-specific ethernet PHY init

Add until the new phylib will be arrived

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoIXP: Add full baud-rate support for ixp42x, ixp45x and ixp46x
Jean-Christophe PLAGNIOL-VILLARD [Sat, 8 Dec 2007 15:34:08 +0000 (16:34 +0100)]
IXP: Add full baud-rate support for ixp42x, ixp45x and ixp46x

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoAdd missing file in gitignore and comments
Jean-Christophe PLAGNIOL-VILLARD [Sun, 9 Dec 2007 10:01:10 +0000 (11:01 +0100)]
Add missing file in gitignore and comments

based on Linux source tree's .gitignore files

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoCoding Style cleanup, update CHANGELOG
Wolfgang Denk [Wed, 9 Jan 2008 10:36:21 +0000 (11:36 +0100)]
Coding Style cleanup, update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-arm
Wolfgang Denk [Wed, 9 Jan 2008 10:30:15 +0000 (11:30 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-arm

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-fdt
Wolfgang Denk [Wed, 9 Jan 2008 10:28:56 +0000 (11:28 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-fdt

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc83xx
Wolfgang Denk [Wed, 9 Jan 2008 10:27:02 +0000 (11:27 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-mpc83xx

16 years agoMerge branch 'master' of /home/wd/git/u-boot/master/
Wolfgang Denk [Wed, 9 Jan 2008 10:17:59 +0000 (11:17 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/master/

16 years agoMerge branch 'lwmon5-no-ocm'
Stefan Roese [Wed, 9 Jan 2008 09:43:47 +0000 (10:43 +0100)]
Merge branch 'lwmon5-no-ocm'

16 years agoPOST: Execute SPR test after relocation
Stefan Roese [Wed, 9 Jan 2008 09:38:58 +0000 (10:38 +0100)]
POST: Execute SPR test after relocation

On LWMON5 we now use d-cache as init-ram and stack. The SPR POST test uses
self modifying code and this doesn't work with stack in d-cache, since
I can't move the code from d-cache to i-cache. We move the SPR test to
be executed a little later, after relocation. Then stack is located in
SDRAM and this self-modifying code is no problem anymore.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Change LWMON5 to not use OCM for init-ram and POST anymore
Stefan Roese [Wed, 9 Jan 2008 09:28:20 +0000 (10:28 +0100)]
ppc4xx: Change LWMON5 to not use OCM for init-ram and POST anymore

This patch configures the LWMON5 port to use d-cache as init-ram and
the unused GPT0_COMP6 as POST WORD storage.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Add CFG_POST_ALT_WORD_ADDR to support non OCM POST WORD storage
Stefan Roese [Wed, 9 Jan 2008 09:25:46 +0000 (10:25 +0100)]
ppc4xx: Add CFG_POST_ALT_WORD_ADDR to support non OCM POST WORD storage

The privious 4xx POST implementation only supported storing the POST
WORD in OCM. Since we need to reserve the OCM on LWMON5 for the logbuffer
we need to store the POST WORD in some other non volatile location.
This patch adds CFG_POST_ALT_WORD_ADDR to specify an address for such
a location.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Add 44x cache locking to better support init-ram in d-cache
Stefan Roese [Wed, 9 Jan 2008 09:23:16 +0000 (10:23 +0100)]
ppc4xx: Add 44x cache locking to better support init-ram in d-cache

This patch adds support for locking the init-ram/stack in d-cache,
so that other regions may use d-cache as well

Note, that this current implementation locks exactly 4k of d-cache,
so please make sure that you don't define a bigger init-ram area. Take
a look at the lwmon5 440EPx implementation as a reference.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoFix memset bug in ext2fs_read_file()
Wolfgang Denk [Wed, 9 Jan 2008 09:16:33 +0000 (10:16 +0100)]
Fix memset bug in ext2fs_read_file()

ext2fs_read_file() had the function arguments swapped.

Pointed out by Mike Montour, 19 Dec 2007 22:34:25 -0800

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFix problems with usb storage devices on MPC5200 /TQM5200
Markus Klotzbücher [Tue, 5 Jan 1988 07:17:15 +0000 (08:17 +0100)]
Fix problems with usb storage devices on MPC5200 /TQM5200

The MPC5200 OHCI controller operates in big endian, so
CFG_OHCI_BE_CONTROLLER must be defined for it to work properly.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
16 years agoFix compile problem with new env code.
Wolfgang Denk [Tue, 8 Jan 2008 21:58:27 +0000 (22:58 +0100)]
Fix compile problem with new env code.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agotools: fix fw_printenv tool to compile again
Markus Klotzbücher [Tue, 27 Nov 2007 09:23:20 +0000 (10:23 +0100)]
tools: fix fw_printenv tool to compile again

This patch updates the fw_printenv/fw_setenv userspace tool to include
the correct MTD header in order to compile against current kernel
headers. Backward compatibility is preserved by introducing an option
MTD_VERSION which can be set to "old" for compilation using the old MTD
headers. Along with this a number of warnings are fixed.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
16 years agoppc4xx: assign PCI interrupts on seuqoia boards
Matthias Fuchs [Tue, 8 Jan 2008 14:40:09 +0000 (15:40 +0100)]
ppc4xx: assign PCI interrupts on seuqoia boards

Some operating systems rely on assigned PCI interrupts.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Move cpu/ppc4xx/vecnum.h into include path
Matthias Fuchs [Tue, 8 Jan 2008 14:50:49 +0000 (15:50 +0100)]
ppc4xx: Move cpu/ppc4xx/vecnum.h into include path

This patch allows the use of 4xx interrupt vector number defines
in board specific code outside cpu/ppc4xx.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Fix UIC2 vector number base
Matthias Fuchs [Tue, 8 Jan 2008 14:39:01 +0000 (15:39 +0100)]
ppc4xx: Fix UIC2 vector number base

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Update PLB/PCI divider for PMC440 board
Matthias Fuchs [Tue, 8 Jan 2008 11:49:58 +0000 (12:49 +0100)]
ppc4xx: Update PLB/PCI divider for PMC440 board

This patch updates the PLB/PCI divider when running at
400MHz CPU frequency from 4 to 3 which results in 44MHz PCI sync clock.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Disable error message when no NAND chip is installed on PMC440
Matthias Fuchs [Tue, 8 Jan 2008 10:13:09 +0000 (11:13 +0100)]
ppc4xx: Disable error message when no NAND chip is installed on PMC440

Add CFG_NAND_QUIET_TEST option to disable error message when
no NAND chip is installed on PMC440 boards.

Disable a couple of config defines that are only used for NAND_U_BOOT.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoFix compile problem with new env code.
Wolfgang Denk [Tue, 8 Jan 2008 21:58:27 +0000 (22:58 +0100)]
Fix compile problem with new env code.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agotools: fix fw_printenv tool to compile again
Markus Klotzbücher [Tue, 27 Nov 2007 09:23:20 +0000 (10:23 +0100)]
tools: fix fw_printenv tool to compile again

This patch updates the fw_printenv/fw_setenv userspace tool to include
the correct MTD header in order to compile against current kernel
headers. Backward compatibility is preserved by introducing an option
MTD_VERSION which can be set to "old" for compilation using the old MTD
headers. Along with this a number of warnings are fixed.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
16 years agoLIBFDT: use memmove() instead of memcpy()
Gerald Van Baren [Tue, 8 Jan 2008 04:47:32 +0000 (23:47 -0500)]
LIBFDT: use memmove() instead of memcpy()

This is partial patch from the DTC/libfdt
commit  67b6b33b9b413a450a72135b5dc59c0a1e33e647
Author: David Gibson <david@gibson.dropbear.id.au>
Date:   Wed Nov 21 11:56:14 2007 +1100

    The patch also fixes one genuine bug caught by valgrind -
    _packblocks() in fdt_rw.c was using memcpy() where it should have been
    using memmove().

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agolibfdt: Add more documentation (patch the seventh)
David Gibson [Mon, 17 Dec 2007 03:42:07 +0000 (14:42 +1100)]
libfdt: Add more documentation (patch the seventh)

This patch adds more documenting comments to libfdt.h.  Specifically,
these document the read/write functions (not including fdt_open_into()
and fdt_pack(), for now).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
16 years agolibfdt: Add more documentation (patch the sixth)
David Gibson [Mon, 17 Dec 2007 03:41:52 +0000 (14:41 +1100)]
libfdt: Add more documentation (patch the sixth)

This patch adds some more documenting comments to libfdt.h.
Specifically this documents all the write-in-place functions.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
16 years agoFine grained per property /chosen updating.
Gerald Van Baren [Sun, 30 Dec 2007 03:45:27 +0000 (22:45 -0500)]
Fine grained per property /chosen updating.

Implement a suggestion by Scott Wood to make the /chosen handling fine
grained.  Don't overwrite pre-existing properties on a per-property basis,
so if /chosen exists but a necessary /chosen/property doesn't, it gets
created.  If a /chosen property exists, it is NOT overwritten unless the
"force" flag is true.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agoImprove the FDT help message.
Gerald Van Baren [Sat, 5 Jan 2008 20:33:29 +0000 (15:33 -0500)]
Improve the FDT help message.

Add a note that "fdt copy" makes the new address active.
Remove most of the extra hints at the end of the fdt help.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agoSupport setting FDT properties with optional values.
Gerald Van Baren [Sat, 5 Jan 2008 19:52:04 +0000 (14:52 -0500)]
Support setting FDT properties with optional values.

Fix a bug found and documented by Bartlomiej Sieka where the optional
value on "fdt set <path> <prop> [<val>]" wasn't optional.

=> fdt mknode / testnode
=> fdt print /testnode
testnode {
};
=> fdt set /testnode testprop
=> fdt print /testnode
testnode {
        testprop;
};

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agoAdd fdt_find_and_setprop() to fdt_support.h
Matthias Fuchs [Fri, 28 Dec 2007 10:56:30 +0000 (11:56 +0100)]
Add fdt_find_and_setprop() to fdt_support.h

fdt_find_and_setprop() is used by several 4xx boards and it's
missing in the appropriate header. This patch eliminates a
warning when building U-Boot for such boards.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Acked-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Return 0 on success in 4xx ethernet driver
Stefan Roese [Tue, 8 Jan 2008 17:39:30 +0000 (18:39 +0100)]
ppc4xx: Return 0 on success in 4xx ethernet driver

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoMerge branch 'inka4x0-ng' of /home/m8/git/u-boot/
Wolfgang Denk [Tue, 8 Jan 2008 16:15:18 +0000 (17:15 +0100)]
Merge branch 'inka4x0-ng' of /home/m8/git/u-boot/

16 years agompc83xx: fix missed pci_hose -> hose conversion for new libfdt code
Kim Phillips [Tue, 8 Jan 2008 15:59:49 +0000 (09:59 -0600)]
mpc83xx: fix missed pci_hose -> hose conversion for new libfdt code

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: rm remaining FLAT_TREE code
Kim Phillips [Thu, 20 Dec 2007 22:28:34 +0000 (16:28 -0600)]
mpc83xx: rm remaining FLAT_TREE code

..in board pci.c files

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: remove FLAT_TREE code
Kim Phillips [Thu, 20 Dec 2007 21:57:28 +0000 (15:57 -0600)]
mpc83xx: remove FLAT_TREE code

need to rm it from pci code, too!

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: convert to using do_fixup_*()
Kim Phillips [Thu, 20 Dec 2007 20:09:22 +0000 (14:09 -0600)]
mpc83xx: convert to using do_fixup_*()

convert to using simpler mpc85xx style fdt update code; streamline by
eliminating macros OF_SOC, OF_CPU, etc. which allows us to rm
the old school FLAT_TREE code from 83xx (since the sbc8349 was just
converted over to using libfdt).

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agosbc8349: enable libfdt by default on WRS SBC8349 board.
Paul Gortmaker [Thu, 20 Dec 2007 17:58:51 +0000 (12:58 -0500)]
sbc8349: enable libfdt by default on WRS SBC8349 board.

Make libfdt the default for the WRS SBC8349 board.
Parallel of commit 35cc4e4823668e8745854899cfaedd4489beb0ef
done for the other 83xx based boards.  Also fix a typo in CONFIG_PCI.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
16 years agosbc8349: migrate board to libfdt
Paul Gortmaker [Thu, 20 Dec 2007 17:58:16 +0000 (12:58 -0500)]
sbc8349: migrate board to libfdt

This adds libfdt support code for the Wind River sbc8349 board.

Parallel of commit 3fde9e8b22cfbd7af489214758f9839a206576cb for
the other Freescale 83xx boards.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>