kernel/u-boot.git
16 years agoqemu-mips: Cleanup whitespace, indentation, etc.
Shinya Kuribayashi [Wed, 23 Apr 2008 02:02:12 +0000 (11:02 +0900)]
qemu-mips: Cleanup whitespace, indentation, etc.

No functional change.

This patch was originally submitted by Jean-Christophe PLAGNIOL-VILLARD.
Then I re-created from scratch, and changed more lines than the original.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agoFixed pcnet io_base
Vlad Lungu [Wed, 10 Oct 2007 20:02:09 +0000 (23:02 +0300)]
Fixed pcnet io_base

Bus and phys address are not always the same

Signed-off-by: Vlad Lungu <vlad@comsys.ro>
16 years agodrivers/net/pcnet.c: Coding Style cleanup.
Wolfgang Denk [Thu, 24 Apr 2008 21:44:26 +0000 (23:44 +0200)]
drivers/net/pcnet.c: Coding Style cleanup.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoAdded Am79C970A chip id to pcnet
Vlad Lungu [Wed, 10 Oct 2007 20:04:23 +0000 (23:04 +0300)]
Added Am79C970A chip id to pcnet

Signed-off-by: Vlad Lungu <vlad@comsys.ro>
16 years agoi.MX31: Fix architecture numbers for ADS and Litekit boards
Magnus Lilja [Sun, 20 Apr 2008 08:35:03 +0000 (10:35 +0200)]
i.MX31: Fix architecture numbers for ADS and Litekit boards

Correct the Linux architecture number for i.MX31 Litekit and ADS boards.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
16 years agoi.MX31: Use symbolic names for Litekit membases.
Magnus Lilja [Sun, 20 Apr 2008 08:36:36 +0000 (10:36 +0200)]
i.MX31: Use symbolic names for Litekit membases.

Use symbolic names instead of hard coded addresses for Litekit membases.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
16 years agoFix show_boot_progress prototype
Jean-Christophe PLAGNIOL-VILLARD [Sat, 19 Apr 2008 15:59:20 +0000 (17:59 +0200)]
Fix show_boot_progress prototype

in commit fad634071 "make show_boot_progress () weak."
show_boot_progress is supposed to be declared as weak but declared as
inline instead.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoMemory footprint optimizations
Bartlomiej Sieka [Fri, 18 Apr 2008 10:39:23 +0000 (12:39 +0200)]
Memory footprint optimizations

As suggested by Wolfgang Denk:
- image printing functions:
  - remove wrappers
  - remove indentation prefix from functions' signatures
- merge getenv_verify and getenv_autostart into one parametrized function

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years agoMX31ADS environment variable update, spi and rtc support
Guennadi Liakhovetski [Tue, 15 Apr 2008 11:33:11 +0000 (13:33 +0200)]
MX31ADS environment variable update, spi and rtc support

Update MX31ADS default environment to better match the flash layout and
the memory map, support SPI and RTC.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years ago85xx: Round up frequency calculations to get reasonable output
Kumar Gala [Mon, 21 Apr 2008 14:28:36 +0000 (09:28 -0500)]
85xx: Round up frequency calculations to get reasonable output

eg. because of rounding error we can get 799Mhz instead of 800Mhz.

Introduced DIV_ROUND_UP and roundup taken from linux kernel.

Signed-off-by: Dejan Minic <minic@freescale.com>
Signed-off-by: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Andy Fleming <afleming@freescale.com>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc85xx
Wolfgang Denk [Thu, 24 Apr 2008 13:28:05 +0000 (15:28 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-mpc85xx

16 years agofsl_pci: Only modify registers if we have them
Kumar Gala [Wed, 23 Apr 2008 21:58:04 +0000 (16:58 -0500)]
fsl_pci: Only modify registers if we have them

pme_msg_det exists only on PCIe controllers only set it if we are a "bridge".

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-video
Wolfgang Denk [Thu, 24 Apr 2008 12:00:54 +0000 (14:00 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-video

16 years agoUSB: remove a cpu bug workaround for an unsupported architecture.
Markus Klotzbücher [Wed, 23 Apr 2008 08:57:33 +0000 (10:57 +0200)]
USB: remove a cpu bug workaround for an unsupported architecture.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
16 years agoUSB: fix those pesky aliasing warnings issued by gcc-4.2
Markus Klotzbücher [Wed, 23 Apr 2008 08:53:23 +0000 (10:53 +0200)]
USB: fix those pesky aliasing warnings issued by gcc-4.2

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Signed-off-by: Detlev Zundel <dzu@denx.de>
16 years agocrc32: use uint32_t rather than unsigned long
Mike Frysinger [Mon, 31 Mar 2008 15:02:01 +0000 (11:02 -0400)]
crc32: use uint32_t rather than unsigned long

The envcrc.c does sizeof(unsigned long) when calculating the crc, but
this is done with the build toolchain instead of the target tool
chain, so if the build is a 64bit system but the target is 32bits,
the size will obviously be wrong. This converts all unsigned long
stuff related to crc32 to uint32_t types. Compile tested only: output
of ./tools/envcrc when run on a 32bit build system matches that of a
64bit build system.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
Wolfgang Denk [Tue, 22 Apr 2008 15:21:24 +0000 (17:21 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-ppc4xx

16 years agoppc4xx: Fix Canyonlands and Glacier default environment for fdt usage
Stefan Roese [Tue, 22 Apr 2008 12:14:20 +0000 (14:14 +0200)]
ppc4xx: Fix Canyonlands and Glacier default environment for fdt usage

This patch fixes the Canyonlands and Glacier default environment to better
fit to the arch/powerpc device-tree kernels. The variables dealing with
arch/ppc booting are removed, since these boards are supported only in
arch/powerpc. Glacier uses the same config file as Canyonlands.

Also, the Glacier now uses non-FPU rootpath, since 460GT has no FPU.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Small coding style cleanup for the latest esd patches
Stefan Roese [Tue, 22 Apr 2008 12:06:42 +0000 (14:06 +0200)]
ppc4xx: Small coding style cleanup for the latest esd patches

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Update CPU strapping for PMC440 boards
Matthias Fuchs [Mon, 21 Apr 2008 16:01:07 +0000 (18:01 +0200)]
ppc4xx: Update CPU strapping for PMC440 boards

This patch removes the temporary 'test' strapping option
of the sbe command. The '667' strapping option now uses
a PLB/PCI divider of 3.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Remove unused APC405 strataflash driver
Matthias Fuchs [Mon, 21 Apr 2008 12:42:21 +0000 (14:42 +0200)]
ppc4xx: Remove unused APC405 strataflash driver

The APC405 board support has been migrated to use the common
CFI flash driver.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Update APC405 configuration
Matthias Fuchs [Mon, 21 Apr 2008 12:42:17 +0000 (14:42 +0200)]
ppc4xx: Update APC405 configuration

- enable esd's auto_update mechanism
- support alternative flash layout on rev. 1.8 boards
- update default environment
- use common CFI flash driver
- coding style cleanup

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Update APC405 board support
Matthias Fuchs [Mon, 21 Apr 2008 12:42:11 +0000 (14:42 +0200)]
ppc4xx: Update APC405 board support

- enable esd's auto_update mechanism
- fix LCD support on latest hardware revision (uses other LCD controller)
- support alternative flash layout on rev. 1.8 boards
- coding style cleanup

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: update esd's common auto_update code for 405 boards
Matthias Fuchs [Mon, 21 Apr 2008 12:42:06 +0000 (14:42 +0200)]
ppc4xx: update esd's common auto_update code for 405 boards

- Coding style cleanup (long lines)
- improve handling of protected flash regions
- remove dead code

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Update esd's common LCD code for 405 boards
Matthias Fuchs [Mon, 21 Apr 2008 12:41:59 +0000 (14:41 +0200)]
ppc4xx: Update esd's common LCD code for 405 boards

- Coding style cleanup (long lines)
- Add s1d13505 support
- Make some functions return a result code instead of void

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Update FPGA image for APC405 boards
Matthias Fuchs [Mon, 21 Apr 2008 09:36:55 +0000 (11:36 +0200)]
ppc4xx: Update FPGA image for APC405 boards

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Update bootlogo for APC405 boards
Matthias Fuchs [Mon, 21 Apr 2008 09:36:08 +0000 (11:36 +0200)]
ppc4xx: Update bootlogo for APC405 boards

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Add dcache_enable() for 440
Stefan Roese [Fri, 18 Apr 2008 14:41:31 +0000 (16:41 +0200)]
ppc4xx: Add dcache_enable() for 440

dcache_enable() was missing for 440 and the patch
017e9b7925f74878d0e9475388cca9bda5ef9482 ["allow ports to override bootelf
"] behavior uses this function.

Note: Currently the cache handling functions like
d/icache_disable/enable() are NOP's on 440. This may be changed in the
future.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agovideo: Add missing free for logo memory
Matthias Fuchs [Mon, 21 Apr 2008 09:19:04 +0000 (11:19 +0200)]
video: Add missing free for logo memory

This patch adds two missing free()s.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Fix sys_get_info() for 405GP(r)
Matthias Fuchs [Fri, 18 Apr 2008 15:24:32 +0000 (17:24 +0200)]
ppc4xx: Fix sys_get_info() for 405GP(r)

This patch assigns the correct EBC clock for 405GP(r) CPUs
to PPC4xx_SYS_INFO structure. Without this patch U-Boot
uses an uninitialized EBC clock in its startup message.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoMakefile: remove nand_spl/System.map when cleaning up.
Wolfgang Denk [Sun, 20 Apr 2008 22:39:38 +0000 (15:39 -0700)]
Makefile: remove nand_spl/System.map when cleaning up.

16 years agoMAKEALL: sort entries / lists.
Wolfgang Denk [Sun, 20 Apr 2008 22:35:52 +0000 (15:35 -0700)]
MAKEALL: sort entries / lists.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years ago85xx: Fix size of cpu-release-addr property
Kumar Gala [Fri, 18 Apr 2008 16:29:01 +0000 (11:29 -0500)]
85xx: Fix size of cpu-release-addr property

The cpu-release-addr is defined as always being a 64-bit quanity regardless
if we are running on a 32-bit or 64-bit machine.

16 years agoFix calculation of I2C clock for some 85xx chips
Timur Tabi [Fri, 4 Apr 2008 16:15:58 +0000 (11:15 -0500)]
Fix calculation of I2C clock for some 85xx chips

Some 85xx chips use CCB as the base clock for the I2C.  Some use CCB/2, and
some use CCB/3.  There is no pattern that can be used to determine which
chips use which frequency, so the only way to determine is to look up the
actual SOC designation and use the right value for that SOC.

Update immap_85xx.h to include the GUTS PORDEVSR2 register.

Signed-off-by: Timur Tabi <timur@freescale.com>
16 years agoFix build breakage casued by commit c0559be371b2
Wolfgang Denk [Fri, 18 Apr 2008 18:44:27 +0000 (11:44 -0700)]
Fix build breakage casued by commit c0559be371b2

    Change env_get_char from a global function ptr to a function.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoCoding Style cleanup, update CHANGELOG.
Wolfgang Denk [Fri, 18 Apr 2008 17:53:41 +0000 (10:53 -0700)]
Coding Style cleanup, update CHANGELOG.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoAdd support for u-boot in svn and localversion-* files
Mike Frysinger [Tue, 8 Apr 2008 18:00:57 +0000 (14:00 -0400)]
Add support for u-boot in svn and localversion-* files

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agoMX31ADS network and flash updates
Guennadi Liakhovetski [Thu, 3 Apr 2008 15:04:22 +0000 (17:04 +0200)]
MX31ADS network and flash updates

This patch allows U-Boot to use buffered writes to the Spansion NOR
flash installed on this board, and eliminates long delays in network
transfers after the board startup.

Also modify flash layout to embed main and redundant environment
blocks in the U-Boot image.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoSupport for the MX31ADS evaluation board from Freescale
Guennadi Liakhovetski [Mon, 14 Apr 2008 08:53:12 +0000 (10:53 +0200)]
Support for the MX31ADS evaluation board from Freescale

This patch adds support for the MX31ADS evaluation board from Freescale,
initialization code is copied from RedBoot sources, also provided by
Freescale.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoppc4xx: Change Canyonlands to support booting from 2k page NAND devices
Stefan Roese [Tue, 8 Apr 2008 08:33:29 +0000 (10:33 +0200)]
ppc4xx: Change Canyonlands to support booting from 2k page NAND devices

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Adjust Canyonlands fixed DDR2 setup (NAND booting) to 512MB SODIMM
Stefan Roese [Tue, 8 Apr 2008 08:33:28 +0000 (10:33 +0200)]
ppc4xx: Adjust Canyonlands fixed DDR2 setup (NAND booting) to 512MB SODIMM

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Add Glacier NAND booting target
Stefan Roese [Tue, 8 Apr 2008 08:33:27 +0000 (10:33 +0200)]
ppc4xx: Add Glacier NAND booting target

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoFix crash on sequoia in ppc_4xx_eth_init
Anatolij Gustschin [Thu, 17 Apr 2008 16:18:00 +0000 (18:18 +0200)]
Fix crash on sequoia in ppc_4xx_eth_init

Currently U-Boot crashes in ppc_4xx_eth_init on sequoia
with cache enabled (TLB Parity exeption). This patch
fixes the problem.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoppc4xx: Fix crash on sequoia with cache enabled
Anatolij Gustschin [Thu, 17 Apr 2008 16:15:27 +0000 (18:15 +0200)]
ppc4xx: Fix crash on sequoia with cache enabled

Currently U-Boot crashes on sequoia board in CPU POST if
cache is enabled (CONFIG_4xx_DCACHE defined). The cache
won't be disabled by change_tlb before CPU POST because
there is an insufficient adress range check since
CFG_MEM_TOP_HIDE was introduced. This patch tries to fix
this problem.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoUse jr as register jump instruction
Shinya Kuribayashi [Thu, 17 Apr 2008 14:35:13 +0000 (23:35 +0900)]
Use jr as register jump instruction

Current assembler codes are inconsistent in the way of register jump
instruction usage; some use jr, some use j. Of course GNU as allows both
usages, but as can be expected from `Jump Register' the mnemonic `jr' is
more intuitive than `j'. For example, Linux doesn't have `j <reg>' usage
at all.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agoRTC driver for MC13783
Guennadi Liakhovetski [Tue, 15 Apr 2008 12:15:30 +0000 (14:15 +0200)]
RTC driver for MC13783

MC13783 is a multifunction IS with an SPI interface to the host. This
driver handles the RTC controller in this chip.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoNew i.MX31 SPI driver
Guennadi Liakhovetski [Tue, 15 Apr 2008 12:14:25 +0000 (14:14 +0200)]
New i.MX31 SPI driver

This is an SPI driver for i.MX and MXC based SoCs from Freescale. So far
only implemented and tested on i.MX31, can with a modified register layout
and definitions be used for i.MX27, I think, MXC CPUs have similar SPI
controllers too.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-net
Wolfgang Denk [Fri, 18 Apr 2008 07:40:06 +0000 (00:40 -0700)]
Merge branch 'master' of git://denx.de/git/u-boot-net

16 years agoFix name of i.MX31 boards in config file header
Magnus Lilja [Tue, 15 Apr 2008 17:09:10 +0000 (19:09 +0200)]
Fix name of i.MX31 boards in config file header

Correct the name of the i.MX31 Litekit and phyCORE boards in config files.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
16 years agoallow ports to override go behavior
Mike Frysinger [Sun, 13 Apr 2008 23:42:19 +0000 (19:42 -0400)]
allow ports to override go behavior

Split the arch-specific logic out of the common go code and into a dedicated
weak function called do_go_exec() that lives in cpu directories.  This will
need review from i386/nios people to make sure I didn't break them.

16 years agoallow ports to override bootelf behavior
Mike Frysinger [Sun, 13 Apr 2008 23:42:18 +0000 (19:42 -0400)]
allow ports to override bootelf behavior

Change the bootelf setup function into a dedicated weak function called
do_bootelf_exec.  This way ports can control the behavior however they
like before/after calling the ELF entry point.

16 years agoReorder ARM boards in Makefile
Ulf Samuelsson [Sat, 12 Apr 2008 18:56:03 +0000 (20:56 +0200)]
Reorder ARM boards in Makefile

Rearrange ARM boards in Makefile so that ARM926EJ-S boards
are no longer under ARM92xT header.

Signed-off-by: Ulf Samuelsson <ulf@atmel.com>
Ack-By Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

16 years agoClean up dataflash partitioning
Ulf Samuelsson [Sat, 12 Apr 2008 18:29:44 +0000 (20:29 +0200)]
Clean up dataflash partitioning

This patch removes the board dependent parts from
"drivers/mtd/dataflash.c".
Each board relying on this, will have the appropriate
code in a new file, "partition.c" in the board directory.
board Makefiles updated to use the file.

The dataflash partitions are aligned on sector/page boundaries.

The CONFIG_NEW_DF_PARTITION was used to create named partitions
This is now the default operation, and the CONFIG variable is removed.

Signed-off-by: Ulf Samuelsson <ulf@atmel.com>
16 years agogitignore: udpate stgit generated and .patch file
Jean-Christophe PLAGNIOL-VILLARD [Sat, 12 Apr 2008 12:08:45 +0000 (14:08 +0200)]
gitignore: udpate stgit generated and .patch file

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoGet rid of redundant copy of renamed header file.
Wolfgang Denk [Fri, 18 Apr 2008 07:15:36 +0000 (00:15 -0700)]
Get rid of redundant copy of renamed header file.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFix dependency generation for older gcc versions
Vlad Lungu [Fri, 11 Apr 2008 18:20:14 +0000 (21:20 +0300)]
Fix dependency generation for older gcc versions

 With gcc 3.3.3 at least, compilation fails with

Generating include/autoconf.mk
gcc: compilation of header file requested
make: *** [include/autoconf.mk] Error 1

since commit 16fe77752eee099b9fb61ed73460e51cc94b37ba.

Signed-off-by: Vlad Lungu <vlad@comsys.ro>
16 years agoRestore the ability to continue booting after legacy image overwrite
Marian Balakowicz [Fri, 11 Apr 2008 09:07:49 +0000 (11:07 +0200)]
Restore the ability to continue booting after legacy image overwrite

Before new uImage code was merged, bootm code allowed for the kernel image to
get overwritten during decompresion. new uImage introduced a check for image
overwrites and refused to boot the image that got overwritten. This patch
restores the old behavior. It also adds a warning when the image overwriten is
a multi-image file, because in such case accessing componentes other than the
first one will fail.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
16 years agoppc: Fix ftd_blob variable init when processing raw blob
Marian Balakowicz [Fri, 11 Apr 2008 09:07:43 +0000 (11:07 +0200)]
ppc: Fix ftd_blob variable init when processing raw blob

Set fdt_blob variable before its value is printed out.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
16 years agoRemove all the search paths from the .lds files.
Jason Wessel [Thu, 10 Apr 2008 19:30:16 +0000 (14:30 -0500)]
Remove all the search paths from the .lds files.

The cross compiler is responsible for providing the correct libraries
and the logic to find the linking libraries.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
16 years agoBoot-related documentation update
Bartlomiej Sieka [Mon, 14 Apr 2008 13:44:16 +0000 (15:44 +0200)]
Boot-related documentation update

- document 'bootm_low' and 'bootm_size' environment variables
- update inaccurate CFG_BOOTMAPSZ entry

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years agoFix regression introduced by a typo in "Tidied other cpu/arm920t/start.S code"
Guennadi Liakhovetski [Wed, 9 Apr 2008 15:34:08 +0000 (17:34 +0200)]
Fix regression introduced by a typo in "Tidied other cpu/arm920t/start.S code"

Restore logic reverted by commit

commit 80767a6cead9990d9e77e62be947843c2c72f469
Author: Peter Pearse <peter.pearse@arm.com>
Date:   Wed Sep 5 16:04:41 2007 +0100

    Changed API name to coloured_led.h
    Removed code using deprecated ifdef CONFIG_BOOTBINFUNC
    Tidied other cpu/arm920t/start.S code

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoRemove conflicting NAND ID
Mike Frysinger [Tue, 8 Apr 2008 14:24:24 +0000 (10:24 -0400)]
Remove conflicting NAND ID

There are two NAND entries with ID 0xDC and this obviously causes problems.
In the kernel, they punted the first entry, so we should do the same.

See this upstream e-mail for more info:
http://lists.infradead.org/pipermail/linux-mtd/2007-July/018795.html

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agocpu/mips/cpu.c: Fix flush_cache bug
Shinya Kuribayashi [Tue, 8 Apr 2008 07:20:35 +0000 (16:20 +0900)]
cpu/mips/cpu.c: Fix flush_cache bug

Cache operations have to take line address (addr), not start_addr.
I noticed this bug when debugging ping failure.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
16 years agoTQM5200: fix default IDE reset level
Martin Krause [Thu, 3 Apr 2008 12:29:01 +0000 (14:29 +0200)]
TQM5200: fix default IDE reset level

Before the first call of ide_reset(), the level of the IDE reset
signal on the TQM5200 is low (reset asserted). This patch sets the
default value to high (reset not asserted).

Currently this patch fixes no real problem, but it is cleaner to
assert the reset signal only on demand, and not permanently.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
16 years agomgcoge, mgsuv: realign CONFIG_EXTRA_ENV_SETTING
Detlev Zundel [Thu, 3 Apr 2008 12:18:48 +0000 (14:18 +0200)]
mgcoge, mgsuv: realign CONFIG_EXTRA_ENV_SETTING

Signed-off-by: Detlev Zundel <dzu@denx.de>
16 years agomgcoge, mgsuv: rename 'addcon' to 'addcons'
Detlev Zundel [Thu, 3 Apr 2008 12:18:47 +0000 (14:18 +0200)]
mgcoge, mgsuv: rename 'addcon' to 'addcons'

The latter name with 13 users is already established, so we will use
that.

Signed-off-by: Detlev Zundel <dzu@denx.de>
16 years agoIDE: fix bug in reset sequence
Martin Krause [Thu, 3 Apr 2008 11:37:56 +0000 (13:37 +0200)]
IDE: fix bug in reset sequence

According to the ata (ata5) specification the RESET- signal
shall be asserted for at least 25 us. Without this patch,
the RESET- signal is asserted on some boards for only < 1 us
(e. g. on the TQM5200). This patch adds a general delay of
25 us to the RESET- signal.

Without this patch a Platinum 4 GiB CF card is not recognised
properly on boards with a TQM5200 (STK52xx, TB5200).

Signed-off-by: Martin Krause <martin.krause@tqs.de>
16 years agolwmon5: disable CONFIG_ZERO_BOOTDELAY
Sascha Laue [Thu, 3 Apr 2008 12:43:11 +0000 (14:43 +0200)]
lwmon5: disable CONFIG_ZERO_BOOTDELAY

Signed-off-by: Sascha Laue <sascha.laue@liebherr.com>
16 years agods174x: Fix warning on return in rtc_get and rtc_set functions
Jean-Christophe PLAGNIOL-VILLARD [Wed, 2 Apr 2008 06:03:58 +0000 (08:03 +0200)]
ds174x: Fix warning on return in rtc_get and rtc_set functions

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agocmd_log.c: Fix assignment differ in signedness
Jean-Christophe PLAGNIOL-VILLARD [Wed, 2 Apr 2008 06:03:57 +0000 (08:03 +0200)]
cmd_log.c: Fix assignment differ in signedness

In function 'logbuff_init_ptrs':
cmd_log.c:79: warning: pointer targets in assignment differ in signedness

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoRemove duplicate #undef SHOW_INFO in drivers/usb/usb_ohci.c
Gururaja Hebbar K R [Wed, 2 Apr 2008 05:34:43 +0000 (11:04 +0530)]
Remove duplicate #undef SHOW_INFO in drivers/usb/usb_ohci.c

Signed-off-by: gururaja hebbar <gururajakr@sanyo.co.in>
16 years agos3c4510b_eth: fix 'packed' attribute ignored for fields of MACFrame
Jean-Christophe PLAGNIOL-VILLARD [Tue, 1 Apr 2008 12:07:10 +0000 (14:07 +0200)]
s3c4510b_eth: fix 'packed' attribute ignored for fields of MACFrame

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoAdditional PCI IDs for IDE and network controllers
Guennadi Liakhovetski [Tue, 15 Apr 2008 08:24:14 +0000 (10:24 +0200)]
Additional PCI IDs for IDE and network controllers

These PCI IDs are required by the Linkstation platforms.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
16 years agoChange env_get_char from a global function ptr to a function.
Joakim Tjernlund [Mon, 14 Apr 2008 21:01:50 +0000 (23:01 +0200)]
Change env_get_char from a global function ptr to a function.

This avoids an early global data reference.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
16 years agoClean up smsc911x driver
Guennadi Liakhovetski [Tue, 29 Apr 2008 12:35:08 +0000 (12:35 +0000)]
Clean up smsc911x driver

Replace direct register address derefencing with accessor functions.
Restrict explicitly 32-bit bus-width, extend affected configurations
respectively.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoThis patch adds a driver for the following smsc network controllers:
Sascha Hauer [Tue, 15 Apr 2008 04:08:20 +0000 (00:08 -0400)]
This patch adds a driver for the following smsc network controllers:
LAN9115
LAN9116
LAN9117
LAN9215
LAN9216
LAN9217

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski<lg@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoFix watchdog POST for lwmon5
Sascha Laue [Tue, 1 Apr 2008 13:13:03 +0000 (15:13 +0200)]
Fix watchdog POST for lwmon5

If the hardware watchdog detects a voltage error, the watchdog sets
GPIO62 to low. The watchdog POST has to detect this low level.

Signed-off-by: Sascha Laue <leglas0@legpc180.leg.liebherr.i>
16 years agoata: update the libata.h from ata.h of linux kernel
Dave Liu [Tue, 1 Apr 2008 07:22:11 +0000 (15:22 +0800)]
ata: update the libata.h from ata.h of linux kernel

Current libata.h of u-boot is out of sync from linux kernel,
this patch make it be consistent with linux kernel.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Tor Krill <tor@excito.com>
16 years agoAllow use of ARCH=powerpc when building
Kumar Gala [Mon, 31 Mar 2008 16:59:27 +0000 (11:59 -0500)]
Allow use of ARCH=powerpc when building

The linux kernel is now mostly ARCH=powerpc, so to make life easier
allow use to use ARCH=powerpc and convert it to ARCH=ppc.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoAdd apollon board MAINTAINERS entry
Kyungmin Park [Mon, 31 Mar 2008 01:40:54 +0000 (10:40 +0900)]
Add apollon board MAINTAINERS entry

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
16 years agoFix OneNAND read
Kyungmin Park [Mon, 31 Mar 2008 01:40:36 +0000 (10:40 +0900)]
Fix OneNAND read

It should access with 16-bit instead of 8-bit

Now it uses the generic memcpy with 8-bit access. It means it reads wrong data from OneNAND.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
16 years agoFix OneNAND erase command
Kyungmin Park [Mon, 31 Mar 2008 01:40:19 +0000 (10:40 +0900)]
Fix OneNAND erase command

It mis-calculates the block address.
Also fix DECLARE_GLOBAL_DATA_PTR in env_onenand.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
16 years agoSupport for LinkStation / KuroBox HD and HG PPC models
Guennadi Liakhovetski [Sun, 30 Mar 2008 23:32:15 +0000 (01:32 +0200)]
Support for LinkStation / KuroBox HD and HG PPC models

This patch is based on the port by Mihai Georgian (see linkstation.c for
Copyright information) and implements support for LinkStation / KuroBox HD
and HG PPC models from Buffalo Technology, whereby HD is deactivated at
the moment, pending network driver fixing.

Notice to users: this is pretty much a barebone port. Support for network
on HG models is already in the U-Boot mainline, but you might also want
patches to switch fan / phy modes depending on the negotiated ethernet
parameters. This patch also doesn't support console switching, booting EM
mode, Buffalo specific ext2 magic number. So, if you want to use any of
those, you need additional patches. Otherwise this patche provides a fully
functional u-boot with a network console on your system.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoAdd CONFIG_MII_INIT support to related boards
TsiChung Liew [Sun, 30 Mar 2008 06:22:13 +0000 (01:22 -0500)]
Add CONFIG_MII_INIT support to related boards

Replace CONFIG_8xx and CONFIG_MCF532x to CONFIG_MII_INIT in
cmd_init.c. Add CONFIG_MII_INIT to board configuration files
that use mii_init() in cmd_init.c.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoUpdate CONFIG_PCIAUTO_SKIP_HOST_BRIDGE to related boards
TsiChung Liew [Sun, 30 Mar 2008 06:19:06 +0000 (01:19 -0500)]
Update CONFIG_PCIAUTO_SKIP_HOST_BRIDGE to related boards

Remove test for CONFIG_MPC5200 in drivers/pci/pci_auto.c and define
CONFIG_PCIAUTO_SKIP_HOST_BRIDGE in related board configuration files.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoIntroduce phys_size_t and move phys_addr_t into asm/types.h
Kumar Gala [Thu, 27 Mar 2008 16:46:38 +0000 (11:46 -0500)]
Introduce phys_size_t and move phys_addr_t into asm/types.h

Also add CONFIG_PHYS_64BIT on powerpc to deal with 32-bit ppc's
that have larger physical addresses like 44x, 85xx, and 86xx.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoRename include/md5.h to include/u-boot/md5.h
Andy Fleming [Wed, 2 Apr 2008 21:19:07 +0000 (16:19 -0500)]
Rename include/md5.h to include/u-boot/md5.h

Some systems have md5.h installed in /usr/include/. This isn't the
desired file (we want the one in include/md5.h). This will avoid the
conflict. This fixes the host tools building problem by creating a new
directory for U-Boot specific header files.

[Patch by Andy Fleming, modified to use separate directory by Wolfgang
Denk]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Acked-by: Timur Tabi <timur@freescale.com>
16 years agodrivers: code clean up
Dave Liu [Thu, 27 Mar 2008 10:51:17 +0000 (18:51 +0800)]
drivers: code clean up

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agodrivers: clean up the ata_piix.h
Dave Liu [Thu, 27 Mar 2008 10:50:41 +0000 (18:50 +0800)]
drivers: clean up the ata_piix.h

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agodoc: english polishing for README.sata
Dave Liu [Thu, 27 Mar 2008 10:49:56 +0000 (18:49 +0800)]
doc: english polishing for README.sata

according to gvb's suggestion, polishing for the doc.

Signed-off-by: Jerry Van Baren <gerald.vanbaren@ge.com>
Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoFix warnings introduced by I2C bus speed setting patch
Kumar Gala [Wed, 26 Mar 2008 23:53:28 +0000 (18:53 -0500)]
Fix warnings introduced by I2C bus speed setting patch

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoAltera Stratix II support
eran liberty [Wed, 26 Mar 2008 23:50:49 +0000 (00:50 +0100)]
Altera Stratix II support

Adds Support for Altera's Stratix II.

Within your board specific init file you will have to call

1. fpga_init (/* relocated code offset. usually => */ gd->reloc_off);
2. fpga_add (fpga_altera, (Altera_desc*)&altera_desc);

Altera_desc* contines (for example):
{
 Altera_StratixII, /* part type */
 passive_serial, /* interface type */
 1, /* bytes of data part can accept */
 (void *)(&funcs), /* interface function table */
 0L, /* base interface address */
 0 /* implementation specific cookie */
 }

funcs is the interface. It is of type altera_board_specific_func.
It looks like this:
altera_board_specific_func func = {
pre_fn,
config_fn,
status_fn,
done_fn,
clk_fn,
data_fn,
abort_fn,
post_fn,
};

you will have to implement these functions, which is usually bit
banging some gpio.

Signed-off-by: Eran Liberty <liberty@extricom.com>
16 years agoUpdate CHANGELOG
Wolfgang Denk [Sun, 13 Apr 2008 21:32:54 +0000 (14:32 -0700)]
Update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoPhytec Phycore-i.MX31 support
Sascha Hauer [Wed, 26 Mar 2008 19:41:17 +0000 (20:41 +0100)]
Phytec Phycore-i.MX31 support

This patch adds support for the Phytec Phycore-i.MX31 board

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agomx31 litekit support
Sascha Hauer [Wed, 26 Mar 2008 19:41:09 +0000 (20:41 +0100)]
mx31 litekit support

This patch adds support for the mx31 litekit board

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoadd an i2c driver for mx31
Sascha Hauer [Wed, 26 Mar 2008 19:40:49 +0000 (20:40 +0100)]
add an i2c driver for mx31

This patch adds an i2c driver for Freescale i.MX processors

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agocore support for Freescale mx31
Sascha Hauer [Wed, 26 Mar 2008 19:40:42 +0000 (20:40 +0100)]
core support for Freescale mx31

This patch adds the core support for Freescale mx31

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agoFix compile error
Wolfgang Denk [Sun, 13 Apr 2008 21:19:23 +0000 (14:19 -0700)]
Fix compile error

...as suggested by Peter Pearse

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoSeparate omap24xx specific code from arm1136
Sascha Hauer [Wed, 26 Mar 2008 19:40:36 +0000 (20:40 +0100)]
Separate omap24xx specific code from arm1136

Move omap24xx code to cpu/arm1136/omap24xx, rename include/asm-arm/arch-arm1136
to cpu/arm1136/omap24xx.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agodisable caches before booting an app for Blackfin apps
Mike Frysinger [Tue, 29 Jan 2008 23:21:05 +0000 (18:21 -0500)]
disable caches before booting an app for Blackfin apps

It isn't generally save to execute applications outside of U-Boot with caches
enabled due to the way the Blackfin processor handles caches (requires
software assistance).  This patch disables caches before booting an ELF or
just booting raw code.  The previous discussion on the patch was that we
wanted to use weaks instead, but that proved to not be feasible when multiple
symbols are involved, which puts us back at the ifdef solution.  I've
minimized the ugliness by moving the setup step outside of the main function.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>