oweals/u-boot.git
17 years agoAdd support for treating unknown PHYs as generic PHYs.
David Updegraff [Fri, 20 Apr 2007 19:34:48 +0000 (14:34 -0500)]
Add support for treating unknown PHYs as generic PHYs.

When bringing up u-boot on new boards, PHY support sometimes gets
neglected.  Most PHYs don't really need any special support,
though.  By adding a generic entry that always matches if nothing
else does, we can provide support for "unsupported" PHYs for the
tsec.

The generic PHY driver supports most PHYs, including gigabit.

Signed-off-by: David Updegraff <dave@cray.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
17 years agoReworked 85xx speed detection code
Andy Fleming [Mon, 23 Apr 2007 07:37:47 +0000 (02:37 -0500)]
Reworked 85xx speed detection code

Changed the code to read the registers and calculate the clock
rates, rather than using a "switch" statement.

Idea from Andrew Klossner <andrew@cesa.opbu.xerox.com>

Signed-off-by: Andy Fleming <afleming@freescale.com>
17 years agoEnable 8544 support
Andy Fleming [Mon, 23 Apr 2007 07:24:28 +0000 (02:24 -0500)]
Enable 8544 support

* Add support to the Makefile
* Add 8544 configuration support to the tsec driver
* Add 8544 SVR numbers to processor.h

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
17 years agoSupport 1G size on 8548
Andy Fleming [Fri, 23 Feb 2007 23:12:25 +0000 (17:12 -0600)]
Support 1G size on 8548

e500v2 and newer cores support 1G page sizes.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
17 years agoChanged BOOKE_PAGESZ_nGB to BOOKE_PAGESZ_nG
Andy Fleming [Fri, 23 Feb 2007 23:11:16 +0000 (17:11 -0600)]
Changed BOOKE_PAGESZ_nGB to BOOKE_PAGESZ_nG

The other pagesz constants use one letter to specify order of
magnitude.  Also change the one reference to it in mpc8548cds/init.S

Signed-off-by: Andy Fleming <afleming@freescale.com>
17 years agoOnly set ddrioovcr for 8548 rev1.
Andy Fleming [Fri, 23 Feb 2007 22:28:46 +0000 (16:28 -0600)]
Only set ddrioovcr for 8548 rev1.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
17 years agoTweak DDR ECC error counter
Andy Fleming [Sat, 24 Feb 2007 07:16:45 +0000 (01:16 -0600)]
Tweak DDR ECC error counter

Enable single-bit error counter when memory was cleared by ddr controller.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
17 years ago85xx: write MAC address to mac-address and local-mac-address
Timur Tabi [Mon, 12 Feb 2007 19:34:55 +0000 (13:34 -0600)]
85xx: write MAC address to mac-address and local-mac-address

Some device trees have a mac-address property, some have local-mac-address,
and some have both.  To support all of these device trees, ftp_cpu_setup()
should write the MAC address to mac-address and local-mac-address, if they
exist.

Signed-off-by: Timur Tabi <timur@freescale.com>
17 years agoSome 85xx cpu cleanups
Andy Fleming [Mon, 23 Apr 2007 06:44:44 +0000 (01:44 -0500)]
Some 85xx cpu cleanups

* Cleaned up the TSR[WIS] clearing
* Cleaned up DMA initialization

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
17 years agoAdd cpu support for the 8544
Andy Fleming [Mon, 23 Apr 2007 06:32:22 +0000 (01:32 -0500)]
Add cpu support for the 8544

Recognize new SVR values, and add a few register definitions

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
17 years agoAdd MPC8544DS basic port board files.
Jon Loeliger [Wed, 11 Apr 2007 21:51:02 +0000 (16:51 -0500)]
Add MPC8544DS basic port board files.

Add board port under new board/freescale directory
structure and reuse existing PIXIS FPGA support there.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
17 years agoAdd MPC8544DS main configuration file.
Jon Loeliger [Wed, 11 Apr 2007 21:50:57 +0000 (16:50 -0500)]
Add MPC8544DS main configuration file.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
17 years agoFix PCI I/O space mapping on Freescale MPC85x0ADS
Sergei Shtylyov [Wed, 27 Dec 2006 19:07:15 +0000 (22:07 +0300)]
Fix PCI I/O space mapping on Freescale MPC85x0ADS

The PCI I/O space mapping for Freescale MPC8540ADS board was broken by commit
52c7a68b8d587ebcf5a6b051b58b3d3ffa377ddc which failed to update the #define's
describing the local address window used for the PCI I/O space accesses -- fix
this and carry over the necessary changes into the MPC8560ADS code since the
PCI I/O space mapping was also broken for this board (by the earlier commit
087454609e47295443af793a282cddcd91a5f49c).  Add the comments clarifying how
the PCI I/O space must be mapped to all the MPC85xx board config. headers.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
 board/mpc8540ads/init.S      |    4 ++--
 board/mpc8560ads/init.S      |    4 ++--
 include/configs/MPC8540ADS.h |    5 ++---
 include/configs/MPC8541CDS.h |    2 +-
 include/configs/MPC8548CDS.h |    2 +-
 include/configs/MPC8560ADS.h |    8 ++++----
 6 files changed, 12 insertions(+), 13 deletions(-)

17 years agou-boot: Fix e500 v2 core reset bug
Zang Roy-r61911 [Tue, 5 Dec 2006 08:42:30 +0000 (16:42 +0800)]
u-boot: Fix e500 v2 core reset bug

The following patch fixes the e500 v2 core reset bug.
For e500 v2 core, a new reset control register is added to reset the
processor.

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
17 years agou-boot: v2: Remove the fixed TLB and LAW entrynubmer
Zang Roy-r61911 [Wed, 20 Dec 2006 03:01:00 +0000 (11:01 +0800)]
u-boot: v2: Remove the fixed TLB and LAW entrynubmer

Remove the fixed TLB and LAW entry nubmer. Use actually TLB and LAW
entry number to control the loop.  This can reduce the potential risk
for the 85xx processor increasing its TLB adn LAW entry number.

Signed-off-by: Swarthout Edward <swarthout@freescale.com>
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
17 years agou-boot: Fix the 85xxcds tsec bug
Zang Roy-r61911 [Mon, 18 Dec 2006 09:01:04 +0000 (17:01 +0800)]
u-boot: Fix the 85xxcds tsec bug

Fix the 85xxcds tsec bug.
When enable PCI, tsec.o should be added to u-boot.lds to make tsec work.

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
17 years agou-boot: Fix CPU2 errata on MPC8548CDS board
Zang Roy-r61911 [Fri, 15 Dec 2006 06:43:31 +0000 (14:43 +0800)]
u-boot: Fix CPU2 errata on MPC8548CDS board

This patch apply workaround of CPU2 errata on MPC8548CDS board.

Signed-off-by:Ebony Zhu <ebony.zhu@freescale.com>

17 years agou-boot: Disables MPC8548CDS 2T_TIMING for DDR by default
ebony.zhu@freescale.com [Mon, 18 Dec 2006 08:25:15 +0000 (16:25 +0800)]
u-boot: Disables MPC8548CDS 2T_TIMING for DDR by default

This patch disables MPC8548CDS 2T_TIMING for DDR by default.

Signed-off-by:Ebony Zhu <ebony.zhu@freescale.com>

17 years agou-boot: Enable PCI function and add PEX & rapidio memory map on MPC8548CDS board
Zang Roy-r61911 [Thu, 14 Dec 2006 06:14:55 +0000 (14:14 +0800)]
u-boot: Enable PCI function and add PEX & rapidio memory map on MPC8548CDS board

Enable PCI function and add PEX & rapidio memory map on MPC8548CDS
board.
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
17 years agoCleanup compiler warnings, update CHANGELOG
Wolfgang Denk [Fri, 20 Apr 2007 15:43:28 +0000 (17:43 +0200)]
Cleanup compiler warnings, update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge with /home/dzu/src/git/u-boot
Wolfgang Denk [Fri, 20 Apr 2007 13:50:04 +0000 (15:50 +0200)]
Merge with /home/dzu/src/git/u-boot

17 years agoMerge with git://www.denx.de/git/u-boot-testing
Wolfgang Denk [Fri, 20 Apr 2007 13:44:38 +0000 (15:44 +0200)]
Merge with git://www.denx.de/git/u-boot-testing

17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-arm
Wolfgang Denk [Fri, 20 Apr 2007 13:41:05 +0000 (15:41 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-arm

17 years agoFix breakage of NC650 board with respect to nand support.
Detlev Zundel [Fri, 20 Apr 2007 10:01:47 +0000 (12:01 +0200)]
Fix breakage of NC650 board with respect to nand support.

Signed-off-by: Detlev Zundel <dzu@denx.de>
17 years ago[RFC PATCH] icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation
Domen Puncer [Fri, 20 Apr 2007 09:13:16 +0000 (11:13 +0200)]
[RFC PATCH] icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation

G2 core reference manual says decrementer and time base
are decreasing/increasing once every 4 bus clock cycles.
Lets fix it, so time in Linux won't run twice as fast

Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
17 years agoFix serious pointer bug with bootm and reserve map.
Gerald Van Baren [Fri, 20 Apr 2007 03:14:39 +0000 (23:14 -0400)]
Fix serious pointer bug with bootm and reserve map.

What was suppose to be a stack variable was declared as a pointer,
  overwriting random memory.
Also moved the libfdt.a requirement into the main Makefile.  That is
  The U-Boot Way.

17 years agoMerge with git://www.denx.de/git/u-boot.git
Peter Pearse [Thu, 19 Apr 2007 12:17:20 +0000 (13:17 +0100)]
Merge with git://www.denx.de/git/u-boot.git

17 years agoClenaup, update CHANGELOG
Wolfgang Denk [Wed, 18 Apr 2007 15:49:29 +0000 (17:49 +0200)]
Clenaup, update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-fdt
Wolfgang Denk [Wed, 18 Apr 2007 15:47:39 +0000 (17:47 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-fdt

17 years agoUpdate CHANGELOG
Wolfgang Denk [Wed, 18 Apr 2007 15:20:58 +0000 (17:20 +0200)]
Update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-mpc86xx
Wolfgang Denk [Wed, 18 Apr 2007 15:20:22 +0000 (17:20 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-mpc86xx

17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-net
Wolfgang Denk [Wed, 18 Apr 2007 15:10:30 +0000 (17:10 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-net

17 years agoCleanup, update CHANGELOG
Wolfgang Denk [Wed, 18 Apr 2007 15:07:26 +0000 (17:07 +0200)]
Cleanup, update CHANGELOG

Sigend-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-74xx-7xx
Wolfgang Denk [Wed, 18 Apr 2007 15:00:09 +0000 (17:00 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-74xx-7xx

17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-avr32; code cleanup.
Wolfgang Denk [Wed, 18 Apr 2007 14:53:52 +0000 (16:53 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-avr32; code cleanup.

17 years agoUpdate CHANGELOG
Wolfgang Denk [Wed, 18 Apr 2007 14:17:46 +0000 (16:17 +0200)]
Update CHANGELOG

17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-blackfin
Wolfgang Denk [Wed, 18 Apr 2007 14:16:33 +0000 (16:16 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-blackfin

17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-ppc4xx
Wolfgang Denk [Wed, 18 Apr 2007 14:06:05 +0000 (16:06 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-ppc4xx

17 years agoMCC200 board: remove warning which is obsolete after PSoC firmware changes
Wolfgang Denk [Wed, 18 Apr 2007 12:30:39 +0000 (14:30 +0200)]
MCC200 board: remove warning which is obsolete after PSoC firmware changes

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge with git://www.denx.de/git/u-boot.git
Stefan Roese [Wed, 18 Apr 2007 10:13:51 +0000 (12:13 +0200)]
Merge with git://www.denx.de/git/u-boot.git

17 years ago[PATCH] icecube/lite5200b: document wakeup from low-power support
Domen Puncer [Wed, 18 Apr 2007 10:11:05 +0000 (12:11 +0200)]
[PATCH] icecube/lite5200b: document wakeup from low-power support

Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
17 years agoppc4xx: Update Acadia to not setup PLL when booting via bootstrap EEPROM
Stefan Roese [Wed, 18 Apr 2007 10:07:47 +0000 (12:07 +0200)]
ppc4xx: Update Acadia to not setup PLL when booting via bootstrap EEPROM

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoppc4xx: Add output for bootrom location to 405EZ ports
Stefan Roese [Wed, 18 Apr 2007 10:05:59 +0000 (12:05 +0200)]
ppc4xx: Add output for bootrom location to 405EZ ports

Now 405EZ ports also show upon bootup from which boot device
they are configured to boot:

U-Boot 1.2.0-gd3832e8f-dirty (Apr 18 2007 - 07:47:05)

CPU:   AMCC PowerPC 405EZ Rev. A at 199.999 MHz (PLB=133, OPB=66, EBC=66 MHz)
       Bootstrap Option E - Boot ROM Location EBC (32 bits)
       16 kB I-Cache 16 kB D-Cache
Board: Acadia - AMCC PPC405EZ Evaluation Board

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoMove ppearse to ARM board list
Peter Pearse [Tue, 17 Apr 2007 12:30:33 +0000 (13:30 +0100)]
Move ppearse to ARM board list
Add Konstantin Kletschke for scb9328.
Signed-off-by: Peter Pearse <peter.pearse@arm.com>
17 years ago[PATCH] icecube/lite5200b: wakeup from low-power support
Domen Puncer [Mon, 16 Apr 2007 12:00:13 +0000 (14:00 +0200)]
[PATCH] icecube/lite5200b: wakeup from low-power support

U-Boot part of Lite5200b low power mode support.
Puts SDRAM out of self-refresh and transfers control to
address saved at physical 0x0.

Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
17 years agoFix the ft_cpu_setup() property settings.
Gerald Van Baren [Sun, 15 Apr 2007 17:54:26 +0000 (13:54 -0400)]
Fix the ft_cpu_setup() property settings.

Use "setter" functions instead of flags, cleaner and more flexible.
It also fixes the problem noted by Timur Tabi that the ethernet MAC
addresses were all being set incorrectly to the same MAC address.

17 years agoMerge git://www.denx.de/git/u-boot into fdt-cmd
Gerald Van Baren [Sun, 15 Apr 2007 03:02:21 +0000 (23:02 -0400)]
Merge git://www.denx.de/git/u-boot into fdt-cmd

17 years agoImprove the bootm command for CONFIG_OF_LIBFDT
Gerald Van Baren [Sun, 15 Apr 2007 02:51:24 +0000 (22:51 -0400)]
Improve the bootm command for CONFIG_OF_LIBFDT

In bootm, create the "/chosen" node only if it doesn't already exist
  (better matches the previous behavior).
Update for proper reserved memory map handling for initrd.

17 years agoAdd some utilities to manipulate the reserved memory map.
Gerald Van Baren [Sun, 15 Apr 2007 02:46:41 +0000 (22:46 -0400)]
Add some utilities to manipulate the reserved memory map.

17 years agoUpdate CHANGELOG
Wolfgang Denk [Sat, 14 Apr 2007 19:16:54 +0000 (21:16 +0200)]
Update CHANGELOG

17 years agoAVR32: Enable MMC support
Haavard Skinnemoen [Sun, 17 Dec 2006 17:56:46 +0000 (18:56 +0100)]
AVR32: Enable MMC support

Set up the portmux for the MMC interface and enable the MMC driver
along with support for DOS partitions, ext2 and FAT filesystems.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAtmel MCI driver
Haavard Skinnemoen [Fri, 20 Jan 2006 09:03:53 +0000 (10:03 +0100)]
Atmel MCI driver

Driver for the Atmel MCI controller (MMC interface) for AT32AP CPUs.

The AT91 ARM-based CPUs use basically the same hardware, so it should
be possible to share this driver, but no effort has been made so far.

Hardware documentation can be found in the AT32AP7000 data sheet,
which can be downloaded from

http://www.atmel.com/dyn/products/datasheets.asp?family_id=682

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Add clk and gpio infrastructure for mmci
Haavard Skinnemoen [Sun, 17 Dec 2006 17:55:37 +0000 (18:55 +0100)]
AVR32: Add clk and gpio infrastructure for mmci

Implement functions for configuring the mmci pins, as well as
functions for getting the clock rate of the mmci controller.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoEnable partition support with MMC
Haavard Skinnemoen [Sun, 17 Dec 2006 17:53:56 +0000 (18:53 +0100)]
Enable partition support with MMC

Include implementations of init_part() and get_partition_info() when
CONFIG_MMC is set.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Enable networking
Haavard Skinnemoen [Sun, 17 Dec 2006 16:14:30 +0000 (17:14 +0100)]
AVR32: Enable networking

Implement MACB initialization for AVR32 and ATSTK1000, and turn
everything on, including the MACB driver.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAtmel MACB ethernet driver
Haavard Skinnemoen [Fri, 20 Jan 2006 09:03:34 +0000 (10:03 +0100)]
Atmel MACB ethernet driver

Driver for the Atmel MACB on-chip ethernet controller.

This driver has been tested on the ATSTK1000 board with a AT32AP7000
CPU. It should probably work on AT91SAM926x as well with some minor
modifications.

Hardware documentation can be found in the AT32AP7000 data sheet,
which can be downloaded from

http://www.atmel.com/dyn/products/datasheets.asp?family_id=682

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Add clk and gpio infrastructure for macb0 and macb1
Haavard Skinnemoen [Sun, 17 Dec 2006 15:56:14 +0000 (16:56 +0100)]
AVR32: Add clk and gpio infrastructure for macb0 and macb1

Implement functions for configuring the macb0 and macb1 pins, as
well as functions for getting the clock rate of the various
busses the macb ethernet controllers are connected to.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Implement simple DMA memory allocator
Haavard Skinnemoen [Sun, 17 Dec 2006 14:39:15 +0000 (15:39 +0100)]
AVR32: Implement simple DMA memory allocator

Implement dma_alloc_coherent() which returns cache-aligned
uncacheable memory.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoImport <linux/mii.h> from the Linux kernel
Haavard Skinnemoen [Sun, 17 Dec 2006 14:46:02 +0000 (15:46 +0100)]
Import <linux/mii.h> from the Linux kernel

Instead of creating yet another set of MII register definitions
in the macb driver, here's a complete set of definitions for everyone
to use.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Include more commands for ATSTK1000
Haavard Skinnemoen [Wed, 21 Mar 2007 18:47:36 +0000 (19:47 +0100)]
AVR32: Include more commands for ATSTK1000

Include the imi, imls and jffs commands sets by default on ATSTK1000.
Also define CONFIG_BOOTARGS to something more useful, define
CONFIG_BOOTCOMMAND and enable autoboot by default.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Provide a definition of struct stat
Haavard Skinnemoen [Wed, 21 Mar 2007 18:44:48 +0000 (19:44 +0100)]
AVR32: Provide a definition of struct stat

Copy the definition of struct stat from the Linux kernel.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Use initdram() instead of board_init_memories()
Haavard Skinnemoen [Sun, 17 Dec 2006 13:46:06 +0000 (14:46 +0100)]
AVR32: Use initdram() instead of board_init_memories()

Conform to the "standard" interface and use initdram() instead of
board_init_memories() on AVR32. This enables us to get rid of the
sdram_size member of the global_data struct as well.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Relocate u-boot to SDRAM
Haavard Skinnemoen [Mon, 20 Nov 2006 14:53:10 +0000 (15:53 +0100)]
AVR32: Relocate u-boot to SDRAM

Relocate the u-boot image into SDRAM like everyone else does. This
means that we can handle much larger .data and .bss than we used to.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Resource management rewrite
Haavard Skinnemoen [Sun, 19 Nov 2006 17:06:53 +0000 (18:06 +0100)]
AVR32: Resource management rewrite

Rewrite the resource management code (i.e. I/O memory, clock gating,
gpio) so it doesn't depend on any global state. This is necessary
because this code is heavily used before relocation to RAM, so we
can't write to any global variables.

As an added bonus, this makes u-boot's memory footprint a bit smaller,
although some functionality has been left out; all clocks are enabled
all the time, and there's no checking for gpio line conflicts.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Clean up memory-map.h for at32ap7000
Haavard Skinnemoen [Sat, 18 Nov 2006 17:01:13 +0000 (18:01 +0100)]
AVR32: Clean up memory-map.h for at32ap7000

Convert spaces to tabs (must have missed this one last time around),
sort the entries by address and group them together by bus
connectivity.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Build position-independent u-boot
Haavard Skinnemoen [Sat, 18 Nov 2006 16:32:31 +0000 (17:32 +0100)]
AVR32: Build position-independent u-boot

Add -fPIC -mno-init-got to the avr32-specific CFLAGS to make u-boot
position independent. This will make relocation a lot easier.

-mno-init-got means that gcc shouldn't emit code to load the GOT
address into r6 in every function prologue. We do it once and for
all in the early startup assembly code, so enabling this option
makes u-boot a bit faster and smaller.

The assembly parts have always been position-independent, so no code
changes should be necessary.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Use avr32-linux- cross-compilation prefix by default
Haavard Skinnemoen [Sat, 18 Nov 2006 16:24:31 +0000 (17:24 +0100)]
AVR32: Use avr32-linux- cross-compilation prefix by default

It doesn't really matter which toolchain you use to compile u-boot,
but the avr32-linux one is probably what most people have installed.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Split start_u_boot into board_init_f and board_init_r
Haavard Skinnemoen [Sat, 18 Nov 2006 16:15:30 +0000 (17:15 +0100)]
AVR32: Split start_u_boot into board_init_f and board_init_r

Split the avr32 initialization code into a function to run before
relocation, board_init_f and a function to run after relocation,
board_init_r. For now, board_init_f simply calls board_init_r
at the end.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years ago[Fix] Set the LED status register on the UC101 for the LXT971 PHY.
Heiko Schocher [Sat, 14 Apr 2007 03:26:48 +0000 (05:26 +0200)]
[Fix] Set the LED status register on the UC101 for the LXT971 PHY.
        clear the Display after reset.

Signed-off-by: Heiko Schocher <hs@denx.de>
17 years ago[PATCH] Fix bugs in cmd_ide.c and cmd_scsi.c
Denis Peter [Fri, 13 Apr 2007 07:13:33 +0000 (09:13 +0200)]
[PATCH] Fix bugs in cmd_ide.c and cmd_scsi.c

Fix bug introduced by "Fix get_partition_info() parameter error in all
other calls" from 2005-03-04 in cmd_ide.c and cmd_scsi.c, which prevented
to use diskboot or scsiboot form another device than 0.

Signed-off-by: Denis Peter <d.peter@mpl.ch>
17 years ago[PATCH] Fix use of "void *" for block dev read/write buffer pointers
Greg Lopp [Fri, 13 Apr 2007 06:02:24 +0000 (08:02 +0200)]
[PATCH] Fix use of "void *" for block dev read/write buffer pointers

Signed-of-by: Greg Lopp <lopp@pobox.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
17 years agoppc4xx: Fix i2c divisor calcularion for PPC4xx
Jeffrey Mann [Thu, 12 Apr 2007 12:15:59 +0000 (14:15 +0200)]
ppc4xx: Fix i2c divisor calcularion for PPC4xx

This patch fixes changes the i2c_init(...) function to use the function
get_OPB_freq() rather than calculating the OPB speed by
sysInfo.freqPLB/sysInfo.pllOpbDiv. The get_OPB_freq() function is
specific per processor. The prior method was not and so was calculating
the wrong speed for some PPC4xx processors.

Signed-off-by: Jeffrey Mann <mannj@embeddedplanet.com>
Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoMerge with git://www.denx.de/git/u-boot.git
Stefan Roese [Thu, 12 Apr 2007 12:06:54 +0000 (14:06 +0200)]
Merge with git://www.denx.de/git/u-boot.git

17 years agoUpdate CHANGELOG
Wolfgang Denk [Wed, 11 Apr 2007 15:25:01 +0000 (17:25 +0200)]
Update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoUpdate for SC3 board
Wolfgang Denk [Wed, 11 Apr 2007 15:22:55 +0000 (17:22 +0200)]
Update for SC3 board

* Make IDE timeout configurable through ide_reset_timeout variable.
* Use Newline as "password" string
* Use just a single partition in NAND flash

17 years agoAdd PIXIS FPGA support for MPC8641HPCN board.
Haiying Wang [Mon, 22 Jan 2007 18:37:30 +0000 (12:37 -0600)]
Add PIXIS FPGA support for MPC8641HPCN board.

Move the 8641HPCN's PIXIS code to the new directory
board/freescale/common/ as it will be shared by
future boards not in the same processor family.

Write a "pixis_reset" command that utilizes the FPGA
reset sequencer to support alternate soft-reset options
such as using the "alternate" flash bank, enabling
the watch dog, or choosing different CPU frequencies.

Add documentation for the pixis_reset to README.mpc8641hpcn.

Signed-off-by: Haiying Wang <haiying.wang@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
17 years agoMoved fdt command support code to fdt_support.c
Gerald Van Baren [Fri, 6 Apr 2007 18:19:43 +0000 (14:19 -0400)]
Moved fdt command support code to fdt_support.c

...in preparation for improving the bootm command's handling of fdt blobs.
Also cleaned up some coding sloppiness.

17 years agolibfdt: Make fdt_check_header() public
Gerald Van Baren [Fri, 6 Apr 2007 18:17:14 +0000 (14:17 -0400)]
libfdt: Make fdt_check_header() public

Changed _fdt_check_header() to fdt_check_header() and made it part of
the interface - it is a useful routine.

Also did some asthetics cleanup to the include files (headers).

17 years ago[Blackfin][PATCH] Kill off a bunch of common local prototypes
Aubrey Li [Thu, 5 Apr 2007 10:34:06 +0000 (18:34 +0800)]
[Blackfin][PATCH] Kill off a bunch of common local prototypes

17 years ago[Blackfin][PATCH] Fix dynamic CPLB generation issue
Aubrey Li [Thu, 5 Apr 2007 10:33:04 +0000 (18:33 +0800)]
[Blackfin][PATCH] Fix dynamic CPLB generation issue

17 years ago[Blackfin][PATCH] minior cleanup
Aubrey Li [Thu, 5 Apr 2007 10:31:47 +0000 (18:31 +0800)]
[Blackfin][PATCH] minior cleanup

17 years ago[Blackfin][PATCH] Fix copyright and update license
Aubrey Li [Thu, 5 Apr 2007 10:31:18 +0000 (18:31 +0800)]
[Blackfin][PATCH] Fix copyright and update license

17 years ago[Blackfin][PATCH] Add BF537 EMAC driver initialization
Aubrey Li [Thu, 5 Apr 2007 10:30:25 +0000 (18:30 +0800)]
[Blackfin][PATCH] Add BF537 EMAC driver initialization

17 years ago[Blackfin][PATCH] call real the system synchronize instruction
Aubrey Li [Thu, 5 Apr 2007 10:29:55 +0000 (18:29 +0800)]
[Blackfin][PATCH] call real the system synchronize instruction

17 years ago[Blackfin][PATCH] remove asm/page.h as we do not actually use/want any of these defin...
Aubrey Li [Thu, 5 Apr 2007 10:29:17 +0000 (18:29 +0800)]
[Blackfin][PATCH] remove asm/page.h as we do not actually use/want any of these definitions nor does any other arch include it

17 years ago[Blackfin][PATCH]: fix flash unaligned copy issue
Aubrey Li [Thu, 5 Apr 2007 10:28:34 +0000 (18:28 +0800)]
[Blackfin][PATCH]: fix flash unaligned copy issue

17 years agoUpdate usage of 'nc' in README.NetConsole
Igor Marnat [Wed, 21 Mar 2007 06:55:01 +0000 (09:55 +0300)]
Update usage of 'nc' in README.NetConsole

Added information about usage of NetConsole on systems where the -l and -p
switches are mutually exclusive.

Signed-off-by: Igor Marnat <marny@rambler.ru>
Signed-off-by: Ben Warren <bwarren@qstreams.com>
17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-ppc4xx
Wolfgang Denk [Wed, 4 Apr 2007 00:18:56 +0000 (02:18 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-ppc4xx

17 years agoMinor coding style cleanup.
Wolfgang Denk [Wed, 4 Apr 2007 00:09:30 +0000 (02:09 +0200)]
Minor coding style cleanup.

17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-microblaze
Wolfgang Denk [Wed, 4 Apr 2007 00:05:48 +0000 (02:05 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-microblaze

17 years agoMinor cleanup.
Wolfgang Denk [Tue, 3 Apr 2007 23:49:15 +0000 (01:49 +0200)]
Minor cleanup.

17 years agoppc4xx: Change SysACE address on Katmai
Stefan Roese [Mon, 2 Apr 2007 08:09:30 +0000 (10:09 +0200)]
ppc4xx: Change SysACE address on Katmai

With this new base address of the Xilinx SystemACE controller
the Linux driver will be easier to adapt, since it can now be
mapped via the "normal" ioremap() call.

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoFix some minor whitespace violations.
Gerald Van Baren [Sat, 31 Mar 2007 18:30:53 +0000 (14:30 -0400)]
Fix some minor whitespace violations.

17 years agoAdd a flattened device tree (fdt) command (2 of 2)
Gerald Van Baren [Sat, 31 Mar 2007 16:23:51 +0000 (12:23 -0400)]
Add a flattened device tree (fdt) command (2 of 2)

Modifications to the existing code to support the new fdt command.

17 years agoAdd a flattened device tree (fdt) command (1 of 2)
Gerald Van Baren [Sat, 31 Mar 2007 16:22:10 +0000 (12:22 -0400)]
Add a flattened device tree (fdt) command (1 of 2)

The fdt command uses David Gibson's libfdt library to manipulate as well
as print the flattened device tree.  This patch is the new command,
the second part is the modifications to the existing code.

17 years agolibfdt: Enhanced and published fdt_next_tag()
Gerald Van Baren [Sat, 31 Mar 2007 16:13:43 +0000 (12:13 -0400)]
libfdt: Enhanced and published fdt_next_tag()

Enhanced the formerly private function _fdt_next_tag() to allow stepping
  through the tree, used to produce a human-readable dump, and made
  it part of the published interface.
Also added some comments.

17 years agolibfdt: Customizations for use by u-boot.
Gerald Van Baren [Sat, 31 Mar 2007 16:05:39 +0000 (12:05 -0400)]
libfdt: Customizations for use by u-boot.

Changes to David Gibson's original source to fit into u-boot's
environment.  No functionality changes.

17 years agolibfdt: Import libfdt source (2 of 2)
Gerald Van Baren [Sat, 31 Mar 2007 16:00:56 +0000 (12:00 -0400)]
libfdt: Import libfdt source (2 of 2)

This adds the applicable libfdt source files (unmodified) and a README
to explain where the source came from.

17 years agolibfdt: Import libfdt source (1 of 2)
Gerald Van Baren [Sat, 31 Mar 2007 15:59:59 +0000 (11:59 -0400)]
libfdt: Import libfdt source (1 of 2)

This adds the applicable libfdt source files (unmodified) and a README
to explain where the source came from.

17 years agoMerge with git://www.denx.de/git/u-boot.git
Stefan Roese [Sat, 31 Mar 2007 11:44:12 +0000 (13:44 +0200)]
Merge with git://www.denx.de/git/u-boot.git