platform/kernel/u-boot.git
16 years agoCoding Style cleanup; update CHANGELOG.
Wolfgang Denk [Sat, 12 Jan 2008 00:05:50 +0000 (01:05 +0100)]
Coding Style cleanup; update CHANGELOG.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFixed syntax error in function init_e300_core() of mpc83xx/start.S if
Heiko Schocher [Fri, 11 Jan 2008 14:15:17 +0000 (15:15 +0100)]
Fixed syntax error in function init_e300_core() of mpc83xx/start.S if

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoMUNICes: Set the right CFG_DEFAULT_MBAR value.
Heiko Schocher [Fri, 11 Jan 2008 14:15:16 +0000 (15:15 +0100)]
MUNICes: Set the right CFG_DEFAULT_MBAR value.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoadded the config File for the MUNICes board.
Heiko Schocher [Fri, 11 Jan 2008 14:15:15 +0000 (15:15 +0100)]
added the config File for the MUNICes board.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoadded basic support for the MUNICes board.
Heiko Schocher [Fri, 11 Jan 2008 14:15:14 +0000 (15:15 +0100)]
added basic support for the MUNICes board.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoUpdate CHANGELOG and MAINTAINERS files.
Wolfgang Denk [Fri, 11 Jan 2008 23:39:37 +0000 (00:39 +0100)]
Update CHANGELOG and MAINTAINERS files.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFix compilation problem in common/cmd_bmp.c
Anatolij Gustschin [Fri, 11 Jan 2008 01:15:02 +0000 (02:15 +0100)]
Fix compilation problem in common/cmd_bmp.c

common/cmd_bmp.c fails to compile if CONFIG_VIDEO_BMP_GZIP
isn't defined. This patch fix this.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoFix defaultconfig for the mgcoge board.
Heiko Schocher [Fri, 11 Jan 2008 00:12:09 +0000 (01:12 +0100)]
Fix defaultconfig for the mgcoge board.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoAdded support for the mgcoge board from keymile.
Heiko Schocher [Fri, 11 Jan 2008 00:12:08 +0000 (01:12 +0100)]
Added support for the mgcoge board from keymile.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoEnable SMC microcode relocation patch for SMC1.
Heiko Schocher [Fri, 11 Jan 2008 00:12:07 +0000 (01:12 +0100)]
Enable SMC microcode relocation patch for SMC1.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoAdded support for the mgsuvd board from keymile.
Heiko Schocher [Fri, 11 Jan 2008 00:12:06 +0000 (01:12 +0100)]
Added support for the mgsuvd board from keymile.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoFix 64-bit vsprintf.
James Yang [Thu, 10 Jan 2008 22:02:07 +0000 (16:02 -0600)]
Fix 64-bit vsprintf.

There were some size and unsigned problems.
Also add support for "ll" size modifier in format string like glibc

Signed-off-by: James Yang <James.Yang@freescale.com>
Acked-by: Jon Loeliger <jdl@freescale.com>
16 years agoRemove superfluous preprocessor conditionals from LM73 driver
Larry Johnson [Wed, 9 Jan 2008 17:42:35 +0000 (12:42 -0500)]
Remove superfluous preprocessor conditionals from LM73 driver

(1) Remove unused symbol "CFG_EEPROM_PAGE_WRITE_ENABLE".

(2) Use conditional Makefile.o.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoAdd support for the TK885D baseboard from TELE-DATA
Guennadi Liakhovetski [Thu, 10 Jan 2008 16:59:07 +0000 (17:59 +0100)]
Add support for the TK885D baseboard from TELE-DATA

The TK885D board uses a TQM885D module from TQ, this port adds an
own configuration file and adds a last_stage_init() method to
configure the two PHYs, depending on the phy_auto_nego environment
variable.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-video
Wolfgang Denk [Fri, 11 Jan 2008 23:22:05 +0000 (00:22 +0100)]
Merge branch 'master' of git://denx.de/git/u-boot-video

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
Wolfgang Denk [Fri, 11 Jan 2008 23:13:37 +0000 (00:13 +0100)]
Merge branch 'master' of git://denx.de/git/u-boot-ppc4xx

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc83xx
Wolfgang Denk [Fri, 11 Jan 2008 23:04:01 +0000 (00:04 +0100)]
Merge branch 'master' of git://denx.de/git/u-boot-mpc83xx

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc86xx
Wolfgang Denk [Fri, 11 Jan 2008 23:02:26 +0000 (00:02 +0100)]
Merge branch 'master' of git://denx.de/git/u-boot-mpc86xx

16 years agoMerge ../custodians
Wolfgang Denk [Fri, 11 Jan 2008 22:53:26 +0000 (23:53 +0100)]
Merge ../custodians

16 years agoFix compiler warning
Kumar Gala [Thu, 10 Jan 2008 08:22:05 +0000 (02:22 -0600)]
Fix compiler warning

main.c: In function 'readline_into_buffer':
main.c:927: warning: unused variable 'p_buf'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoAdd Fujitsu CoralP/Lime video driver
Anatolij Gustschin [Fri, 11 Jan 2008 13:30:01 +0000 (14:30 +0100)]
Add Fujitsu CoralP/Lime video driver

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Rodolfo Giometti <giometti@linux.it>
16 years agoFix video console newline and carriage return handling
Anatolij Gustschin [Fri, 11 Jan 2008 01:39:47 +0000 (02:39 +0100)]
Fix video console newline and carriage return handling

Lines of the lenght CONSOLE_COLS or greater than CONSOLE_COLS
are not displayed correctly. This is an attempt to fix
this issue. Also add carriage return handling.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Rodolfo Giometti <giometti@linux.it>
16 years agoppc4xx: Fix sdram init on Sequoia boards
Stefan Roese [Fri, 11 Jan 2008 14:53:58 +0000 (15:53 +0100)]
ppc4xx: Fix sdram init on Sequoia boards

Clear possible errors in MCSR resulting from data-eye-search.
If not done, then we could get an interrupt later on when
exceptions are enabled.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Rework Lime support for lwmon5
Anatolij Gustschin [Fri, 11 Jan 2008 14:31:09 +0000 (15:31 +0100)]
ppc4xx: Rework Lime support for lwmon5

Rework Lime support for lwmon5 using new video driver

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoppc4xx: Update PMC440 config file
Matthias Fuchs [Fri, 11 Jan 2008 13:55:16 +0000 (14:55 +0100)]
ppc4xx: Update PMC440 config file

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppx4xx: Fix sdram init on PMC440 boards
Matthias Fuchs [Fri, 11 Jan 2008 13:55:08 +0000 (14:55 +0100)]
ppx4xx: Fix sdram init on PMC440 boards

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agompc83xx: Fix the bug of 266MHz data rate DDR
Dave Liu [Thu, 10 Jan 2008 15:09:33 +0000 (23:09 +0800)]
mpc83xx: Fix the bug of 266MHz data rate DDR

The DDR doesn't work on the 266MHz data rate,
the patch fix the bug.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: Make the code more readable
Dave Liu [Thu, 10 Jan 2008 15:08:26 +0000 (23:08 +0800)]
mpc83xx: Make the code more readable

Format the code, make it more readable

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
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 agoMerge commit 'wd/master'
Jon Loeliger [Thu, 10 Jan 2008 20:28:18 +0000 (14:28 -0600)]
Merge commit 'wd/master'

16 years ago86xx: Support 2GB DIMMs
Becky Bruce [Thu, 10 Jan 2008 20:00:28 +0000 (14:00 -0600)]
86xx: Support 2GB DIMMs

Configure the number of bits used to address the banks inside the SDRAM
device.  The default register value of 0 means 2 bits to address 4 banks.
Higher capacity devices like a 2GB DIMM require 3 bits to address 8 banks.

Signed-off-by: Becky Bruce <bgill@freescale.com>
16 years agoppc4xx: Make Sequoia boot vxWorks
Niklaus Giger [Thu, 10 Jan 2008 17:50:33 +0000 (18:50 +0100)]
ppc4xx: Make Sequoia boot vxWorks

vxWorks expects in
TLB 0 a entry for the Machine Check interrupt
TLB 1 a entry for the RAM
TLB 2 a entry for the EBC
TLB 3 a entry for the boot flash

After changing the baudrate to 9600 I had no problems to boot the
vxWorks image as distributed by WindRiver (Revision 2.0/1 from
June 18, 2007)

Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
16 years agoppc4xx: Fix dflush() to restore DVLIM register
Larry Johnson [Thu, 10 Jan 2008 04:10:27 +0000 (23:10 -0500)]
ppc4xx: Fix dflush() to restore DVLIM register

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoNios2: remove common/cmd_bdinfo.c unused variable.
Jean-Christophe PLAGNIOL-VILLARD [Thu, 10 Jan 2008 08:52:44 +0000 (03:52 -0500)]
Nios2: remove common/cmd_bdinfo.c unused variable.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Scott McNutt <smcnutt@psyent.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://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://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://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 ago86xx: Remove cache config from configs.h
Jon Loeliger [Wed, 9 Jan 2008 18:14:55 +0000 (12:14 -0600)]
86xx: Remove cache config from configs.h

Just use the standard defines in asm/cache.h.

Signed-off-by: Jon Loeliger <jdl@freescale.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 agoConvert MPC8610HPCD to use libfdt.
Jon Loeliger [Fri, 4 Jan 2008 18:07:27 +0000 (12:07 -0600)]
Convert MPC8610HPCD to use libfdt.

Assumes the presence of the aliases node in the DTS to
locate the pci and serial nodes for fixups.

Use consistent fdtaddr and fdtfile in environment variables.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
16 years ago8610: Fix lingering compile warnings.
Jon Loeliger [Fri, 4 Jan 2008 17:58:23 +0000 (11:58 -0600)]
8610: Fix lingering compile warnings.

Turn off DEBUG.

Signed-off-by: Jon Loeliger <jdl@freescale.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>