]> git.sur5r.net Git - u-boot/log
u-boot
16 years agoMerge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
Wolfgang Denk [Tue, 4 Mar 2008 23:21:37 +0000 (00:21 +0100)]
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master

16 years agonet: Print error message upon net usage when no ethernet-interface is found
Stefan Roese [Tue, 4 Mar 2008 16:40:41 +0000 (17:40 +0100)]
net: Print error message upon net usage when no ethernet-interface is found

This patch fixes a problem seen on PPC4xx boards, when no MAC address is
defined. Then no ethernet interface is available but a simple "tftp"
command will return without any error message which is quite confusing.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoRemove erroneous or extra spd.h #includers.
Jon Loeliger [Tue, 4 Mar 2008 16:03:03 +0000 (10:03 -0600)]
Remove erroneous or extra spd.h #includers.

Many of the spd.h #includers don't need it,
and wanted to have spd_sdram() declared instead.
Since they didn't get that, some also had open
coded extern declarations of it instead or as well.
Fix it all up by using spd_sdram.h where needed.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
16 years agoPCS440EP: fix build problems (redundant #define)
Wolfgang Denk [Tue, 4 Mar 2008 16:41:28 +0000 (17:41 +0100)]
PCS440EP: fix build problems (redundant #define)

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agonet: Print error message upon net usage when no ethernet-interface is found
Stefan Roese [Tue, 4 Mar 2008 16:39:25 +0000 (17:39 +0100)]
net: Print error message upon net usage when no ethernet-interface is found

This patch fixes a problem seen on PPC4xx boards, when no MAC address is
defined. Then no ethernet interface is available but a simple "tftp"
command will return without any error message which is quite confusing.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoW7OLMC/W7OLMG: fix build problems (redundant #define)
Wolfgang Denk [Tue, 4 Mar 2008 16:38:50 +0000 (17:38 +0100)]
W7OLMC/W7OLMG: fix build problems (redundant #define)

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMakefile: fix problem with out-of-tree builds introduced by 5013c09f
Wolfgang Denk [Tue, 4 Mar 2008 13:58:31 +0000 (14:58 +0100)]
Makefile: fix problem with out-of-tree builds introduced by 5013c09f

Commit 5013c09f (Makefile: cleanup "clean" target) introduced a
problem for out-of-tree builds which caused "make clean" to fail.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoexamples/Makefile: build "hello_world" on 8xx, too.
Wolfgang Denk [Tue, 4 Mar 2008 10:58:26 +0000 (11:58 +0100)]
examples/Makefile: build "hello_world" on 8xx, too.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoPPC4xx (Sequoia): Fix Ethernet "remote fault" problems
Mike Nuss [Mon, 3 Mar 2008 20:27:05 +0000 (15:27 -0500)]
PPC4xx (Sequoia): Fix Ethernet "remote fault" problems

Every now and then a Sequoia board (or equivalent hardware) had
problems connecting to a Gigabit capable network interface.

There were differences in the PHY setup between Linux and U-Boot.

This patch fixes the problem. Apparently "remote fault" is being set,
which signals to some devices (on the other end of the cable) that a
fault has occurred, while other devices ignore it. I believe the RF bit
was causing the issue, but I removed T4 also, to match up with Linux.

Signed-off-by: Mike Nuss <mike@terascala.com>
16 years agofix QE firmware uploading limit
Timur Tabi [Mon, 3 Mar 2008 15:58:52 +0000 (09:58 -0600)]
fix QE firmware uploading limit

Fix a typo in qe_upload_firmware() that prevented uploading firmware on
systems with more than one RISC core.

Signed-off-by: Timur Tabi <timur@freescale.com>
16 years agoFix endianess problem in cramfs code (cramfs is always host-endian in Linux)
Bernhard Nemec [Mon, 3 Mar 2008 11:57:23 +0000 (11:57 +0000)]
Fix endianess problem in cramfs code (cramfs is always host-endian in Linux)

Originally pointed out by Laurent Pinchart <laurent.pinchart@tbox.biz>,
see http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/22846

Signed-off-by: Bernhard Nemec <bnemec <at> ganssloser.com>
16 years agofix copy from ram to dataflash
Kim B. Heino [Mon, 3 Mar 2008 08:39:13 +0000 (10:39 +0200)]
fix copy from ram to dataflash

If I try to "cp.b <ram> <dataflash>", u-boot selects normal flash
routines instead of dataflash. This is because it checks "if source
address is not dataflash" instead of target address.

Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com>
16 years agoFix quoting problem (preboot setting) in many board config files.
Wolfgang Denk [Mon, 3 Mar 2008 11:16:44 +0000 (12:16 +0100)]
Fix quoting problem (preboot setting) in many board config files.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoADS5121: Fix default environment.
Wolfgang Denk [Mon, 3 Mar 2008 11:36:49 +0000 (12:36 +0100)]
ADS5121: Fix default environment.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMakefile: Fix missing unconfig and mkconfig use
Jean-Christophe PLAGNIOL-VILLARD [Sun, 2 Mar 2008 15:12:31 +0000 (16:12 +0100)]
Makefile: Fix missing unconfig and mkconfig use

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoFix checking fat32 cluster size.
michael [Sun, 2 Mar 2008 22:33:46 +0000 (23:33 +0100)]
Fix checking fat32 cluster size.

This fixes the cluster size tests in the FAT32 file system.
The current implementation of VFAT support doesn't work if the
referred cluster has an offset > 16bit representation, causing
"fatload" and "fatls" commands etc. to fail.

Signed-off-by: michael trimarchi <trimarchi@gandalf.sssup.it>
16 years agoPrepare v1.3.2-rc2 release candidate v1.3.2-rc3
Wolfgang Denk [Sun, 2 Mar 2008 21:57:23 +0000 (22:57 +0100)]
Prepare v1.3.2-rc2 release candidate

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoppc4xx: EMAC: Fix 405EZ fifo size setup in EMAC_MR1
Stefan Roese [Sat, 1 Mar 2008 11:11:40 +0000 (12:11 +0100)]
ppc4xx: EMAC: Fix 405EZ fifo size setup in EMAC_MR1

The 405EZ only supports 512 bytes of rx-/tx-fifo EMAC sizes. But
currently 4k/2k is configured. This patch fixes this issue.

Thanks to Thomas Kindler <tkindler@lenord.de> for pointing this out.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoFix alignment error on ARM for modules
Woodruff, Richard [Fri, 29 Feb 2008 23:34:35 +0000 (17:34 -0600)]
Fix alignment error on ARM for modules

Fix alignment fault on ARM when running modules.  With out an explicit
linker file gcc4.2.1 will half word align __bss_start's value.  The word
dereference will crash hello_world.

signed-off-by Richard Woodruff <r-woodruff2@ti.com>

16 years agofs: Fix ext2 read issue
Dave Liu [Fri, 29 Feb 2008 09:45:31 +0000 (17:45 +0800)]
fs: Fix ext2 read issue

The ext2 aligned process will corrupt the key
data struct, the patch fix this.

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoMakefile: cleanup "clean" target
Wolfgang Denk [Sun, 2 Mar 2008 21:45:33 +0000 (22:45 +0100)]
Makefile: cleanup "clean" target

Make sure CDPATH settings cannot interfere.
Update CHANGELOG.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoadd cscope build target
Li Yang [Fri, 29 Feb 2008 03:46:05 +0000 (11:46 +0800)]
add cscope build target

Add cscope build target to generate cscope database for code browsing.

Signed-off-by: Li Yang <leoli@freescale.com>
16 years agonet: uec_phy: handle 88e1111 rev.B2 erratum 5.6
Kim Phillips [Wed, 27 Feb 2008 21:06:39 +0000 (15:06 -0600)]
net: uec_phy: handle 88e1111 rev.B2 erratum 5.6

erratum 5.6 states the autoneg completion bit is functional only if the
autoneg bit is asserted.

This fixes any secondarily-issued networking commands on non-gigabit
links on the mpc8360 mds board.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc85xx
Wolfgang Denk [Sun, 2 Mar 2008 20:46:20 +0000 (21:46 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-mpc85xx

16 years agoMPC5121e ADS PCI support take 3
John Rigby [Tue, 26 Feb 2008 16:38:14 +0000 (09:38 -0700)]
MPC5121e ADS PCI support take 3

Adds PCI support for MPC5121

Tested with drivers/net/rtl8139.c

Support is conditional since PCI on old silicon does not work.

ads5121_PCI_config turns on PCI

In this version, condition compilation of PCI code has been moved
from ifdef in board/ads5121/pci.c to board/ads5121/Makefile as
suggested by Jean-Christophe PLAGNIOL-VILLARD

Signed-off-by: John Rigby <jrigby@freescale.com>
16 years agoFix warnings while compilation of post/drivers/memory.c
Anatolij Gustschin [Mon, 25 Feb 2008 22:53:07 +0000 (23:53 +0100)]
Fix warnings while compilation of post/drivers/memory.c

Fix warnings while compilation with new gcc in eldk-4.2

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc86xx
Wolfgang Denk [Sun, 2 Mar 2008 20:40:52 +0000 (21:40 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-mpc86xx

16 years agoppc4xx: Fix problem in 4xx_enet.c driver
Anatolij Gustschin [Mon, 25 Feb 2008 19:54:04 +0000 (20:54 +0100)]
ppc4xx: Fix problem in 4xx_enet.c driver

U-Boot crashes in the net loop if CONFIG_4xx_DCACHE is
enabled. To reproduce the problem ensure that 'ethrotate'
environment variable isn't set to "no" and then run
"tftp 200000 not_existent_file".
This patch tries to fix the issue.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoPOST: Disable cache while SPR POST
Anatolij Gustschin [Mon, 25 Feb 2008 19:04:20 +0000 (20:04 +0100)]
POST: Disable cache while SPR POST

Currently (since commit b2e2142c) u-boot crashes on
sequoia board while SPR test if CONFIG_4xx_DCACHE is
enabled. This patch disables the cache while SPR test.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoTQM5200: use automatic fdt memory fixup (part 2)
Martin Krause [Mon, 25 Feb 2008 16:52:40 +0000 (17:52 +0100)]
TQM5200: use automatic fdt memory fixup (part 2)

Call fdt_fixup_memory() on the boards TQM5200, TQM5200_B, TQM5200S,
TB5200 and TB5200_B to fixup the /memory node with the memory values
detected by U-Boot.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
Wolfgang Denk [Sun, 2 Mar 2008 20:30:18 +0000 (21:30 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-arm
Wolfgang Denk [Sun, 2 Mar 2008 20:29:18 +0000 (21:29 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-arm

Conflicts:

include/asm-arm/arch-imx/imx-regs.h

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoTQM5200: use automatic fdt memory fixup
Martin Krause [Mon, 25 Feb 2008 14:17:05 +0000 (15:17 +0100)]
TQM5200: use automatic fdt memory fixup

Call fdt_fixup_memory() on the boards TQM5200, TQM5200_B, TQM5200S,
TB5200 and TB5200_B to fixup the /memory node with the memory values
detected by U-Boot.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
16 years agoTQM5200: fix bug in SDRAM initialization code
Martin Krause [Mon, 25 Feb 2008 12:27:52 +0000 (13:27 +0100)]
TQM5200: fix bug in SDRAM initialization code

This patch fixes a bug in the SDRAM initialization code for the
TQM5200. The hi_addr bit is now set correctly. Without this patch
the hi_addr bit is always set to 1, if the second SDRAM bank is
not populated.

For other MPC5200 boards a correspondig patch has already been applied
some time ago, see commit a63109281ad41b0fb489fdcb901171f76bcdbc2c.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
--
Forget the first patch please. I confused flash with SDRAM in
the comment ...

16 years agomx1fs2/flash: Fix multiple compiler warnings
Jean-Christophe PLAGNIOL-VILLARD [Sun, 24 Feb 2008 23:03:12 +0000 (00:03 +0100)]
mx1fs2/flash: Fix multiple compiler warnings

"pointer targets in assignment differ in signedness"

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoarm-imx: Fix register definitions
Jean-Christophe PLAGNIOL-VILLARD [Sun, 24 Feb 2008 23:03:11 +0000 (00:03 +0100)]
arm-imx: Fix register definitions

Sync register definitions with linux

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoactua1/actua2/actua3: Fix multiple unused variable warnings
Jean-Christophe PLAGNIOL-VILLARD [Sun, 24 Feb 2008 23:03:10 +0000 (00:03 +0100)]
actua1/actua2/actua3: Fix multiple unused variable warnings

- actua1:
actux1.c: In function 'checkboard':
actux1.c:92: warning: unused variable 'revision'

- actua2:
actux2.c: In function 'checkboard':
actux2.c:100: warning: unused variable 's'
actux2.c:99: warning: unused variable 'revision'
actux2.c: In function 'reset_phy':
actux2.c:130: warning: unused variable 'i'

- actua3:
actux3.c: In function 'checkboard':
actux3.c:114: warning: unused variable 'revision'

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoRemove the __STRICT_ANSI__ check from the __u64/__s64 declaration on 32bit targets.
Shinya Kuribayashi [Sun, 24 Feb 2008 02:44:29 +0000 (11:44 +0900)]
Remove the __STRICT_ANSI__ check from the __u64/__s64 declaration on 32bit targets.

The previous patch was lacking of i386, microblaze, nios and nios2. This
patch tries to fix them.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[new uImage] Fix FDT blob totalsize calculation in boot_relocate_fdt()
Marian Balakowicz [Fri, 29 Feb 2008 21:22:46 +0000 (22:22 +0100)]
[new uImage] Fix FDT blob totalsize calculation in boot_relocate_fdt()

Do not use global fdt blob pointer, calculate blob size from routine
argument blob pointer.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
16 years agolibfdt: Add and use a node iteration helper function.
David Gibson [Mon, 11 Feb 2008 13:58:31 +0000 (00:58 +1100)]
libfdt: Add and use a node iteration helper function.

This patch adds an fdt_next_node() function which can be used to
iterate through nodes of the tree while keeping track of depth.  This
function is used to simplify the iteration code in a lot of other
functions, and is also exported for use by library users.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
16 years ago[new uImage] Add libfdt support to mkimage
Bartlomiej Sieka [Fri, 29 Feb 2008 15:00:24 +0000 (16:00 +0100)]
[new uImage] Add libfdt support to mkimage

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years ago[new uImage] Add sha1.o object to mkimage binary build
Bartlomiej Sieka [Fri, 29 Feb 2008 15:00:23 +0000 (16:00 +0100)]
[new uImage] Add sha1.o object to mkimage binary build

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years ago[new uImage] Fix component handling for legacy multi component images
Marian Balakowicz [Fri, 29 Feb 2008 15:00:06 +0000 (16:00 +0100)]
[new uImage] Fix component handling for legacy multi component images

Use uint32_t when accessing size table in image_multi_count() and
image_multi_getimg() for multi component images.

Add missing uimage_to_cpu() endianness conversion.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] Share common uImage code between mkimage and U-boot
Marian Balakowicz [Fri, 29 Feb 2008 14:59:59 +0000 (15:59 +0100)]
[new uImage] Share common uImage code between mkimage and U-boot

This patch adds the following common routines:

1) Dedicated mkimage print_header() is replaced with common
image_print_contents()
image_print_contents_noindent()

2) Common os/arch/type/comp fields name <--> id translation routines
genimg_get_os_name()
genimg_get_arch_name()
genimg_get_type_name()
genimg_get_comp_name()
genimg_get_os_id()
genimg_get_arch_id()
genimg_get_type_id()
genimg_get_comp_id()

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] Update naming convention for bootm/uImage related code
Marian Balakowicz [Fri, 29 Feb 2008 13:58:34 +0000 (14:58 +0100)]
[new uImage] Update naming convention for bootm/uImage related code

This patch introduces the following prefix convention for the
image format handling and bootm related code:

genimg_ - dual format shared code
image_ - legacy uImage format specific code
fit_ - new uImage format specific code
boot_ - booting process related code

Related routines are renamed and a few pieces of code are moved around and
re-grouped.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot into new-image
Marian Balakowicz [Fri, 29 Feb 2008 12:56:44 +0000 (13:56 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot into new-image

16 years ago[new uImage] Respect autostart setting in linux bootm
Kumar Gala [Thu, 28 Feb 2008 03:51:51 +0000 (21:51 -0600)]
[new uImage] Respect autostart setting in linux bootm

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] Provide ability to restrict region used for boot images
Kumar Gala [Thu, 28 Feb 2008 03:51:50 +0000 (21:51 -0600)]
[new uImage] Provide ability to restrict region used for boot images

Allow the user to set 'bootm_low' and 'bootm_size' env vars as a way
to restrict what memory range is used for bootm.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] Use lmb for bootm allocations
Kumar Gala [Thu, 28 Feb 2008 03:51:49 +0000 (21:51 -0600)]
[new uImage] Use lmb for bootm allocations

Convert generic ramdisk_high(), get_boot_cmdline(), get_boot_kbd()
functions over to using lmb for allocation of the ramdisk, command line
and kernel bd info.

Convert PPC specific fdt_relocate() to use lmb for allocation of the device
tree.

Provided a weak function that board code can call to do additional
lmb reserves if needed.

Also introduce the concept of bootmap_base to specify the offset in
physical memory that the bootmap is located at.  This is used for
allocations of the cmdline, kernel bd, and device tree as they should
be contained within bootmap_base and bootmap_base + CFG_BOOTMAPSZ.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago[new uImage] Add autostart flag to bootm_headers structure
Kumar Gala [Thu, 28 Feb 2008 03:51:48 +0000 (21:51 -0600)]
[new uImage] Add autostart flag to bootm_headers structure

The autostart env variable was dropped as part of the initial new uImage
cleanup.  Add it back here so the arch specific code can decide if it
wants to really boot or not.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] Introduce lmb from linux kernel for memory mgmt of boot images
Kumar Gala [Thu, 28 Feb 2008 03:51:47 +0000 (21:51 -0600)]
[new uImage] Introduce lmb from linux kernel for memory mgmt of boot images

Introduce the LMB lib used on PPC in the kernel as a clean way to manage
the memory spaces used by various boot images and structures.  This code
will allow us to simplify the code in bootm and its support functions.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago[new uImage] ppc: Allow boards to specify effective amount of memory
Kumar Gala [Wed, 20 Feb 2008 04:03:47 +0000 (22:03 -0600)]
[new uImage] ppc: Allow boards to specify effective amount of memory

For historical reasons we limited the stack to 256M because some boards
could only map that much via BATS.  However newer boards are capable of
mapping more memory (for example 85xx is capable of doing up to 2G).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] rework error handling so common functions don't reset
Kumar Gala [Thu, 28 Feb 2008 03:51:46 +0000 (21:51 -0600)]
[new uImage] rework error handling so common functions don't reset

Changed image_get_ramdisk() to just return NULL on error and have
get_ramdisk() propogate that error to the caller.  It's left to the
caller to call do_reset() if it wants to.

Also moved calling do_reset() in get_fdt() and fdt_relocate() on ppc
to a common location.  In the future we will change get_fdt() and
fdt_relocate() to return success/failure and not call do_reset() at all.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] ppc: Re-order ramdisk/fdt handling sequence
Kumar Gala [Thu, 28 Feb 2008 03:51:45 +0000 (21:51 -0600)]
[new uImage] ppc: Re-order ramdisk/fdt handling sequence

Doing the fdt before the ramdisk allows us to grow the fdt w/o concern
however it does mean we have to go in and fixup the initrd info since
we don't know where it will be.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago[new uImage] ppc: Determine if we are booting an OF style
Kumar Gala [Thu, 28 Feb 2008 03:51:44 +0000 (21:51 -0600)]
[new uImage] ppc: Determine if we are booting an OF style

If we are bootin OF style than we can skip setting up some things
that are used for the old boot method.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] Don't pass kdb to ramdisk_high since we may not have one
Kumar Gala [Thu, 28 Feb 2008 03:51:43 +0000 (21:51 -0600)]
[new uImage] Don't pass kdb to ramdisk_high since we may not have one

We don't actually need the kdb param as we are just using it to get
bd->bi_memsize which we can get from gd->bd->bi_memsize.  Also, if we
boot via OF we might not actually fill out a kdb.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Marian Balakowicz <m8@semihalf.com>
16 years ago85xx: Don't icbi when unlocking the cache
Kumar Gala [Wed, 27 Feb 2008 22:30:47 +0000 (16:30 -0600)]
85xx: Don't icbi when unlocking the cache

There is no reason to icbi when invalidating the temporary stack in
the d-cache.  Its impossible on e500 to have the i-cache contain
any addresses in the temp stack and it can be problematic in generating
transactions on the bus to non-valid addresses.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFix source for ECM error IVPR
Andy Fleming [Wed, 27 Feb 2008 21:50:50 +0000 (15:50 -0600)]
Fix source for ECM error IVPR

The source vector for the ECM was being set to 2,
but that's what the source vector for DDR was being
set to.  Change it to 1.

Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agoInvalidate INIT_RAM TLB mappings
Andy Fleming [Wed, 27 Feb 2008 20:29:58 +0000 (14:29 -0600)]
Invalidate INIT_RAM TLB mappings

Commit 0db37dc...  (and some others) changed the INIT_RAM TLB
mappings to be unguarded.  This collided with an existing "bug"
where the mappings for the INIT_RAM were being kept around.
This meant that speculative loads to those addresses were
succeeding in the TLB, and going out to the bus, where they
were causing an exception (there's nothing at that address). The
Flash code was coincidentally causing such a speculative load.
Rather than go back to mapping the INIT RAM as guarded, we fix
it so that the entries for the INIT_RAM are invalidated.  Thus
the speculative loads will fail in the TLB, and have no effect.

Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agosbc8548: Fix Revision reading and unused variable 'path'
Jean-Christophe PLAGNIOL-VILLARD [Sun, 17 Feb 2008 21:56:17 +0000 (22:56 +0100)]
sbc8548: Fix Revision reading and unused variable 'path'

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agosbc8548: Fix cfi flash bank declaration
Jean-Christophe PLAGNIOL-VILLARD [Sun, 17 Feb 2008 21:56:16 +0000 (22:56 +0100)]
sbc8548: Fix cfi flash bank declaration

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years ago[new uImage] Correct raw FDT blob handlig when CONFIG_FIT is disabled
Marian Balakowicz [Wed, 27 Feb 2008 10:02:26 +0000 (11:02 +0100)]
[new uImage] Correct raw FDT blob handlig when CONFIG_FIT is disabled

Dual format image code must properly handle all three FDT passing methods:
- raw FDT blob passed
- FDT blob embedded in the legacy uImage
- FDT blob embedded in the new uImage

This patch enables proper raw FDT handling when no FIT imaeg support
is compiled in. This is a bit tricky as we must dected FIT format even
when FIT uImage handling is not enabled as both FIT uImages and raw FDT
blobs use tha same low level format (libfdt).

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] POWERPC: Add image_get_fdt() routine
Marian Balakowicz [Wed, 27 Feb 2008 10:02:26 +0000 (11:02 +0100)]
[new uImage] POWERPC: Add image_get_fdt() routine

FDT blob may be passed either: (1) raw (2) or embedded in the legacy uImage
(3) or embedded in the new uImage. For the (2) case embedding image must be
verified before we get FDT from it. This patch factors out legacy image
specific verification routine to the separate helper routine.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago[new uImage] Add image_get_kernel() routine
Marian Balakowicz [Wed, 27 Feb 2008 10:02:07 +0000 (11:02 +0100)]
[new uImage] Add image_get_kernel() routine

Legacy image specific verification is factored out to a separate helper
routine to keep get_kernel() generic and simple.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago[new uImage] Move image verify flag to bootm_headers structure
Marian Balakowicz [Wed, 27 Feb 2008 10:01:04 +0000 (11:01 +0100)]
[new uImage] Move image verify flag to bootm_headers structure

Do not pass image verification flag directly to related routines.
Simplify argument passing and move it to the bootm_header structure which
contains curently processed image specific data and is already being passed
on the argument list.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago[Makefile] Sort COBJS in lib_<arch> Makefiles
Marian Balakowicz [Wed, 27 Feb 2008 10:00:47 +0000 (11:00 +0100)]
[Makefile] Sort COBJS in lib_<arch> Makefiles

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
16 years ago[new uImage] Optimize gen_get_image() flow control
Marian Balakowicz [Wed, 27 Feb 2008 10:00:47 +0000 (11:00 +0100)]
[new uImage] Optimize gen_get_image() flow control

When CONFIG_HAS_DATAFLASH is not defined gen_get_image() routine has nothing
to do, update its control flow to better reflect that simple case.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago[new uImage] POWERPC: Split get_fdt() into get and relocate routines
Marian Balakowicz [Mon, 4 Feb 2008 07:28:17 +0000 (08:28 +0100)]
[new uImage] POWERPC: Split get_fdt() into get and relocate routines

PPC specific FDT blob handling code is divided into two separate routines:

get_fdt() - find and verify a FDT blob (either raw or image embedded)
fdt_relocate() - move FDT blob to within BOOTMAP if needed

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago86xx: Fix renamed GUR symbols in sbc8641d board.
Jon Loeliger [Mon, 25 Feb 2008 19:13:37 +0000 (13:13 -0600)]
86xx: Fix renamed GUR symbols in sbc8641d board.

Back in commit a551cee99ad1d1da20fd23ad265de47448852f56
(86xx: Fix GUR PCI config registers properly), we should have
changed the MPC86xx_PORBMSR_HA and MPC86xx_PORDEVSR_IO_SEL
symbols in the sbc8641d board as well.  Fix this oversight.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
16 years agoppc4xx: Fix acadia_nand build problem
Stefan Roese [Mon, 25 Feb 2008 15:50:48 +0000 (16:50 +0100)]
ppc4xx: Fix acadia_nand build problem

Don't include testdram() on NAND-booting target acadia_nand. This saves
a few bytes and makes the target build clean again.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agomx1fs2/flash: Fix multiple pointertargets in assignment differ in signedness
Jean-Christophe PLAGNIOL-VILLARD [Sun, 24 Feb 2008 23:03:12 +0000 (23:03 +0000)]
mx1fs2/flash: Fix multiple pointertargets in assignment differ in signedness

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoarm-imx: Fix registers definition
Jean-Christophe PLAGNIOL-VILLARD [Sun, 24 Feb 2008 23:03:11 +0000 (23:03 +0000)]
arm-imx: Fix registers definition

Sync registers definition with linux

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoactua1/actua2/actua3: Fix multipleunused variable
Jean-Christophe PLAGNIOL-VILLARD [Sun, 24 Feb 2008 23:03:10 +0000 (23:03 +0000)]
actua1/actua2/actua3: Fix multipleunused variable

- actua1:
actux1.c: In function 'checkboard':
actux1.c:92: warning: unused variable 'revision'

- actua2:
actux2.c: In function 'checkboard':
actux2.c:100: warning: unused variable 's'
actux2.c:99: warning: unused variable 'revision'
actux2.c: In function 'reset_phy':
actux2.c:130: warning: unused variable 'i'

- actua3:
actux3.c: In function 'checkboard':
actux3.c:114: warning: unused variable 'revision'

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years ago[new uImage] Add dual format uImage support framework
Marian Balakowicz [Mon, 4 Feb 2008 07:28:09 +0000 (08:28 +0100)]
[new uImage] Add dual format uImage support framework

This patch adds framework for dual format images. Format detection is added
and the bootm controll flow is updated to include cases for new FIT format
uImages.

When the legacy (image_header based) format is detected appropriate
legacy specific handling is invoked. For the new (FIT based) format uImages
dual boot framework has a minial support, that will only print out a
corresponding debug messages. Implementation of the FIT specific handling will
be added in following patches.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
16 years agoCoding style cleanup. Prepare v1.3.2-rc2 release candidate v1.3.2-rc2
Wolfgang Denk [Sun, 24 Feb 2008 14:21:36 +0000 (15:21 +0100)]
Coding style cleanup. Prepare v1.3.2-rc2 release candidate

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoENV: remove saveenv when CFG_ENV_IS_NOWHERE is selected
Jean-Christophe PLAGNIOL-VILLARD [Sat, 23 Feb 2008 11:15:56 +0000 (12:15 +0100)]
ENV: remove saveenv when CFG_ENV_IS_NOWHERE is selected

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoRemove the __STRICT_ANSI__ check from the __u64/__s64 declaration on 32bit targets.
Shinya Kuribayashi [Sat, 23 Feb 2008 08:24:16 +0000 (17:24 +0900)]
Remove the __STRICT_ANSI__ check from the __u64/__s64 declaration on 32bit targets.

----------------------------------------------------------------
Olaf Hering [Wed, 17 Oct 2007 06:27:13 +0000 (23:27 -0700)]

Remove the __STRICT_ANSI__ check from the __u64/__s64 declaration on
32bit targets.

GCC can be made to warn about usage of long long types with ISO C90
(-ansi), but only with -pedantic.  You can write this in a way that even
then it doesn't cause warnings, namely by:

#ifdef __GNUC__
__extension__ typedef __signed__ long long __s64;
__extension__ typedef unsigned long long __u64;
#endif

The __extension__ keyword in front of this switches off any pedantic
warnings for this expression.

Signed-off-by: Olaf Hering <olh@suse.de>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
----------------------------------------------------------------

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agocpu/mcf52x2/config.mk: Make needlessly deffered expansions immediate.
Shinya Kuribayashi [Sat, 23 Feb 2008 08:07:57 +0000 (17:07 +0900)]
cpu/mcf52x2/config.mk: Make needlessly deffered expansions immediate.

This will reduce the build time.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agocpu/ppc4xx/config.mk: Make a needlessly deffered expansion immediate.
Shinya Kuribayashi [Sat, 23 Feb 2008 08:05:00 +0000 (17:05 +0900)]
cpu/ppc4xx/config.mk: Make a needlessly deffered expansion immediate.

This will reduce the build time.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agocpu/mips/cofigl.mk: Make a needlessly deffered expansion immediate.
Shinya Kuribayashi [Sat, 23 Feb 2008 07:58:41 +0000 (16:58 +0900)]
cpu/mips/cofigl.mk: Make a needlessly deffered expansion immediate.

This reduces the build time by ~10%. Here's the gth2_config example.

        BEFORE       AFTER
real    0m31.441s    0m27.833s
user    0m24.766s    0m23.045s
sys     0m10.425s    0m7.468s

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agomake define2mk.sed work on FreeBSD
Marcel Moolenaar [Fri, 22 Feb 2008 18:48:07 +0000 (10:48 -0800)]
make define2mk.sed work on FreeBSD

In the thread "[1.3.2-rc1] MPC8548CDS/MPC8555CDS configs fails to link",
the define2mk.sed script was identified as the source of the link
failure on FreeBSD. The problem is that sed(1) does not always support
the '+' operator. It isn't on FreeBSD. The attach patch implements the
equivalent, using the '*' operator instead and should work everywhere.

Signed-off-by: Marcel Moolenaar <marcelm@juniper.net>
16 years agoReplace deprecated "ramdisk" with "ramdisk_size" kernel parameter.
Detlev Zundel [Fri, 22 Feb 2008 16:21:32 +0000 (17:21 +0100)]
Replace deprecated "ramdisk" with "ramdisk_size" kernel parameter.

The Linux commit fac8b209b1084bc85748bd54e13d00c1262b220f ("Remove
final traces of long-deprecated "ramdisk" kernel parm") makes these
changes neccessary.

Signed-off-by: Detlev Zundel <dzu@denx.de>
16 years agoLM75 bug fix for negative temperatures
Larry Johnson [Thu, 21 Feb 2008 18:58:16 +0000 (13:58 -0500)]
LM75 bug fix for negative temperatures

When the LM75 temperature sensor measures a temperature below 0 C, the
current driver does not perform sign extension, so the result returned is
256 C too high.  This patch fixes the problem.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoIDS8247: update MAINTAINER entry.
Heiko Schocher [Thu, 21 Feb 2008 17:33:45 +0000 (18:33 +0100)]
IDS8247: update MAINTAINER entry.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoFix device tree for mgsuvd board.
Heiko Schocher [Thu, 21 Feb 2008 17:31:15 +0000 (18:31 +0100)]
Fix device tree for mgsuvd board.

Rename the "scc" node in "ethernet" for the mgsuvd board.

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agolwmon5: enable hardware watchdog
Yuri Tikhonov [Thu, 21 Feb 2008 13:23:42 +0000 (14:23 +0100)]
lwmon5: enable hardware watchdog

Some boards (e.g. lwmon5) may use rather small watchdog intervals, so
causing it to reboot the board if U-Boot does a long busy-wait with
udelay(). Thus, for these boards we have to restart WD more
frequently.

This patch splits the busy-wait udelay() into smaller, predefined,
intervals, so that the watchdog timer may be resetted with the
configurable (CONFIG_WD_PERIOD) interval.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
16 years agoppc4xx: Support for ATI Radeon 9200 card on sequoia
Anatolij Gustschin [Thu, 21 Feb 2008 11:52:29 +0000 (12:52 +0100)]
ppc4xx: Support for ATI Radeon 9200 card on sequoia

Adds configuration option for ATI Radeon 9200 card
support to sequoia config file. If CONFIG_VIDEO
is enabled, TEXT_BASE should be changed to 0xFFF80000.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc86xx
Wolfgang Denk [Fri, 22 Feb 2008 12:03:28 +0000 (13:03 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-mpc86xx

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-cfi-flash
Wolfgang Denk [Fri, 22 Feb 2008 12:02:10 +0000 (13:02 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-cfi-flash

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-freebsd
Wolfgang Denk [Fri, 22 Feb 2008 12:01:04 +0000 (13:01 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-freebsd

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-coldfire
Wolfgang Denk [Fri, 22 Feb 2008 11:56:11 +0000 (12:56 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-coldfire

16 years agoRemove duplicate defines for ARRAY_SIZE
Kumar Gala [Mon, 18 Feb 2008 14:18:07 +0000 (08:18 -0600)]
Remove duplicate defines for ARRAY_SIZE

A few duplicate of the ARRAY_SIZE macro sneaked in since we put
the define in common.h.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoppc: Allow boards to specify effective amount of memory
Kumar Gala [Mon, 18 Feb 2008 14:09:37 +0000 (08:09 -0600)]
ppc: Allow boards to specify effective amount of memory

For historical reasons we limited the stack to 256M because some boards
could only map that much via BATS.  However newer boards are capable of
mapping more memory (for example 85xx is capable of doing up to 2G).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoinclude autoconf.mk before any other .mk files
Mike Frysinger [Mon, 18 Feb 2008 10:24:13 +0000 (05:24 -0500)]
include autoconf.mk before any other .mk files

This bumps the autoconf.mk include step above board/cpu/arch/etc... so that
those .mk files can have make if statements based on the current config.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agoerror check autoconf.mk generation
Mike Frysinger [Mon, 18 Feb 2008 10:10:07 +0000 (05:10 -0500)]
error check autoconf.mk generation

If any of the steps for generating autoconf.mk fail currently, they go
unnoticed.  To fix, we can simply add 'set -e' to the long list of commands.
This is simpler and more robust than placing '|| exit $$?' after every line.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agoFix bug in dependency checking
Stefano Babic [Mon, 18 Feb 2008 07:03:51 +0000 (08:03 +0100)]
Fix bug in dependency checking

By adding VERSION_FILE to the PHONY targets the script
/tools/setlocalversion is always called and version_autogenerated.h
is replaced only if the script find a modified source file.

Signed-off-by: Stefano Babic <sbabic@denx.de>
16 years agoFix GPMC CS2 memory setup at apollon
Kyungmin Park [Mon, 18 Feb 2008 05:35:43 +0000 (14:35 +0900)]
Fix GPMC CS2 memory setup at apollon

It disables the current map first

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
16 years agouli526x: Fix multiple differ in signedness and parentheses around comparison
Jean-Christophe PLAGNIOL-VILLARD [Sun, 17 Feb 2008 22:52:46 +0000 (23:52 +0100)]
uli526x: Fix multiple differ in signedness and parentheses around comparison

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoMIPS: Fix CFG_NO_FLASH support
Jean-Christophe PLAGNIOL-VILLARD [Sun, 17 Feb 2008 15:58:04 +0000 (16:58 +0100)]
MIPS: Fix CFG_NO_FLASH support

- Fix flash_init call when CFG_NO_FLASH is used
- Remove no more needed flash.c for qemu-mips

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoeasylogo: clean up some more and add -r (rgb) support
Mike Frysinger [Sat, 16 Feb 2008 07:40:18 +0000 (02:40 -0500)]
easylogo: clean up some more and add -r (rgb) support

Michael Hennerich added support for outputting an image in RGB format rather
than forcing YUYV all the time.  This makes obvious sense if the display you
have takes RGB input rather than YUYV.

Rather than hack in support for options, I've converted it to use getopt and
cleaned up the argument parsing in the process.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>