oweals/u-boot.git
17 years ago8544ds PCIE support
Ed Swarthout [Fri, 27 Jul 2007 06:50:51 +0000 (01:50 -0500)]
8544ds PCIE support

PCI1 LAW mapping should use CFG_PCI1_MEM_PHY and not _BASE address.

Enable LBC and ECM errors and clear error registers.

Add tftpflash env var to get uboot from tftp server and flash it.

Add pci/pcie convenience env vars to display register space:
  "run pcie3regs" to see all pcie3 ccsr registers
  "run pcie3cfg" to see all cfg registers
Whitespace cleanup and MPC8544DS.h

Enable CONFIG_INTERRUPTS.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
17 years ago85xx start.S cleanup and exception support
Andy Fleming [Tue, 14 Aug 2007 06:34:21 +0000 (01:34 -0500)]
85xx start.S cleanup and exception support

From: Ed Swarthout <Ed.Swarthout@freescale.com>

Support external interrupts from platform to eliminate system hangs.
Define CONFIG_INTERRUPTS board configure option to enable.
Enable ecm, ddr, lbc, and pci/pcie error interrupts in PIC.

Remove extra cpu initialization redundant with hardware initialization.
Whitespace cleanup.

Define and use _START_OFFSET consistent with other processors using
ppc_asm.tmpl

Move additional code from .text to boot page to make room for
exception vectors at start of image.

Handle Machine Check, External and Critical exceptions.

Fix e500 machine check error determination in traps.c

TEXT_BASE can now be 0xfffc_0000 - which cuts binary image in half.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
17 years agoAdd MPC8544DS README
Andy Fleming [Tue, 14 Aug 2007 06:33:18 +0000 (01:33 -0500)]
Add MPC8544DS README

Signed-off-by: Andy Fleming <afleming@freescale.com>
17 years ago85xx allow debugger to configure ddr.
Ed Swarthout [Fri, 27 Jul 2007 06:50:48 +0000 (01:50 -0500)]
85xx allow debugger to configure ddr.

Only check for mpc8548 rev 1 when compiled for 8548.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
17 years agompc85xx L2 cache reporting and SRAM relocation option.
Ed Swarthout [Fri, 27 Jul 2007 06:50:47 +0000 (01:50 -0500)]
mpc85xx L2 cache reporting and SRAM relocation option.

Allow debugger to override flash cs0/cs1 settings to enable alternate
boot regions

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
17 years agoe500 needs ppc_asm.tmp MCK_EXCEPTION
Ed Swarthout [Fri, 27 Jul 2007 06:50:46 +0000 (01:50 -0500)]
e500 needs ppc_asm.tmp MCK_EXCEPTION

Always define MCK_EXCEPTION macro - so e500 can use it too.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-mpc86xx
Wolfgang Denk [Mon, 13 Aug 2007 20:00:25 +0000 (22:00 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-mpc86xx

17 years agoMinor coding style cleanup. Update CHANGELOG.
Wolfgang Denk [Mon, 13 Aug 2007 19:57:53 +0000 (21:57 +0200)]
Minor coding style cleanup. Update CHANGELOG.

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge commit 'remotes/wd/master'
Jon Loeliger [Mon, 13 Aug 2007 16:01:52 +0000 (11:01 -0500)]
Merge commit 'remotes/wd/master'

Conflicts:

MAKEALL

With any luck, this is the last MAKEALL merge conflict!

17 years agoModify SBC8641D to use new Freescale PCI routines
Joe Hamman [Sat, 11 Aug 2007 11:54:58 +0000 (06:54 -0500)]
Modify SBC8641D to use new Freescale PCI routines

PCI-Express sockets 1 and 2 verified working with Intel Pro/1000 PT
adapter.

Signed-off-by: Joe Hamman <joe.hamman@embeddedspecialties.com>
Signde-off-by: Jon Loeliger <jdl@freescale.com>
17 years agoatmel_mci: Fix data timeout value
Haavard Skinnemoen [Fri, 29 Jun 2007 16:38:51 +0000 (18:38 +0200)]
atmel_mci: Fix data timeout value

Calculate the data timeout based on values from the CSD instead of
just using a hardcoded DTOR value. This is a backport of a similar fix
in BSP 2.0, with one additional fix: the DTOCYC value is rounded up
instead of down.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Include <div64.h> instead of <asm/div64.h>
Haavard Skinnemoen [Mon, 13 Aug 2007 15:22:31 +0000 (17:22 +0200)]
AVR32: Include <div64.h> instead of <asm/div64.h>

include/asm-avr32/div64.h was recently moved to include/div64.h, but
cpu/at32ap/interrupts.c wasn't properly updated (an earlier version of
the patch was merged perhaps?)

This patch updates cpu/at32ap/interrupts.c so that the avr32 port
compiles again.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoMerge commit 'upstream/master'
Haavard Skinnemoen [Mon, 13 Aug 2007 14:34:33 +0000 (16:34 +0200)]
Merge commit 'upstream/master'

17 years agoatmel_mci: Use 512 byte blocksize if possible
Haavard Skinnemoen [Wed, 27 Jun 2007 11:34:26 +0000 (13:34 +0200)]
atmel_mci: Use 512 byte blocksize if possible

Instead of always using the largest blocksize the card supports, check
if it can support smaller block sizes and use 512 bytes if possible.
Most cards do support this, and other parts of u-boot seem to have
trouble with block sizes different from 512 bytes.

Also enable underrun/overrun protection.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
17 years agoUpdate CHANGELOG
Wolfgang Denk [Sun, 12 Aug 2007 19:34:50 +0000 (21:34 +0200)]
Update CHANGELOG

17 years agoMinor alignment of output, 2nd try.
Wolfgang Denk [Sun, 12 Aug 2007 19:34:34 +0000 (21:34 +0200)]
Minor alignment of output, 2nd try.
Also update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMinor alignment of output
Wolfgang Denk [Sun, 12 Aug 2007 18:35:49 +0000 (20:35 +0200)]
Minor alignment of output

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoCleanup output on ADS5121 board
Wolfgang Denk [Sun, 12 Aug 2007 16:28:18 +0000 (18:28 +0200)]
Cleanup output on ADS5121 board

Signed-off-by: Wolfgang Denk
17 years agoMerge with git+ssh://gemini_vpn/home/wd/git/u-boot/master
Wolfgang Denk [Sun, 12 Aug 2007 16:12:38 +0000 (18:12 +0200)]
Merge ... git+ssh://gemini_vpn/home/wd/git/u-boot/master

17 years agoAdapt board configuration and fix kernel crash on MCC200 board.
Wolfgang Denk [Sun, 12 Aug 2007 13:11:38 +0000 (15:11 +0200)]
Adapt board configuration and fix kernel crash on MCC200 board.

The update procedure was modified to turn off the USB subsystem
before exit for MCC200 and TRAB. This is necessary as otherwise the
USB controller continues to write periodically to system memory!

MCC200-specific notes:
- the patch disables the magic key check for MCC200
- the patch contains the configuration changes made
  for the new revision of the board.

Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoAdjust default configuration of ADS5121 board.
Wolfgang Denk [Sun, 12 Aug 2007 12:47:54 +0000 (14:47 +0200)]
Adjust default configuration of ADS5121 board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoClean up some remaining CFG_CMD_ -> CONFIG_CMD_ issues.
Wolfgang Denk [Sun, 12 Aug 2007 12:27:39 +0000 (14:27 +0200)]
Clean up some remaining CFG_CMD_ -> CONFIG_CMD_ issues.

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-fdt
Wolfgang Denk [Sat, 11 Aug 2007 00:14:05 +0000 (02:14 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-fdt

17 years agoImprove error print messages.
Gerald Van Baren [Wed, 8 Aug 2007 01:14:22 +0000 (21:14 -0400)]
Improve error print messages.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agofdt: allow for builds that don't want env and bd_t nodes
Kim Phillips [Tue, 17 Jul 2007 18:57:04 +0000 (13:57 -0500)]
fdt: allow for builds that don't want env and bd_t nodes

protect fdt_env and fdt_bd_t invocations, fix codingstyle while in the
area.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agofdt: do board setup based on fdt address specified on bootm line
Kim Phillips [Tue, 17 Jul 2007 18:56:53 +0000 (13:56 -0500)]
fdt: do board setup based on fdt address specified on bootm line

The last fdt patch to bootm did board setup based on the address
specified by a prior fdt address command invocation.  The bootm
code, as its call to fdt_chosen does, should use the fdt specified
by the user on the bootm command.  Note this restores full
functionality for the 8360's existing default boot environment
values, e.g. 'run nfsboot' (i.e. no having to 'fdt addr $fdtaddr'
before booting a kernel).

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agoCall ft_board_setup() from the bootm command.
Gerald Van Baren [Wed, 11 Jul 2007 00:40:39 +0000 (20:40 -0400)]
Call ft_board_setup() from the bootm command.

In the patch titled "Create new fdt boardsetup command..." I removed the
call to ft_board_setup() from the routine fdt_chosen(), but I forgot
to add a direct call back into cmd_bootm.c

This fixes the oversight by adding the direct call to the bootm command.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoCreate new fdt boardsetup command, fix bug parsing [] form of set values.
Gerald Van Baren [Tue, 26 Jun 2007 03:25:28 +0000 (23:25 -0400)]
Create new fdt boardsetup command, fix bug parsing [] form of set values.

Previously ft_board_setup() was called by fdt_chosen() which was not
really correctly structured.  This splits ft_board_setup() out by creating
a new fdt boardsetup command.

Fix a bug when parsing fdt set command values which have the square
bracket form [00 11 22 33] - the length was updated incorrectly in when
parsing that form.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoTighten up the error messages.
Gerald Van Baren [Tue, 26 Jun 2007 00:55:58 +0000 (20:55 -0400)]
Tighten up the error messages.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoAsthetic improvements: error messages and line lengths.
Gerald Van Baren [Mon, 25 Jun 2007 23:52:23 +0000 (19:52 -0400)]
Asthetic improvements: error messages and line lengths.

Tighten up the error messages, split overlength lines.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoFix fdt_chosen() to call ft_board_setup(), clean up long lines.
Gerald Van Baren [Sat, 26 May 2007 02:08:57 +0000 (22:08 -0400)]
Fix fdt_chosen() to call ft_board_setup(), clean up long lines.

The fdt_chosen() function was adding/seting some properties ad-hoc
  improperly and duplicated (poorly) what was done in ft_board_setup()

Clean up long lines (setting properties, printing errors).

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoFor fdt_find_node_by_path(), handle the root path properly.
Gerald Van Baren [Tue, 22 May 2007 03:27:16 +0000 (23:27 -0400)]
For fdt_find_node_by_path(), handle the root path properly.

Also removes the special case root path detection in cmd_fdt.c since it
is no longer necessary.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoAdd fdt_find_node_by_type() and fdt_find_compatible_node() to LIBFDT
Gerald Van Baren [Fri, 18 May 2007 03:54:36 +0000 (23:54 -0400)]
Add fdt_find_node_by_type() and fdt_find_compatible_node() to LIBFDT

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoReplace fdt_node_offset() with fdt_find_node_by_path().
Gerald Van Baren [Thu, 7 Jun 2007 02:47:58 +0000 (22:47 -0400)]
Replace fdt_node_offset() with fdt_find_node_by_path().

The new name matches more closely the kernel's name, which is also
a much better description.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoFix cmd_fdt line lengths, refactor code.
Gerald Van Baren [Thu, 17 May 2007 02:39:59 +0000 (22:39 -0400)]
Fix cmd_fdt line lengths, refactor code.

Break lines that were greater than 80 characters in length.
Move the fdt print and property parsing code to separate static functions
  to reduce coding clutter in the fdt_cmd handling body.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoFDT command improvements.
Gerald Van Baren [Sat, 12 May 2007 13:47:25 +0000 (09:47 -0400)]
FDT command improvements.

Fix "fdt set" so that it will create a non-existing property.
Add "fdt mknode" to create nodes.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoReorganize and fix problems (returns) in the bootm command.
Gerald Van Baren [Sat, 12 May 2007 13:45:46 +0000 (09:45 -0400)]
Reorganize and fix problems (returns) in the bootm command.

Do *NOT* return after the "point of no return" has been passed.
  If something goes wrong, the board must be reset after that point.
Move the "Transferring control to Linux" debug message back to where it
  belongs: just before transferring control to linux.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoFix bugs in the CONFIG_OF_LIBFDT
Gerald Van Baren [Wed, 9 May 2007 01:27:35 +0000 (21:27 -0400)]
Fix bugs in the CONFIG_OF_LIBFDT

Stupid coding mistakes (identified by Timur Tabi, thanks).

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoImprove fdt move length handling.
Gerald Van Baren [Thu, 26 Apr 2007 02:47:15 +0000 (22:47 -0400)]
Improve fdt move length handling.

Make the length parameter optional: if not specified, do the move using
the current size unchanged.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoMinor code clean up.
Gerald Van Baren [Thu, 26 Apr 2007 02:23:36 +0000 (22:23 -0400)]
Minor code clean up.

Declare the variable fdt properly as extern.
Call the "set_fn" function pointer the "short way" without the full
  dereferencing syntax.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoImprove error messages, more informative.
Gerald Van Baren [Thu, 26 Apr 2007 01:24:27 +0000 (21:24 -0400)]
Improve error messages, more informative.

Print more than the raw libfdt error message strings.  This is especially
useful for cluing in the user when the bootm command aborts due to
blob problems.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agolibfdt: Conditionally compile based on CONFIG_OF_LIBFDT
Gerald Van Baren [Sat, 21 Apr 2007 02:46:53 +0000 (22:46 -0400)]
libfdt: Conditionally compile based on CONFIG_OF_LIBFDT

This is the way u-boot reduces configured-out code.  At Wolfgang
Grandegger and Wolfgang Denk's request, make libfdt conform.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
17 years agoMerge git://www.denx.de/git/u-boot
Gerald Van Baren [Fri, 10 Aug 2007 23:19:50 +0000 (19:19 -0400)]
Merge git://www.denx.de/git/u-boot

17 years agoadd image size and descriptors for Spartan 3E FPGA chips
Bruce Adler [Fri, 10 Aug 2007 21:54:47 +0000 (14:54 -0700)]
add image size and descriptors for Spartan 3E FPGA chips

Spartan 3E image sizes taken from Table 1-4 in Xilinx UG332 (v1.1)

Signed-off by: Bruce Adler <bruce.adler@ccpu.com>

17 years agomake MAKEALL more immune to merge conflicts
Kim Phillips [Fri, 10 Aug 2007 20:34:48 +0000 (15:34 -0500)]
make MAKEALL more immune to merge conflicts

..by placing board entries one per line, as suggested by jdl.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agoREADME: Remove outdated cpu type, board type, and NAME_config lists
Kim Phillips [Fri, 10 Aug 2007 18:28:25 +0000 (13:28 -0500)]
README: Remove outdated cpu type, board type, and NAME_config lists

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Suppress the warning 'burstlen'
Dave Liu [Fri, 10 Aug 2007 07:48:59 +0000 (15:48 +0800)]
mpc83xx: Suppress the warning 'burstlen'

suppress the warning 'burstlen' of spd_sdram.

Signed-off-by: Dave Liu <daveliu@freescale.com>
17 years agoAdd support for SBC8641D. Config files.
Joe Hamman [Thu, 9 Aug 2007 20:11:03 +0000 (15:11 -0500)]
Add support for SBC8641D. Config files.

Add support for Wind River's SBC8641D reference board.

Signed-off by: Joe Hamman <joe.hamman@embeddedspecialties.com>
Acked-by: Wolfgang Denk <wd@denx.de>
Acked-by: Jon Loeliger <jdl@freescale.com>
17 years agoAdd support for SBC8641D. Board files.
Joe Hamman [Thu, 9 Aug 2007 20:10:53 +0000 (15:10 -0500)]
Add support for SBC8641D.  Board files.

Add support for Wind River's SBC8641D reference board.

Signed-off by: Joe Hamman <joe.hamman@embeddedspecialties.com>
Acked-by: Wolfgang Denk <wd@denx.de>
Acked-by: Jon Loeliger <jdl@freescale.com>
17 years agoMerge with git+ssh://sr@pollux.denx.org/home/wd/git/u-boot/from_stefan
Stefan Roese [Fri, 10 Aug 2007 18:38:35 +0000 (20:38 +0200)]
Merge ... git+ssh://sr@pollux.denx.org/home/wd/git/u-boot/from_stefan

17 years agoConding style cleanup
Stefan Roese [Fri, 10 Aug 2007 18:34:58 +0000 (20:34 +0200)]
Conding style cleanup

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoMerge with git://www.denx.de/git/u-boot.git
Stefan Roese [Fri, 10 Aug 2007 18:33:06 +0000 (20:33 +0200)]
Merge with git://www.denx.de/git/u-boot.git

17 years ago[ARM] TI DaVinci support, hopefully final
Sergey Kubushyn [Fri, 10 Aug 2007 18:26:18 +0000 (20:26 +0200)]
[ARM] TI DaVinci support, hopefully final

Add support for the following DaVinci boards:
- DV_EVM
- SCHMOOGIE
- SONATA

Changes:

- Split into separate board directories
- Removed changes to MTD_DEBUG (or whatever it's called)
- New CONFIG_CMD party line followed
- Some cosmetic fixes, cleanup etc.
- Patches against the latest U-Boot tree as of now.
- Fixed CONFIG_CMD_NET in net files.
- Fixed CONFIG_CMD_EEPROM for schmoogie.
- Made sure it compiles and works (forceenv() link problem) on SCHMOOGIE and
   DV_EVM. Can't check if it works on SONATA, don't have a board any more,
   but it at least compiles.

Here is an excerpt from session log on SCHMOOGIE...

U-Boot 1.2.0-g6c33c785-dirty (Aug  7 2007 - 13:07:17)

DRAM:  128 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
ARM Clock : 297MHz
DDR Clock : 162MHz
ETH PHY   : DP83848 @ 0x01
U-Boot > iprobe
Valid chip addresses: 1B 38 3A 3D 3F 50 5D 6F
U-Boot > ping 192.168.253.10
host 192.168.253.10 is alive
U-Boot >

Signed-off-by: Sergey Kubushyn <ksi@koi8.net>
Acked-by: Dirk Behme <dirk.behme@gmail.com>
Acked-by: Zach Sadecki <Zach.Sadecki@ripcode.com>
Acked-by: Stefan Roese <sr@denx.de>
17 years agofsl_pci_init cleanup.
Ed Swarthout [Fri, 27 Jul 2007 06:50:45 +0000 (01:50 -0500)]
fsl_pci_init cleanup.

Do not enable normal errors created during probe (master abort, perr,
and pcie Invalid Configuration access).

Add CONFIG_PCI_NOSCAN board option to prevent bus scan.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
17 years agopciauto_setup_device bars_num fix
Ed Swarthout [Fri, 27 Jul 2007 06:50:44 +0000 (01:50 -0500)]
pciauto_setup_device bars_num fix

Passing bars_num=0 to pciauto_setup_device should assign no bars.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Acked-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Acked-by: Andy Fleming <afleming@freescale.com>
17 years ago8641hpcn: Do correct sized pointer math.
Jon Loeliger [Mon, 6 Aug 2007 22:39:44 +0000 (17:39 -0500)]
8641hpcn: Do correct sized pointer math.

When I rebased Ed's patch and cleaned up a few compilation
problems, I apparently rebased my brain on crack first.
Fix that by doing (char *) sized pointer math as needed.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
17 years agocpu/86xx fixes.
Jon Loeliger [Thu, 2 Aug 2007 19:42:20 +0000 (14:42 -0500)]
cpu/86xx fixes.

Remove rev 1 fixes.
Always set PICGCR_MODE.
Enable machine check and provide board config option
to set and handle SoC error interrupts.

Include MSSSR0 in error message.

Isolate a RAMBOOT bit of code with #ifdef CFG_RAMBOOT.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
17 years agoMerge with git+ssh://atlas/home/wd/git/u-boot/master
Wolfgang Denk [Fri, 10 Aug 2007 08:35:10 +0000 (10:35 +0200)]
Merge ... git+ssh://atlas/home/wd/git/u-boot/master

17 years agoMerge with /home/wd/git/u-boot/work
Wolfgang Denk [Fri, 10 Aug 2007 08:34:10 +0000 (10:34 +0200)]
Merge with /home/wd/git/u-boot/work

17 years agoMake use of generic 64bit division in nand_util.c
Dirk Behme [Thu, 2 Aug 2007 15:42:08 +0000 (17:42 +0200)]
Make use of generic 64bit division in nand_util.c

Use generic 64bit division in nand_util.c. This makes nand_util.c
independent of any toolchain 64bit division.

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
17 years agoMove 64bit division from avr32 to generic lib
Dirk Behme [Thu, 2 Aug 2007 15:41:14 +0000 (17:41 +0200)]
Move 64bit division from avr32 to generic lib

Move the 64bit division from lib_avr32 to lib_generic. With this, all
boards can do_div/__div64_32 if needed, not only avr one. Code is put
to lib_generic, so no larger memory footprint if not used. No code
modifications. Thanks for proposal by HÃ¥vard Skinnemoen.

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
17 years agompc83xx: fix ITX[GP] O=builddir builds
Kim Phillips [Mon, 6 Aug 2007 23:18:34 +0000 (18:18 -0500)]
mpc83xx: fix ITX[GP] O=builddir builds

make: *** No rule to make target `/work/wd/tmp/board/mpc8349itx/u-boot.lds', needed by `/work/wd/tmp/u-boot'.  Stop.

Both the ITX and ITX-GP fail when you use "make O=<some dir> ..." or
"BUILD_DIR=<some dir> ./MAKEALL ..."

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Correct the README for DDR ECC
Dave Liu [Wed, 1 Aug 2007 07:00:59 +0000 (15:00 +0800)]
mpc83xx: Correct the README for DDR ECC

Update the README for DDR ECC, change the name
to README.mpc83xx.ddrecc.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Consolidate the ECC support of 83xx
Dave Liu [Wed, 1 Aug 2007 07:00:15 +0000 (15:00 +0800)]
mpc83xx: Consolidate the ECC support of 83xx

Remove the duplicated source code of ecc command on the <board>.c,
for reused, move these code to cpu/mpc83xx directory.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Correct the burst length for DDR2 with 32 bits
Dave Liu [Sat, 4 Aug 2007 05:37:39 +0000 (13:37 +0800)]
mpc83xx: Correct the burst length for DDR2 with 32 bits

The burst length should be 4 for DDR2 with 32 bits bus

Signed-off-by: Dave Liu <daveliu@freescale.com>
17 years agompc83xx: add support for the MPC8323E RDB
Kim Phillips [Thu, 26 Jul 2007 00:25:33 +0000 (19:25 -0500)]
mpc83xx: add support for the MPC8323E RDB

MPC8323E based board with 64MB fixed SDRAM, 16MB flash,
five 10/100 ethernet ports connected via an ICPlus IP175C
switch, one PCI slot, and serial.  Features not supported
in this patch are SD card interface, 2 USB ports, and the
two phone ports.

Signed-off-by: Michael Barkowski <michael.barkowski@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: fixup generic pci for libfdt
Kim Phillips [Thu, 26 Jul 2007 00:25:28 +0000 (19:25 -0500)]
mpc83xx: fixup generic pci for libfdt

add libfdt support to the generic 83xx pci code

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: fix 8360 and cpu functions to update fdt being passed
Kim Phillips [Thu, 26 Jul 2007 00:25:22 +0000 (19:25 -0500)]
mpc83xx: fix 8360 and cpu functions to update fdt being passed

..and not the global fdt. Rename local fdt vars to blob so as not to
be confused with the global var with the same three-letter name.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Fix errors when CONFIG_OF_LIBFDT is enabled
Jerry Van Baren [Thu, 5 Jul 2007 01:34:24 +0000 (21:34 -0400)]
mpc83xx: Fix errors when CONFIG_OF_LIBFDT is enabled

Several node strings were not correct (trailing slashes and properties
  in the strings)
Added setting of the timebase-frequency.
Improved error messages and use debug() instead of printf().

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Replace fdt_node_offset() with fdt_find_node_by_path().
Jerry Van Baren [Thu, 5 Jul 2007 01:27:30 +0000 (21:27 -0400)]
mpc83xx: Replace fdt_node_offset() with fdt_find_node_by_path().

The new name matches more closely the kernel's name, which is also
a much better description.

These are the mpc83xx changes made necessary by the function name change.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Add support for the display of reset status
Dave Liu [Mon, 25 Jun 2007 02:41:56 +0000 (10:41 +0800)]
mpc83xx: Add support for the display of reset status

83xx processor family has many reset sources, such as
power on reset, software hard reset, software soft reset,
JTAG, bus monitor, software watchdog, check stop reset,
external hard reset, external software reset.
sometimes, to figure out the fault of system, we need to
know the cause of reset early before the prompt of
u-boot present.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Fix the align bug of SDMA buffer
Dave Liu [Mon, 25 Jun 2007 02:41:04 +0000 (10:41 +0800)]
mpc83xx: Fix the align bug of SDMA buffer

According to the latest user manual, the SDMA temporary
buffer base address must be 4KB aligned.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Revise the MPC8360EMDS readme doc
Dave Liu [Mon, 25 Jun 2007 05:21:12 +0000 (13:21 +0800)]
mpc83xx: Revise the MPC8360EMDS readme doc

When the rev2.x silicon mount on the MPC8360EMDS baord,
and if you are using the u-boot version after the commit
3fc0bd159103b536e1c54c6f4457a09b3aba66ca.
to make the ethernet interface usable, we have to setup
the jumpers correctly.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agoFSL I2C driver programs the two I2C busses differently
Timur Tabi [Tue, 3 Jul 2007 18:46:32 +0000 (13:46 -0500)]
FSL I2C driver programs the two I2C busses differently

The i2c_init() function in fsl_i2c.c programs the two I2C busses differently.
The second I2C bus has its slave address programmed incorrectly and is
missing a 5-us delay.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agoUpdate SCCR programming in cpu_init_f() to support all 83xx processors
Timur Tabi [Tue, 3 Jul 2007 18:04:34 +0000 (13:04 -0500)]
Update SCCR programming in cpu_init_f() to support all 83xx processors

Update the cpu_init_f() function in cpu/mpc83xx/cpu_init.c to program the
bitfields for all 83xx processors.  The code to update some bitfields was
compiled only on some processors.  Now, the bitfields are programmed as long
as the corresponding CFG_SCCR option is defined in the board header file.
This means that the board header file should not define any CFG_SCCR macros
for bitfields that don't exist on that processor, otherwise the SCCR will be
programmed incorrectly.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agoTQM834x: cleanup configuraton
Martin Krause [Fri, 22 Jun 2007 11:04:22 +0000 (13:04 +0200)]
TQM834x: cleanup configuraton

Remove irritating #undef DEBUG

Signed-off-by: Martin Krause <martin.krause@tqs.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agoMPC83xx: Fix makefile to generate config.h file in the build directory
david.saada [Mon, 18 Jun 2007 16:09:53 +0000 (09:09 -0700)]
MPC83xx: Fix makefile to generate config.h file in the build directory

MPC83xx: Fix the Makefile config sections to generate the include/config.h
file in the build directory instead of the source directory.

Signed-off-by: David Saada <david.saada@ecitele.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agompc83xx: Add support for 8360 silicon revision 2.1
Lee Nipper [Fri, 15 Jun 2007 01:07:33 +0000 (20:07 -0500)]
mpc83xx: Add support for 8360 silicon revision 2.1

This change adds 8360 silicon revision 2.1 support to u-boot.

Signed-off-by: Lee Nipper <lee.nipper@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agoMerge with git+ssh://atlas/home/wd/git/u-boot/master
Wolfgang Denk [Thu, 9 Aug 2007 21:49:30 +0000 (23:49 +0200)]
Merge ... git+ssh://atlas/home/wd/git/u-boot/master

17 years agoMerge with /home/wd/git/u-boot/work
Wolfgang Denk [Thu, 9 Aug 2007 21:47:43 +0000 (23:47 +0200)]
Merge with /home/wd/git/u-boot/work

17 years agoTreat ppc64 host as ppc
Kumar Gala [Wed, 8 Aug 2007 09:14:28 +0000 (04:14 -0500)]
Treat ppc64 host as ppc

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoMinor fix for bios emulator makefile
Jason Jin [Wed, 8 Aug 2007 01:01:46 +0000 (09:01 +0800)]
Minor fix for bios emulator makefile

Add $(obj) to LIB avoiding objects be built in the source dir

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
17 years agoAdd CONFIG_BIOSEMU define to guard all the bios emulator code
Jason Jin [Wed, 8 Aug 2007 00:33:11 +0000 (08:33 +0800)]
Add CONFIG_BIOSEMU define to guard all the bios emulator code

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
This patch fix the compile issue on the board that did not enable the bios emulator

17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-usb
Wolfgang Denk [Thu, 9 Aug 2007 21:17:32 +0000 (23:17 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-usb

17 years agotsec: fix multiple PHY support
Zach Sadecki [Tue, 31 Jul 2007 17:27:25 +0000 (12:27 -0500)]
tsec: fix multiple PHY support

The change entitled "Reduce CONFIG_MPC8YXX_TSECx to CONFIG_TSECx"
broke multiple PHY support in tsec.c.  This fixes it.

Signed-off-by: Zach Sadecki <Zach.Sadecki@ripcode.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-mpc83xx
Wolfgang Denk [Thu, 9 Aug 2007 20:38:39 +0000 (22:38 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-mpc83xx

17 years agoMerge with /home/wd/git/u-boot/work
Wolfgang Denk [Thu, 9 Aug 2007 20:11:03 +0000 (22:11 +0200)]
Merge with /home/wd/git/u-boot/work

17 years agotsec: Allow Ten Bit Interface address to be configurable
Joe Hamman [Thu, 9 Aug 2007 14:08:18 +0000 (09:08 -0500)]
tsec: Allow Ten Bit Interface address to be configurable

Allow the address of the Ten Bit Interface (TBI) to be changed in the
event of a conflict with another device.

Signed-off by: Joe Hamman <joe.hamman@embeddedspecialties.com>

17 years agoMerge git://www.denx.de/git/u-boot
Gerald Van Baren [Wed, 8 Aug 2007 01:33:33 +0000 (21:33 -0400)]
Merge git://www.denx.de/git/u-boot

17 years agoMerge with git://www.denx.de/git/u-boot.git
Markus Klotzbuecher [Tue, 7 Aug 2007 20:30:29 +0000 (22:30 +0200)]
Merge with git://www.denx.de/git/u-boot.git

17 years agoMerge with /home/tur/git/u-boot#cm5200-si
Wolfgang Denk [Tue, 7 Aug 2007 15:04:30 +0000 (17:04 +0200)]
Merge with /home/tur/git/u-boot#cm5200-si

17 years agoAdd CONFIG_BIOSEMU define to guard all the bios emulator code
Jason Jin [Tue, 7 Aug 2007 08:17:06 +0000 (16:17 +0800)]
Add CONFIG_BIOSEMU define to guard all the bios emulator code

This patch fix the compile issue on the board that did not enable the bios emulator

17 years agoFix missing brace error in fs/fat/fat.c
Wolfgang Denk [Tue, 7 Aug 2007 14:02:13 +0000 (16:02 +0200)]
Fix missing brace error in fs/fat/fat.c
[pointed out by Roderik Wildenburg]

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoFixed typo in README (pointed out by Martin Jost).
Wolfgang Denk [Mon, 6 Aug 2007 21:21:05 +0000 (23:21 +0200)]
Fixed typo in README (pointed out by Martin Jost).

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge with /home/wd/git/u-boot/custodian/u-boot-testing
Wolfgang Denk [Mon, 6 Aug 2007 13:59:45 +0000 (15:59 +0200)]
Merge ... /home/wd/git/u-boot/custodian/u-boot-testing

17 years agoCoding style cleanup. Update CHANGELOG.
Wolfgang Denk [Mon, 6 Aug 2007 00:17:36 +0000 (02:17 +0200)]
Coding style cleanup. Update CHANGELOG.

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoRemove the bios emulator from MAI board.
Jason Jin [Tue, 10 Jul 2007 01:03:22 +0000 (09:03 +0800)]
Remove the bios emulator from MAI board.

The bios emulator in the MAI board can not pass compile
and have a lot of crap in it. remove it and will have a
clean and small bios emulator in the drivers directory
which can be uesed for every board.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
17 years agoFix some compile issues for MAI board.
Jason Jin [Fri, 13 Jul 2007 04:14:59 +0000 (12:14 +0800)]
Fix some compile issues for MAI board.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
17 years agoConfigurations for ATI video card BIOS emulator
Jason Jin [Fri, 13 Jul 2007 04:14:58 +0000 (12:14 +0800)]
Configurations for ATI video card BIOS emulator

This patch add definition of the BIOS emulator and the ATI framebuffer
driver for MPC8641HPCN board.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
17 years agoThis is a BIOS emulator, porting from SciTech for u-boot, mainly for
Jason Jin [Fri, 6 Jul 2007 00:34:56 +0000 (08:34 +0800)]
This is a BIOS emulator, porting from SciTech for u-boot, mainly for
ATI video card BIOS. and can be used for x86 code emulation by some
modifications.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>