platform/kernel/u-boot.git
16 years agojffs2_1pass.c: fix incompatible pointer type warning
Wolfgang Denk [Mon, 28 Apr 2008 20:01:04 +0000 (22:01 +0200)]
jffs2_1pass.c: fix incompatible pointer type warning

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agortl8169: fix compiler warnings
Guennadi Liakhovetski [Mon, 28 Apr 2008 12:37:14 +0000 (14:37 +0200)]
rtl8169: fix compiler warnings

Fix multiple compiler warnings related to argument type mismatch.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
16 years agoIDE: fix compiler warnings
Guennadi Liakhovetski [Mon, 28 Apr 2008 12:36:06 +0000 (14:36 +0200)]
IDE: fix compiler warnings

The IDE driver can use 32-bit addresses in LBA mode, in which case it
spits multiple warnings during compilation. Fix them.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
16 years agoLinkStation: fix compiler warning, add a maintainer
Guennadi Liakhovetski [Mon, 28 Apr 2008 12:35:57 +0000 (14:35 +0200)]
LinkStation: fix compiler warning, add a maintainer

out_8 wants a pointer to an unsigned as the first argument. Add a
maintainer for Linkstation boards.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
16 years agocmd_nand.c: fix "differ in signedness" problem
Wolfgang Denk [Mon, 28 Apr 2008 12:55:12 +0000 (14:55 +0200)]
cmd_nand.c: fix "differ in signedness" problem

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agopcnet.c: fix a merge issue
Wolfgang Denk [Mon, 28 Apr 2008 10:48:47 +0000 (12:48 +0200)]
pcnet.c: fix a merge issue

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoNAND: fix some strict-aliasing compiler warnings
Wolfgang Denk [Mon, 28 Apr 2008 10:08:18 +0000 (12:08 +0200)]
NAND: fix some strict-aliasing compiler warnings

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
Wolfgang Denk [Mon, 28 Apr 2008 10:07:34 +0000 (12:07 +0200)]
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master

16 years agoppc4xx: Fix compile warning of hcu4 board
Stefan Roese [Mon, 28 Apr 2008 09:37:14 +0000 (11:37 +0200)]
ppc4xx: Fix compile warning of hcu4 board

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoMerge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
Wolfgang Denk [Mon, 28 Apr 2008 09:34:34 +0000 (11:34 +0200)]
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master

16 years agoMPC8323ERDB: fix implicit declaration of function 'mac_read_from_eeprom'
Wolfgang Denk [Mon, 28 Apr 2008 09:31:23 +0000 (11:31 +0200)]
MPC8323ERDB: fix implicit declaration of function 'mac_read_from_eeprom'

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agomx31ads: fix loadaddr environment variable define
Guennadi Liakhovetski [Sun, 27 Apr 2008 22:25:32 +0000 (00:25 +0200)]
mx31ads: fix loadaddr environment variable define

Arithmetic expressions do not get evaluated under stringification. Remove
default network configuration, add DHCP command support. Thanks to Felix
Radensky for reporting.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
16 years agokatmai: fix section overlap problem
Wolfgang Denk [Mon, 28 Apr 2008 08:55:24 +0000 (10:55 +0200)]
katmai: fix section overlap problem

Since we didn't want to remove features from the configuration, we
decided to increase the U-Boot image size (add one flash sector).

Also changed the default environment definition to make it
independent of such changes.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
16 years agokatmai: fix section overlap problem
Wolfgang Denk [Mon, 28 Apr 2008 08:55:24 +0000 (10:55 +0200)]
katmai: fix section overlap problem

Since we didn't want to remove features from the configuration, we
decided to increase the U-Boot image size (add one flash sector).

Also changed the default environment definition to make it
independent of such changes.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
16 years agopost: Fix building with O=
Kumar Gala [Sat, 26 Apr 2008 16:44:44 +0000 (11:44 -0500)]
post: Fix building with O=

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoPrepare v1.3.3-rc1
Wolfgang Denk [Fri, 25 Apr 2008 23:55:00 +0000 (01:55 +0200)]
Prepare v1.3.3-rc1

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agopost/Makefile: make sure to use the correct flags
Wolfgang Denk [Fri, 25 Apr 2008 23:25:39 +0000 (01:25 +0200)]
post/Makefile: make sure to use the correct flags

ARFLAGS was not set, which caused "ppc_8xx-ar: creating libgenpost.a"
messages to be printed.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoCoding Style cleanup, update CHANGELOG
Wolfgang Denk [Fri, 25 Apr 2008 22:34:42 +0000 (00:34 +0200)]
Coding Style cleanup, update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoi.MX31: Enable SPI and MC13783/RTC support for the Litekit board
Magnus Lilja [Sun, 20 Apr 2008 08:38:12 +0000 (10:38 +0200)]
i.MX31: Enable SPI and MC13783/RTC support for the Litekit board

This patch enables SPI and MC13783/RTC support for the Litekit board.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
16 years agoMPC8544DS: decode pcie3 end-point configuration correctly.
Ed Swarthout [Fri, 25 Apr 2008 06:08:32 +0000 (01:08 -0500)]
MPC8544DS: decode pcie3 end-point configuration correctly.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoMPC8544DS: Removes the unknown flash message information
Roy Zang [Fri, 25 Apr 2008 05:55:09 +0000 (00:55 -0500)]
MPC8544DS: Removes the unknown flash message information

This patch removes the unknown flash message information:
'## Unknown FLASH on Bank 1 - Size = 0xdeadbeef = -286261248 MB'
This unknown flash message is caused by PromJet.
Some of the board user is unhappy with this information.

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc83xx
Wolfgang Denk [Fri, 25 Apr 2008 22:07:26 +0000 (00:07 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-mpc83xx

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-cfi-flash
Wolfgang Denk [Fri, 25 Apr 2008 22:06:51 +0000 (00:06 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-cfi-flash

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
Wolfgang Denk [Fri, 25 Apr 2008 22:06:13 +0000 (00:06 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-ppc4xx

16 years agompc83xx: bump loadaddr over fdtaddr to 0x500000
Kim Phillips [Thu, 24 Apr 2008 19:07:38 +0000 (14:07 -0500)]
mpc83xx: bump loadaddr over fdtaddr to 0x500000

this seems as a good compromise between human memory, typing,
and last but not least, to accommodate for current and future kernel bloat.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Dave Liu <daveliu@freescale.com>
16 years agompc83xx: clean up the readme for 83xx boards
Dave Liu [Tue, 15 Apr 2008 05:12:23 +0000 (13:12 +0800)]
mpc83xx: clean up the readme for 83xx boards

1. correct the typo
2. correct the memory map for 837xerdb board

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agompc83xx: remove the unused CPM's stuff
Dave Liu [Tue, 15 Apr 2008 05:11:11 +0000 (13:11 +0800)]
mpc83xx: remove the unused CPM's stuff

The MPC83xx family never have CPM block, so remove it from 83xx.

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agocfi-flash: Add CFG_FLASH_AUTOPROTECT_LIST
Matthias Fuchs [Fri, 18 Apr 2008 14:29:40 +0000 (16:29 +0200)]
cfi-flash: Add CFG_FLASH_AUTOPROTECT_LIST

This patch adds a configurable flash auto protection list that can be used
to make U-Boot protect flash regions in flash_init().

The idea has been discussed on the u-boot mailing list starting
on Nov 18th, 2007.

Even this patch brings a new feature it is used as a bugfix for 4xx
platforms where flash_init() does not completely protect the
monitor's flash range in all situations.

U-Boot protects the flash range from CFG_MONITOR_BASE to
(CFG_MONITOR_BASE + monitor_flash_len  - 1) by default. This does not
include the reset vector at 0xfffffffc.

Example:
#define CFG_FLASH_AUTOPROTECT_LIST {{0xfff80000, 0x80000}}

This config option will auto protect the last 512k of flash that
contains the bootloader on board like APC405 and PMC405.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoppc4xx: Remove double defines in lwmon5.h
Stefan Roese [Fri, 25 Apr 2008 11:59:03 +0000 (13:59 +0200)]
ppc4xx: Remove double defines in lwmon5.h

introduced with latest lwmon5/POST merge

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoUse watchdog-aware functions when calculating hashes of images - take two
Bartlomiej Sieka [Fri, 25 Apr 2008 11:54:02 +0000 (13:54 +0200)]
Use watchdog-aware functions when calculating hashes of images - take two

Some files didn't get updated properly with the "Use watchdog-aware
functions when calculating hashes of images" commit, this commit
fixes this.

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoppc4xx: Add bootcount limit handling for APC405 boards
Matthias Fuchs [Fri, 25 Apr 2008 10:01:39 +0000 (12:01 +0200)]
ppc4xx: Add bootcount limit handling for APC405 boards

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoUse watchdog-aware functions when calculating hashes of images
Bartlomiej Sieka [Fri, 25 Apr 2008 10:10:09 +0000 (12:10 +0200)]
Use watchdog-aware functions when calculating hashes of images

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years agoUSB: fix more GCC 4.2.x aliasing warnings
Wolfgang Denk [Fri, 25 Apr 2008 10:44:08 +0000 (12:44 +0200)]
USB: fix more GCC 4.2.x aliasing warnings

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Markus Klotzbuecher <mk@denx.de>
16 years agolib_generic/crc32.c: add missing #include <watchdog.h>
Wolfgang Denk [Fri, 25 Apr 2008 10:41:53 +0000 (12:41 +0200)]
lib_generic/crc32.c: add missing #include <watchdog.h>

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agolib_generic/crc32.c: fix compile problem
Wolfgang Denk [Fri, 25 Apr 2008 09:52:21 +0000 (11:52 +0200)]
lib_generic/crc32.c: fix compile problem

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoppc4xx: Pass PCIe root-complex/endpoint configuration to Linux via the fdt
Stefan Roese [Tue, 22 Apr 2008 10:20:32 +0000 (12:20 +0200)]
ppc4xx: Pass PCIe root-complex/endpoint configuration to Linux via the fdt

The PCIe root-complex/endpoint setup as configured via the "pcie_mode"
environment variable will now get passed to the Linux kernel by setting
the device_type property of the PCIe device tree node. For normal root-
complex configuration it will keep its defaults value of "pci" and for
endpoint configuration it will get changed to "pci-endpoint".

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agolwmon5: watchdog POST fix
Yuri Tikhonov [Thu, 24 Apr 2008 08:30:53 +0000 (10:30 +0200)]
lwmon5: watchdog POST fix

Use the GPT0_MASKx registers as the temporary storage for watch-dog
timer POST test instead of GPT0_COMPx. The latter
(GPT0_COMP1..GPT0_COMP5) are used for the log-buffer header.

Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/lwmon5
Wolfgang Denk [Fri, 25 Apr 2008 09:32:01 +0000 (11:32 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/lwmon5

Conflicts:

common/cmd_bootm.c
common/cmd_log.c
include/common.h
post/board/lwmon5/Makefile
post/board/lwmon5/dsp.c
post/board/lwmon5/dspic.c
post/board/lwmon5/fpga.c
post/board/lwmon5/gdc.c
post/board/lwmon5/sysmon.c
post/board/lwmon5/watchdog.c

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-nand-flash
Wolfgang Denk [Fri, 25 Apr 2008 09:10:17 +0000 (11:10 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-nand-flash

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-at91
Wolfgang Denk [Fri, 25 Apr 2008 08:05:42 +0000 (10:05 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-at91

16 years agolib_ppc: Revert "Make MPC83xx one step closer to full relocation."
Kim Phillips [Mon, 21 Apr 2008 23:10:14 +0000 (18:10 -0500)]
lib_ppc: Revert "Make MPC83xx one step closer to full relocation."

This reverts commit 70431e8a7393b6b793f77957f95b999fc9a269b8 which has
proven problematic getting right from the start at least on 83xx and
4xx.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoRealining some header definitions.
Detlev Zundel [Fri, 18 Apr 2008 12:50:01 +0000 (14:50 +0200)]
Realining some header definitions.

Signed-off-by: Detlev Zundel <dzu@denx.de>
16 years agoNE2000: coding style cleanup
Jean-Christophe PLAGNIOL-VILLARD [Thu, 24 Apr 2008 05:57:16 +0000 (07:57 +0200)]
NE2000: coding style cleanup

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoqemu-mips.h: Add CFI support
Jean-Christophe PLAGNIOL-VILLARD [Tue, 22 Apr 2008 15:11:47 +0000 (00:11 +0900)]
qemu-mips.h: Add CFI support

CONFIG_ENV_OVERWRITE is also added.

This patch is originally created by Jean-Christophe PLAGNIOL-VILLARD.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agodoc/README.mips: Add MIPS notes
Shinya Kuribayashi [Tue, 22 Apr 2008 13:47:27 +0000 (22:47 +0900)]
doc/README.mips: Add MIPS notes

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agoAdd support for calculating hashes with watchdog triggering
Bartlomiej Sieka [Tue, 22 Apr 2008 10:27:56 +0000 (12:27 +0200)]
Add support for calculating hashes with watchdog triggering

Implement watchodg-aware variants of hash calculation functions:
- crc32_wd()
- md5_wd()
- sha1_csum_wd()
The above functions calculate the hash of the input buffer in chunks,
triggering the watchdog after processing each chunk. The chunk size
is given as a function call parameter.

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years agoqemu-mips: Cleanup whitespace, indentation, etc.
Shinya Kuribayashi [Wed, 23 Apr 2008 02:02:12 +0000 (11:02 +0900)]
qemu-mips: Cleanup whitespace, indentation, etc.

No functional change.

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

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

Bus and phys address are not always the same

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Introduced DIV_ROUND_UP and roundup taken from linux kernel.

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

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

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

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

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

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

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

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

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoARM: Davinci: Fix DM644x timer overflow handling and cleanup
Dirk Behme [Wed, 26 Mar 2008 08:53:29 +0000 (09:53 +0100)]
ARM: Davinci: Fix DM644x timer overflow handling and cleanup

Fix ARM based DaVinci DM644x timer overflow handling and cleanup timer code.

Changes:

- Remove *_masked() functions as noted by Wolfgang

- Adapt register naming to recent TI spec (sprue26, March 2007)

- Fix reset_timer() handling

- As reported by Pieter [1] the overflow fix introduced a delay of factor 16 (e.g 2 seconds became 32). While the overflow fix is basically okay, it missed to divide udelay by 16, too. Fix this.

[1] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/38179

- Remove software division of timer count value (DIV(x) macro) and do it in hardware (TIM_CLK_DIV).

Many thanks to Troy Kisky <troy.kisky@boundarydevices.com> and Pieter Voorthuijsen <pieter.voorthuijsen@Prodrive.nl> for the hints & testing!

Patch is compile tested with davinci_dvevm & sonata & schmoogie configuration and tested by Pieter on DaVinci EVM hardware.

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Acked-by: Pieter Voorthuijsen <pieter.voorthuijsen@Prodrive.nl>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
Wolfgang Denk [Tue, 22 Apr 2008 15:21:24 +0000 (17:21 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-ppc4xx

16 years agoAdded watchdog triggering calls in the "mtest" test function.
Sergei Poselenov [Wed, 9 Apr 2008 14:09:41 +0000 (16:09 +0200)]
Added watchdog triggering calls in the "mtest" test function.

Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
16 years agolwmon5 watchdog: limit trigger rate
Yuri Tikhonov [Sun, 6 Apr 2008 17:19:14 +0000 (19:19 +0200)]
lwmon5 watchdog: limit trigger rate

Limit the rate of h/w watch-dog triggering on the LWMON5 board by
the CONFIG_WD_MAX_RATE value.

Note that an earlier version of this patch which used microseconds
instead of ticks dis not work. The problem was that we used
usec2ticks() to convert microseconds into ticks. usec2ticks() uses
get_tbclk(), which in turn calls get_sys_info(). It turns out that
this function does a lot of prolonged operations (like divisions)
which take too much time so we do not trigger the watchdog in time,
and it resets the system.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
16 years agoPOST: move CONFIG_POST to Makefiles
Yuri Tikhonov [Mon, 31 Mar 2008 08:51:37 +0000 (10:51 +0200)]
POST: move CONFIG_POST to Makefiles

Introduce the new logical option CONFIG_HAS_POST which is set when the
platform has CONFIG_POST set. Use CONFIG_HAS_POST in the post/ Makefiles
to determine should the POST libs be compiled for the selected target
platform, or not.

To avoid breaking u-boot linking process, the empty post/libpost.a file is
created for platforms which do not have POSTs.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoPOST: preparations for moving CONFIG_POST to Makefiles
Yuri Tikhonov [Mon, 31 Mar 2008 08:49:34 +0000 (10:49 +0200)]
POST: preparations for moving CONFIG_POST to Makefiles

Remove CONFIG_POST ifdefs from the post/ source files.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoppc4xx: Fix Canyonlands and Glacier default environment for fdt usage
Stefan Roese [Tue, 22 Apr 2008 12:14:20 +0000 (14:14 +0200)]
ppc4xx: Fix Canyonlands and Glacier default environment for fdt usage

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This patch adds two missing free()s.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
16 years agoPATCH - Fix oob data copied into supplied buffer
Troy Kisky [Mon, 24 Sep 2007 23:41:43 +0000 (16:41 -0700)]
PATCH - Fix oob data copied into supplied buffer

This patch correctly sets the oobavail variable
and fixes a bug where the oob data was not valid when
there where multiple groups in oobfree.

First segment fixes a typo
Second segment fixes a bug where oob data may be copied incorrectly.
Third segment adds an error message when exiting due to write protect.
Forth segment fixes a bug where oobavail may be set incorrectly.

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

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

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

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

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

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

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

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

Update immap_85xx.h to include the GUTS PORDEVSR2 register.

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

    Change env_get_char from a global function ptr to a function.

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agonand_spl: Update nand_spl to support 2k page size NAND devices
Stefan Roese [Tue, 8 Apr 2008 08:31:00 +0000 (10:31 +0200)]
nand_spl: Update nand_spl to support 2k page size NAND devices

This patch adds support for booting from 2k page sized NAND device
(e.g. Micron 29F2G08AAC).

Tested on AMCC Canyonlands.

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>