]> git.karo-electronics.de Git - karo-tx-uboot.git/log
karo-tx-uboot.git
16 years agoAdd configuration file for Korat board
Larry Johnson [Sat, 22 Dec 2007 20:16:25 +0000 (15:16 -0500)]
Add configuration file for Korat board

This patch supplies the configuration file for the Korat PPC440EPx-
processor board.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoAdd denali_data_eye.o and denali_spd_ddr2.o to PPC4xx Makefile
Larry Johnson [Sat, 22 Dec 2007 20:16:11 +0000 (15:16 -0500)]
Add denali_data_eye.o and denali_spd_ddr2.o to PPC4xx Makefile

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoAdd 440EPx DDR2 SPD DIMM support
Larry Johnson [Thu, 27 Dec 2007 15:54:48 +0000 (10:54 -0500)]
Add 440EPx DDR2 SPD DIMM support

This patch adds SPD DDR2 support for the 440EPx ("Denali") SDRAM
controller.  It should also work on the 440GRx.  It is based on the DDR2
SPD code for the 440EP/440EPx, but makes no provision for DDR1 support.

This code has been tested on prototype Korat boards with three Kingston
DIMMS: 512 MiB ECC (one rank), 512 MiB non-ECC (one rank) and 1 GiB ECC
(two ranks).  The Korat board has a single DIMM socket, but support has
been provided (though not tested) for boards with two DIMM sockets.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoCopy 440EPx/GRx SDRAM data-eye search to common directory
Larry Johnson [Sat, 22 Dec 2007 20:15:30 +0000 (15:15 -0500)]
Copy 440EPx/GRx SDRAM data-eye search to common directory

This patch creates a non-board-specific file for performing the SDRAM
data-eye search.  It also adds ECC error checking to the test of valid
data on readback when ECC is enabled.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoAdd definitions for 440EPx/GRx SDRAM controller to ppc440.h
Larry Johnson [Sat, 22 Dec 2007 20:15:13 +0000 (15:15 -0500)]
Add definitions for 440EPx/GRx SDRAM controller to ppc440.h

This patch adds the Denali SDRAM controller definitions to "ppc440.h".
It also fixes two typos in the definitions, so the board-specific
"sdram.h" files containing these definitions are also fixed to avoid
compiler warnings.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoAdd Ethernet 1000BASE-X support for PPC4xx
Larry Johnson [Thu, 27 Dec 2007 15:50:55 +0000 (10:50 -0500)]
Add Ethernet 1000BASE-X support for PPC4xx

This patch adds a new switch: "CONFIG_PHY_DYNAMIC_ANEG".  When this symbol
is defined, the PHY will advertise it's capabilities for autonegotiation
based on the capabilities shown in the PHY's status registers, including
1000BASE-X.  When "CONFIG_PHY_DYNAMIC_ANEG" is not defined, the PHY will
advertise hard-coded capabilities, as before.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoAdd driver for National Semiconductor LM73 temperature sensor
Larry Johnson [Thu, 27 Dec 2007 14:52:17 +0000 (09:52 -0500)]
Add driver for National Semiconductor LM73 temperature sensor

This driver is based on the driver for the LM75.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoAdd driver for STMicroelectronics M41T60 RTC
Larry Johnson [Sat, 22 Dec 2007 20:14:00 +0000 (15:14 -0500)]
Add driver for STMicroelectronics M41T60 RTC

This driver is based on the driver for the M41T11.  In the intended
application, the RTC will be powered by a large capacitor, rather than a
battery.  The driver therefore checks to see whether the RTC has lost
power.  The chip's OUT bit is normally reset from its power-up state.  If
the OUT bit is read as set, or if the date and time are not valid, then the
RTC is assumed to have lost power, and its date and time are reset to
1900-01-01 00:00:00.

Support for adjusting the speed of the clock to improve accuracy is
provided through an environment variable.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoUse out_be32() and friends to access memory-mapped registers in sequoia.c
Larry Johnson [Sat, 22 Dec 2007 20:34:39 +0000 (15:34 -0500)]
Use out_be32() and friends to access memory-mapped registers in sequoia.c

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoUse definitions from "asm-ppc/mmu.h" in init.S for Sequoia
Larry Johnson [Sat, 22 Dec 2007 20:34:20 +0000 (15:34 -0500)]
Use definitions from "asm-ppc/mmu.h" in init.S for Sequoia

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoCosmetic changes to ECC POST for AMCC Denali core
Larry Johnson [Sat, 22 Dec 2007 20:23:50 +0000 (15:23 -0500)]
Cosmetic changes to ECC POST for AMCC Denali core

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoppc4xx: Fix compilation problem in 405 cache POST test
Stefan Roese [Wed, 26 Dec 2007 19:20:19 +0000 (20:20 +0100)]
ppc4xx: Fix compilation problem in 405 cache POST test

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Move virtual address of POST cache test to bigger address
Stefan Roese [Sat, 22 Dec 2007 11:20:09 +0000 (12:20 +0100)]
ppc4xx: Move virtual address of POST cache test to bigger address

On Sequoia & LWMON5 the virtual address of the POST cache test is now
moved to a bigger address. This enables usage of more memory on those
boards.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Fix problem in 44x cache POST routine
Stefan Roese [Sat, 22 Dec 2007 11:18:26 +0000 (12:18 +0100)]
ppc4xx: Fix problem in 44x cache POST routine

As repoted by Larry Johnson, running "diag run cache" caused a crash
in U-Boot. This problem was introduced by a patch that removed the
TLB entry for the cache test after the test has completed. Since this
TLB was only setup once, a 2nd attempt to run this cache test
failed with a crash. Now this TLB entry is created every time the
routine is called.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Update Makalu fdt support
Stefan Roese [Fri, 21 Dec 2007 06:51:29 +0000 (07:51 +0100)]
ppc4xx: Update Makalu fdt support

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Add fdt support to AMCC Katmai eval board
Stefan Roese [Wed, 19 Dec 2007 08:05:40 +0000 (09:05 +0100)]
ppc4xx: Add fdt support to AMCC Katmai eval board

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: fdt: Cleanup setup of cpu node setup
Stefan Roese [Tue, 18 Dec 2007 07:44:51 +0000 (08:44 +0100)]
ppc4xx: fdt: Cleanup setup of cpu node setup

Now the cpu node setup ("timebase-frequency" and "clock-frequency") is
without using the absolute path to the cpu node. This makes it possible
to use this U-Boot version with both versions of cpu-node naming
"cpu@0" and the former "PowerPC,440EPx@0".

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Fix lwmon5 compilation problem
Stefan Roese [Mon, 17 Dec 2007 16:26:21 +0000 (17:26 +0100)]
ppc4xx: Fix lwmon5 compilation problem

Now that the 440EPx ECC test is not board specific anymore
remove this Makefile.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoFix ppc4xx clear_bss() code
Anatolij Gustschin [Wed, 5 Dec 2007 16:43:20 +0000 (17:43 +0100)]
Fix ppc4xx clear_bss() code

ppc4xx clear_bss() fails if BSS segment size is not
divisible by 4 without remainder. This patch provides
fix for this problem.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoPPC4xx: Minimal changes to add vxWorks support
Niklaus Giger [Fri, 30 Nov 2007 17:35:11 +0000 (18:35 +0100)]
PPC4xx: Minimal changes to add vxWorks support

Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
16 years agoppc4xx: Add CONFIG_BOOTP_SUBNETMASK to Sequoia board config
Markus Klotzbücher [Fri, 23 Nov 2007 12:09:18 +0000 (13:09 +0100)]
ppc4xx: Add CONFIG_BOOTP_SUBNETMASK to Sequoia board config

When using dhcp/bootp the "netmask" environment variable is not
set because CONFIG_BOOTP_SUBNETMASK is not defined. But usually this is
desireable, so the following patch adds this this option to the board
config.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoFix/enhance ECC POST for 440EPx/GRx
Larry Johnson [Sat, 27 Oct 2007 16:48:15 +0000 (12:48 -0400)]
Fix/enhance ECC POST for 440EPx/GRx

This patch allows the ECC POST to be used for different boards with the
PPC440 Denali SDRAM controller.  Modifications include skipping the test
if ECC is not enabled (as for non-ECC DIMMs) and adding synchronization
to prevent timing errors.

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoPPC4xx: Move/rename ECC POST for 440EPx/GRx
Larry Johnson [Sat, 27 Oct 2007 16:48:05 +0000 (12:48 -0400)]
PPC4xx: Move/rename ECC POST for 440EPx/GRx

Signed-off-by: Larry Johnson <lrj@acm.org>
16 years agoppc4xx: use correct io accessors for 4xx ethernet POST
Matthias Fuchs [Fri, 14 Dec 2007 10:20:33 +0000 (11:20 +0100)]
ppc4xx: use correct io accessors for 4xx ethernet POST

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: fix flush + invalidate_dcache_range arguments
Matthias Fuchs [Fri, 14 Dec 2007 10:19:56 +0000 (11:19 +0100)]
ppc4xx: fix flush + invalidate_dcache_range arguments

flush + invalidate_dcache_range() expect the start and stop+1 address.
So the stop address is the first address behind (!) the range.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: fdt: use fdt_fixup_ethernet()
Stefan Roese [Fri, 14 Dec 2007 07:41:29 +0000 (08:41 +0100)]
ppc4xx: fdt: use fdt_fixup_ethernet()

By using aliases in the dts file, the ethernet node fixup is
much easier with the recently added functions.

Please note that the dts file needs the aliases for this to work.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Bring 4xx fdt support up-to-date
Stefan Roese [Thu, 13 Dec 2007 13:52:53 +0000 (14:52 +0100)]
ppc4xx: Bring 4xx fdt support up-to-date

This patch update the 4xx fdt support. It enabled fdt booting
on the AMCC Kilauea and Sequoia for now. More can follow later
quite easily.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Correct GPIO offset in gpio_config()
Stefan Roese [Tue, 11 Dec 2007 12:38:19 +0000 (13:38 +0100)]
ppc4xx: Correct GPIO offset in gpio_config()

Thanks to Gary Jennejohn for pointing this out.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agortc: Fix merging problem
Stefan Roese [Tue, 11 Dec 2007 10:46:01 +0000 (11:46 +0100)]
rtc: Fix merging problem

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoMerge commit 'u-boot/master' into for-1.3.1
Stefan Roese [Tue, 11 Dec 2007 10:34:54 +0000 (11:34 +0100)]
Merge commit 'u-boot/master' into for-1.3.1

Conflicts:

drivers/rtc/Makefile

16 years agoppc4xx: 405EX: Correctly enable USB pins
Stefan Roese [Sat, 8 Dec 2007 13:47:34 +0000 (14:47 +0100)]
ppc4xx: 405EX: Correctly enable USB pins

This patch selects the USB data pins in the 405EX GPIO and MFC (multi
function control) registers. This is done for the AMCC Kilauea and
Makalu eval boards.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoRelease v1.3.1 v1.3.1
Wolfgang Denk [Thu, 6 Dec 2007 09:21:19 +0000 (10:21 +0100)]
Release v1.3.1

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoADS5121 Board: fix compile problem.
Wolfgang Denk [Thu, 6 Dec 2007 09:21:03 +0000 (10:21 +0100)]
ADS5121 Board: fix compile problem.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoppc4xx: Enable hardware-fix for PCI/DMA errata on AMCC 440SP/SPe boards
Stefan Roese [Thu, 6 Dec 2007 04:58:43 +0000 (05:58 +0100)]
ppc4xx: Enable hardware-fix for PCI/DMA errata on AMCC 440SP/SPe boards

This patch enables the hardware-fix for the PCI/DMA errata's 19+22 by
setting the FIXD bit in the SDR0_MFR register. Here a description of the
symptoms:

Problem Description
------------------------------
If a DMA is performed between memory and PCI with the DMA 1 Controller
using prefetch, and as a result uses a special purpose buffer selected by
the PCIXn Bridge Options 1 Register (PCIXn_BRDGOPT1[RBP7] - bits 31-29),
the first part of the transfer sequence is performed twice. The
PPC440SPe PCI Controller requests more data than was needed such that in
the case of enforce memory protection, a host CPU  exception can occur.
No data is corrupted, because data transfer is stopped in the PCI
Controller. Prefetch enable is specified by setting DMA Configuration
Register (I2O0_DMAx_CFG[DXEPD] - bit 31) to 0.

Behavior that may be observed in a running system
---------------------------------------------------------------------------

1. DMA performance is decreased because of the double access on the PCI bus
interface.
2. If an illegal access to some address on the PCI bus is detected at the
system level, a machine check or similar system error may occur.

Workarounds Available
----------------------------------

1. Do not program prefetch. Note that a prefetch command cannot be programmed
without selecting a special purpose buffer.
2. To avoid crossing a physical boundary of the PCI slave device, add 512
bytes of address to the PCI address range.

This patch was originally provided by Pravin M. Bathija <pbathija@amcc.com>
from AMCC and slighly changed.

Signed-off-by: Pravin M. Bathija <pbathija@amcc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Yosemite/Yellowstone: Add DTT AD7414 support
Stefan Roese [Tue, 4 Dec 2007 15:29:48 +0000 (16:29 +0100)]
ppc4xx: Yosemite/Yellowstone: Add DTT AD7414 support

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoPrepare for 1.3.1-rc1 v1.3.1-rc1
Wolfgang Denk [Sun, 2 Dec 2007 23:15:28 +0000 (00:15 +0100)]
Prepare for 1.3.1-rc1

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoppc4xx: Kilauea: Add PCIe reset assertion upon power-up
Stefan Roese [Fri, 30 Nov 2007 06:15:41 +0000 (07:15 +0100)]
ppc4xx: Kilauea: Add PCIe reset assertion upon power-up

This manual PCIe reset triggering solves the problem seen with the
Intel EPRO/1000 card, which was not detected (link not established)
upon power-up reset.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Kilauea & Makalu: Fix ext IRQ pin multiplexing
Stefan Roese [Tue, 27 Nov 2007 10:57:35 +0000 (11:57 +0100)]
ppc4xx: Kilauea & Makalu: Fix ext IRQ pin multiplexing

After an error in the AMCC 405EX users manual now correctly configure
IRQ2 (Kilauea)/IRQ0 (Makalu) as alternate 2 signal for external IRQ
usage.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoMerge commit '3deca9d'
Wolfgang Denk [Mon, 26 Nov 2007 21:57:53 +0000 (22:57 +0100)]
Merge commit '3deca9d'

Conflicts:

Makefile

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoCleanup coding style; update CHANGELOG
Wolfgang Denk [Mon, 26 Nov 2007 18:18:21 +0000 (19:18 +0100)]
Cleanup coding style; update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge commit '87ddedd'
Wolfgang Denk [Mon, 26 Nov 2007 18:15:04 +0000 (19:15 +0100)]
Merge commit '87ddedd'

16 years agoMAKEALL: add missing 512x boards in ppc
Jean-Christophe PLAGNIOL-VILLARD [Sun, 25 Nov 2007 21:39:25 +0000 (22:39 +0100)]
MAKEALL: add missing 512x boards in ppc

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoMakefile : fix tags ctags etags with new drivers organization
Jean-Christophe PLAGNIOL-VILLARD [Sun, 25 Nov 2007 17:45:47 +0000 (18:45 +0100)]
Makefile : fix tags ctags etags with new drivers organization

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoppc4xx: Makalu: Change EBC setup for CS0 to enable 400MHz usage
Stefan Roese [Mon, 26 Nov 2007 14:06:14 +0000 (15:06 +0100)]
ppc4xx: Makalu: Change EBC setup for CS0 to enable 400MHz usage

As suggested by Senao, use a different EBC_PB0AP setup for 400MHz
operation.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Kilauea: Configure pin mux to use ext IRQ2 as interrupt
Stefan Roese [Mon, 26 Nov 2007 14:01:45 +0000 (15:01 +0100)]
ppc4xx: Kilauea: Configure pin mux to use ext IRQ2 as interrupt

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoMakefile : fix tags ctags etags with new drivers organization
Jean-Christophe PLAGNIOL-VILLARD [Sun, 25 Nov 2007 17:45:47 +0000 (18:45 +0100)]
Makefile : fix tags ctags etags with new drivers organization

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/mtd : move mtd drivers to drivers/mtd
Jean-Christophe PLAGNIOL-VILLARD [Sat, 24 Nov 2007 20:26:56 +0000 (21:26 +0100)]
drivers/mtd : move mtd drivers to drivers/mtd

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/misc : move misc drivers to drivers/misc
Jean-Christophe PLAGNIOL-VILLARD [Sat, 24 Nov 2007 20:17:55 +0000 (21:17 +0100)]
drivers/misc : move misc drivers to drivers/misc

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/block : move block drivers to drivers/block
Jean-Christophe PLAGNIOL-VILLARD [Sat, 24 Nov 2007 20:13:59 +0000 (21:13 +0100)]
drivers/block : move block drivers to drivers/block

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/rtc : move rtc drivers to drivers/rtc
Jean-Christophe PLAGNIOL-VILLARD [Sat, 24 Nov 2007 19:59:50 +0000 (20:59 +0100)]
drivers/rtc : move rtc drivers to drivers/rtc

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/hwmon : move hardware monitor drviers to drivers/hwmon
Jean-Christophe PLAGNIOL-VILLARD [Sat, 24 Nov 2007 19:14:44 +0000 (20:14 +0100)]
drivers/hwmon : move hardware monitor drviers to drivers/hwmon

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/input : move input drivers to drivers/input
Jean-Christophe PLAGNIOL-VILLARD [Sat, 24 Nov 2007 18:46:45 +0000 (19:46 +0100)]
drivers/input : move input drivers to drivers/input

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/usb : move usb drivers to drivers/usb
Jean-Christophe PLAGNIOL-VILLARD [Sat, 24 Nov 2007 18:40:11 +0000 (19:40 +0100)]
drivers/usb : move usb drivers to drivers/usb

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/serial : move serial drivers to drivers/serial
Jean-Christophe PLAGNIOL-VILLARD [Sat, 24 Nov 2007 18:33:38 +0000 (19:33 +0100)]
drivers/serial : move serial drivers to drivers/serial

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/net : move net drivers to drivers/net
Jean-Christophe PLAGNIOL-VILLARD [Wed, 21 Nov 2007 20:19:24 +0000 (21:19 +0100)]
drivers/net : move net drivers to drivers/net

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/video : move video drivers to drivers/video
Jean-Christophe PLAGNIOL-VILLARD [Tue, 20 Nov 2007 19:41:48 +0000 (20:41 +0100)]
drivers/video : move video drivers to drivers/video

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/pcmcia : move pcmcia drivers to drivers/pcmcia
Jean-Christophe PLAGNIOL-VILLARD [Tue, 20 Nov 2007 19:33:09 +0000 (20:33 +0100)]
drivers/pcmcia : move pcmcia drivers to drivers/pcmcia

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/pci : move pci drivers to drivers/pci
Jean-Christophe PLAGNIOL-VILLARD [Tue, 20 Nov 2007 19:28:09 +0000 (20:28 +0100)]
drivers/pci : move pci drivers to drivers/pci

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoMerge branch 'testing' of git://www.denx.de/git/u-boot-fdt
Wolfgang Denk [Thu, 22 Nov 2007 23:55:23 +0000 (00:55 +0100)]
Merge branch 'testing' of git://www.denx.de/git/u-boot-fdt

16 years agoFix fdt printing for updated libfdt
Gerald Van Baren [Thu, 22 Nov 2007 22:23:23 +0000 (17:23 -0500)]
Fix fdt printing for updated libfdt

Also improve printing (adopt dtc v1 "c style" hex format), whitespace cleanup.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agoAdd additional fdt fixup helper functions
Kumar Gala [Wed, 21 Nov 2007 19:30:15 +0000 (13:30 -0600)]
Add additional fdt fixup helper functions

Added the following fdt fixup helpers:
 * do_fixup_by_prop{_u32} - Find matching nodes by property name/value
 * do_fixup_by_compat{_u32} - Find matching nodes by compat

The _u32 variants work the same only the property they are setting
is know to be a 32-bit integer instead of a byte buffer.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoAdd fdt_fixup_ethernet helper to set mac addresses
Kumar Gala [Wed, 21 Nov 2007 17:11:03 +0000 (11:11 -0600)]
Add fdt_fixup_ethernet helper to set mac addresses

Added a fixup helper that uses aliases to set mac addresses
in the device tree based on the bd_t

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFix warnings from import of libfdt
Kumar Gala [Wed, 21 Nov 2007 20:07:46 +0000 (14:07 -0600)]
Fix warnings from import of libfdt

cmd_fdt.c: In function fdt_print:
cmd_fdt.c:586: warning: assignment discards qualifiers from pointer target type
cmd_fdt.c:613: warning: assignment discards qualifiers from pointer target type
cmd_fdt.c:635: warning: assignment discards qualifiers from pointer target type
cmd_fdt.c:636: warning: assignment discards qualifiers from pointer target type

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoUpdate libfdt from device tree compiler (dtc)
Kumar Gala [Wed, 24 Oct 2007 16:04:22 +0000 (11:04 -0500)]
Update libfdt from device tree compiler (dtc)

Update libfdt to commit 8eaf5e358366017aa2e846c5038d1aa19958314e from
the device tree compiler (dtc) project.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoMove do_fixup* for libfdt into common code
Kumar Gala [Sun, 4 Nov 2007 00:46:28 +0000 (19:46 -0500)]
Move do_fixup* for libfdt into common code

Moved the generic fixup handling code out of cpu/mpc5xxx and cpu/mpc8260
into common/fdt_support.c and renamed:

do_fixup() -> do_fixup_by_path()
do_fixup_u32()  -> do_fixup_by_path_u32()

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoMake no options to fdt print default to '/'
Kumar Gala [Thu, 25 Oct 2007 21:15:07 +0000 (16:15 -0500)]
Make no options to fdt print default to '/'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoRemoved some nonused fdt functions and moved fdt_find_and_setprop out of libfdt
Kumar Gala [Wed, 24 Oct 2007 15:21:57 +0000 (10:21 -0500)]
Removed some nonused fdt functions and moved fdt_find_and_setprop out of libfdt

Removed:
fdt_node_is_compatible
fdt_find_node_by_type
fdt_find_compatible_node

To ease merge of newer libfdt as we aren't using them anywhere at this time.

Also moved fdt_find_and_setprop out of libfdt into fdt_support.c for the same
reason.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago[BUILD] Remove libraries when updating autoconf.mk
Grant Likely [Wed, 21 Nov 2007 16:19:37 +0000 (09:19 -0700)]
[BUILD] Remove libraries when updating autoconf.mk

Fix library problems caused by conditional compilation.  Using
autoconf.mk to decide which files to compile has caused a problem when
changing configuration from one board to another without clearing out
the library (*.a) files.

It used to be that the linker was always passed the same list of .o
files when building the .a files.  However, that is not longer true
with conditional compilation.  Now, a different board config will have
a different file list passed to the linker.  The problem occurs when
a library has already been built and the board config is changed.

Since the linker will update instead of replace a preexisting library,
then if the file list changes to remove some object files the old
objects will still exist in the library.

The solution is to remove all old library files when autoconf.mk is
made.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
16 years ago[BUILD] conditionally compile libfdt/*.c in libfdt/Makefile
Kumar Gala [Wed, 21 Nov 2007 14:49:50 +0000 (08:49 -0600)]
[BUILD] conditionally compile libfdt/*.c in libfdt/Makefile

Modify libfdt/Makefile to conditionally compile the *.c files based
on the board config.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago[BUILD] conditionally compile common/cmd_*.c in common/Makefile
Grant Likely [Mon, 24 Sep 2007 15:05:31 +0000 (09:05 -0600)]
[BUILD] conditionally compile common/cmd_*.c in common/Makefile

Modify common/Makefile to conditionally compile the cmd_*.c files based
on the board config.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
16 years ago[BUILD] Generate include/autoconf.mk from board config files
Grant Likely [Mon, 24 Sep 2007 15:05:31 +0000 (09:05 -0600)]
[BUILD] Generate include/autoconf.mk from board config files

Use cpp and sed to postprocess config.h and import the defined values
into include/autoconf.mk.  autoconf.mk is then included by config.mk to
give 'make' access to the board configuration.

Doing this enables conditional compilation at the Makefile level instead
of by wrapping every .c file with #ifdef/#endif wrappers.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
16 years agodrivers/i2c : move i2c drivers to drivers/i2c
Jean-Christophe PLAGNIOL-VILLARD [Tue, 20 Nov 2007 19:14:18 +0000 (20:14 +0100)]
drivers/i2c : move i2c drivers to drivers/i2c

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoMerge branch 'origin' into kconfig-for-1.3.1
Grant Likely [Tue, 20 Nov 2007 15:19:56 +0000 (08:19 -0700)]
Merge branch 'origin' into kconfig-for-1.3.1

16 years agoPrepare for 1.3.0 release. v1.3.0
Wolfgang Denk [Mon, 19 Nov 2007 21:20:24 +0000 (22:20 +0100)]
Prepare for 1.3.0 release.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMove CONFIG_QE out of CONFIG_PCI wrap for MPC8568MDS
Haiying Wang [Mon, 19 Nov 2007 15:02:13 +0000 (10:02 -0500)]
Move CONFIG_QE out of CONFIG_PCI wrap for MPC8568MDS

CONFIG_QE shouldn't be in the wrap of CONFIG_PCI, fix it.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
16 years ago[MIPS] board/gth2/lowlevel_init.S: Fix a build warning
Shinya Kuribayashi [Mon, 19 Nov 2007 02:14:16 +0000 (11:14 +0900)]
[MIPS] board/gth2/lowlevel_init.S: Fix a build warning

lowlevel_init.S: Assembler messages:
lowlevel_init.S:413: Warning: Pretending global symbol used as branch target is local.

Looking at codes, the `memtest' and `clearmem' are intentional mixed
use of `global symbols' and `label' for debugging purpose. To make it
build, just disable global-symbols-use for now. As a result `memtest'
still remains as unused, but leave it be...

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
16 years agoFix build problems with mp2usb board
Wolfgang Denk [Mon, 19 Nov 2007 11:59:14 +0000 (12:59 +0100)]
Fix build problems with mp2usb board

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agos3c24x0: Fix usb_ohci.c missing in Makefile
Jean-Christophe PLAGNIOL-VILLARD [Sun, 18 Nov 2007 17:36:11 +0000 (18:36 +0100)]
s3c24x0: Fix usb_ohci.c missing in Makefile
and usb_ohci.c warning differ in signedness

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agopb1x00 board: Fix u16 status declaration when PCMCIA is defined
Jean-Christophe PLAGNIOL-VILLARD [Sun, 18 Nov 2007 11:55:02 +0000 (12:55 +0100)]
pb1x00 board: Fix u16 status declaration when PCMCIA is defined

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoFix compiler warnings for ARM systems.
Wolfgang Denk [Sun, 18 Nov 2007 16:11:09 +0000 (17:11 +0100)]
Fix compiler warnings for ARM systems.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFix compiler warnings for PPC systems. Update CHANGELOG.
Wolfgang Denk [Sun, 18 Nov 2007 15:36:27 +0000 (16:36 +0100)]
Fix compiler warnings for PPC systems. Update CHANGELOG.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoppc4xx: Correct 405EX PCIe UTL register mapping
Stefan Roese [Sun, 18 Nov 2007 13:44:44 +0000 (14:44 +0100)]
ppc4xx: Correct 405EX PCIe UTL register mapping

Map 4k mem space for UTL registers for each port.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoFix warning differ in signedness in net/net.c and net/nfs.c
Jean-Christophe PLAGNIOL-VILLARD [Sat, 17 Nov 2007 10:31:10 +0000 (11:31 +0100)]
Fix warning differ in signedness in net/net.c and net/nfs.c

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mips
Wolfgang Denk [Sun, 18 Nov 2007 00:26:14 +0000 (01:26 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-mips

16 years agogth2.c: Fix a warning on gth2 build.
Shinya Kuribayashi [Sat, 17 Nov 2007 11:42:45 +0000 (20:42 +0900)]
gth2.c: Fix a warning on gth2 build.

gth2.c: In function 'misc_init_r':
gth2.c:434: warning: pointer targets in passing argument 2 of 'setenv' differ in signedness

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agoFix warning differ in signedness in common/cmd_scsi.c
Stefan Roese [Sat, 17 Nov 2007 06:58:25 +0000 (07:58 +0100)]
Fix warning differ in signedness in common/cmd_scsi.c

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Update AMCC Kilauea config file
Stefan Roese [Sat, 17 Nov 2007 13:52:29 +0000 (14:52 +0100)]
ppc4xx: Update AMCC Kilauea config file

- Use generic GPIO configuration framework (CFG_4xx_GPIO_TABLE)

Signed-off-by: Stefan Roese <sr@denx.de>
16 years ago[MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker
Shinya Kuribayashi [Sat, 17 Nov 2007 11:05:26 +0000 (20:05 +0900)]
[MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker

Current trick to pick up GNU assembler minor version does not work with the
latest binutils (2007-03-01 or later) due to ${PKGVERSION} now default to
"(GNU Binutils) ".

  $ sde-as --version |grep "GNU assembler"
  GNU assembler 2.15.94 mipssde-6.02.02-20050602
  $ sde-as --version |grep "GNU assembler" |awk '{print $3}'
  2.15.94
  $ sde-as --version |grep "GNU assembler" |awk '{print $3}' |awk -F. '{print $2}'
  15
  $

  $ mips-linux-as --version |grep "GNU assembler"
  GNU assembler (GNU Binutils) 2.18
  $ mips-linux-as --version |grep "GNU assembler" |awk '{print $3}'
  (GNU
  $ mips-linux-as --version |grep "GNU assembler" |awk '{print $3}' |awk -F. '{print $2}'
  (no output)
  $

As a result of above, you'll see many noises with such binutils:

  make -C cpu/mips/
  /bin/sh: line 0: [: : integer expression expected
  /bin/sh: line 0: [: : integer expression expected
  make[1]: Entering directory `/home/skuribay/devel/u-boot.git/cpu/mips'
  mips-linux-gcc  -D__ASSEMBLY__ -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xB0000000  -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/skuribay/devel/buildroot/build_mips/staging_dir/usr/bin/../lib/gcc/mips-linux-uclibc/4.2.1/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -pipe -msoft-float -march=4kc -mtune=4kc -EB -c -o incaip_wdt.o incaip_wdt.S
  /bin/sh: line 0: [: : integer expression expected
  mips-linux-gcc  -D__ASSEMBLY__ -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xB0000000  -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/skuribay/devel/buildroot/build_mips/staging_dir/usr/bin/../lib/gcc/mips-linux-uclibc/4.2.1/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -pipe -msoft-float -march=4kc -mtune=4kc -EB -c -o cache.o cache.S
  /bin/sh: line 0: [: : integer expression expected
  mips-linux-gcc -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xB0000000  -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/skuribay/devel/buildroot/build_mips/staging_dir/usr/bin/../lib/gcc/mips-linux-uclibc/4.2.1/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -pipe -msoft-float -march=4kc -mtune=4kc -EB -Wall -Wstrict-prototypes -c -o asc_serial.o asc_serial.c
  /bin/sh: line 0: [: : integer expression expected

This patch simplifies the trick and makes it work with both versions of gas.
I also replace an expensive `awk (or gawk)' with `cut'.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Remove useless instructions for initializing $gp.
Shinya Kuribayashi [Sat, 17 Nov 2007 11:05:26 +0000 (20:05 +0900)]
[MIPS] Remove useless instructions for initializing $gp.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] MIPS 4K core: Coding style cleanups
Shinya Kuribayashi [Sat, 27 Oct 2007 06:27:06 +0000 (15:27 +0900)]
[MIPS] MIPS 4K core: Coding style cleanups

No logical changes.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] gth2.c: Fix a warning on gth2 build.
Shinya Kuribayashi [Sat, 17 Nov 2007 11:05:20 +0000 (20:05 +0900)]
[MIPS] gth2.c: Fix a warning on gth2 build.

gth2.c: In function 'misc_init_r':
gth2.c:434: warning: pointer targets in passing argument 2 of 'setenv' differ in signedness

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] au1x00_eth.c: Fixed a warning on pb1000 build.
Shinya Kuribayashi [Sat, 27 Oct 2007 06:22:33 +0000 (15:22 +0900)]
[MIPS] au1x00_eth.c: Fixed a warning on pb1000 build.

au1x00_eth.c: In function 'au1x00_miiphy_write':
au1x00_eth.c:139: warning: 'return' with no value, in function returning non-void

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] au1x00_eth.c: Fix au1x00_miiphy_{read,write} build error
Shinya Kuribayashi [Sat, 27 Oct 2007 06:00:25 +0000 (15:00 +0900)]
[MIPS] au1x00_eth.c: Fix au1x00_miiphy_{read,write} build error

au1x00_eth.c: In function 'au1x00_enet_initialize':
au1x00_eth.c:246: error: 'au1x00_miiphy_read' undeclared (first use in this function)
au1x00_eth.c:246: error: (Each undeclared identifier is reported only once
au1x00_eth.c:246: error: for each function it appears in.)
au1x00_eth.c:246: error: 'au1x00_miiphy_write' undeclared (first use in this function)
au1x00_eth.c: In function 'au1x00_miiphy_write':
au1x00_eth.c:298: warning: 'return' with no value, in function returning non-void
make[1]: *** [au1x00_eth.o] Error 1

Fixed by moving these two functions forward.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agoMAKEALL: Added missing pb1000 board
Shinya Kuribayashi [Sat, 27 Oct 2007 06:00:25 +0000 (15:00 +0900)]
MAKEALL: Added missing pb1000 board

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] pb1000: Replace obsolete memsetup.S with lowlevel_init.S
Shinya Kuribayashi [Sat, 27 Oct 2007 06:00:24 +0000 (15:00 +0900)]
[MIPS] pb1000: Replace obsolete memsetup.S with lowlevel_init.S

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] u-boot.lds: Cleanup __u_boot_cmd_{start,end}
Shinya Kuribayashi [Sat, 27 Oct 2007 06:00:24 +0000 (15:00 +0900)]
[MIPS] u-boot.lds: Cleanup __u_boot_cmd_{start,end}

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agoMerge branch 'origin' into kconfig-for-1.3.1
Grant Likely [Sat, 17 Nov 2007 04:01:19 +0000 (21:01 -0700)]
Merge branch 'origin' into kconfig-for-1.3.1

Conflicts:

drivers/Makefile

16 years agoUpdate CHANGELOIG, prepare for -rc4 v1.3.0-rc4
Wolfgang Denk [Sat, 17 Nov 2007 01:34:38 +0000 (02:34 +0100)]
Update CHANGELOIG, prepare for -rc4

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-coldfire
Wolfgang Denk [Sat, 17 Nov 2007 01:28:26 +0000 (02:28 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-coldfire

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc5xxx
Wolfgang Denk [Sat, 17 Nov 2007 01:00:17 +0000 (02:00 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-mpc5xxx