project/bcm63xx/u-boot.git
13 years agopowerpc/85xx: Remove support for PM854/PM856 boards
Kumar Gala [Tue, 14 Dec 2010 04:02:08 +0000 (22:02 -0600)]
powerpc/85xx: Remove support for PM854/PM856 boards

The PM854/PM856 boards are no longer maintained and thus we are removing
support for them.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agopowerpc/85xx: Removed support for MPC8540EVAL board
Kumar Gala [Tue, 14 Dec 2010 04:01:01 +0000 (22:01 -0600)]
powerpc/85xx: Removed support for MPC8540EVAL board

The MPC8540EVAL board is no longer maintained and thus we are removing
support for it.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Removed support for ATUM8548 board
Kumar Gala [Tue, 14 Dec 2010 03:53:09 +0000 (21:53 -0600)]
powerpc/85xx: Removed support for ATUM8548 board

The ATUM8548 board is no longer maintained and thus we are removing
support for it.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Wolfgang Denk [Wed, 12 Jan 2011 22:59:53 +0000 (23:59 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-sh

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-ubi
Wolfgang Denk [Wed, 12 Jan 2011 22:57:05 +0000 (23:57 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-ubi

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-cfi-flash
Wolfgang Denk [Wed, 12 Jan 2011 22:55:41 +0000 (23:55 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-cfi-flash

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Wed, 12 Jan 2011 22:54:32 +0000 (23:54 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-microblaze
Wolfgang Denk [Wed, 12 Jan 2011 22:46:37 +0000 (23:46 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-microblaze

13 years agoRevert "boot cmds: convert to getenv_yesno() with autostart"
Wolfgang Denk [Tue, 11 Jan 2011 19:56:34 +0000 (20:56 +0100)]
Revert "boot cmds: convert to getenv_yesno() with autostart"

This reverts commit 5a442c0addc69d0c4b58e98e5aec1cf07576debb.

This commit changed the behaviour of getenv_yesno() (both the default
behaviour and the documented behaviour for abbreviated arguments)
which resulted in problems in several areas.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoUBIFS: Fix dereferencing type-punned pointer compiler warning
Dirk Behme [Sat, 25 Dec 2010 09:58:46 +0000 (10:58 +0100)]
UBIFS: Fix dereferencing type-punned pointer compiler warning

Fix compiler warning

In file included from ubifs.h:2137:0,
                 from ubifs.c:26:
misc.h: In function 'ubifs_idx_key':
misc.h:263:26: warning: dereferencing type-punned pointer will break strict-aliasing rules

seen with gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50).

No functional change.

CC: Stefan Roese <sr@denx.de>
Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoxilinx-ppc4xx-generic: Fix Makefile to work with MAKEALL
Ricardo Ribalda Delgado [Fri, 24 Dec 2010 00:38:10 +0000 (01:38 +0100)]
xilinx-ppc4xx-generic: Fix Makefile to work with MAKEALL

config.mk only mkdirs $(obj), but we have objects shared with other
boards located on other dirs.

This patch mkdirs the needed dirs for the xlnx-generic boards.

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoadd AM29F400BB to table of supported legacy flashs
David Müller [Tue, 21 Dec 2010 09:09:56 +0000 (10:09 +0100)]
add AM29F400BB to table of supported legacy flashs

Signed-off-by: David Mueller <d.mueller@elsoft.ch>
Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoppc4xx: Fix compilation breakage in miiphy.c
Stefan Roese [Mon, 10 Jan 2011 11:56:13 +0000 (12:56 +0100)]
ppc4xx: Fix compilation breakage in miiphy.c

Patch 8ef583a0 [miiphy: convert to linux/mii.h] introduced a small
problem in the ppc4xx miiphy.c version. This patch fixes this problem.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoLAN91C*: Change chip names to fit the eth_device struct size
Yanjun Yang [Sun, 26 Dec 2010 02:40:54 +0000 (10:40 +0800)]
LAN91C*: Change chip names to fit the eth_device struct size

The eth_device.name field length is limited by NAMESIZE,
which is 16 defined in include/net.h. Unfortunately, two
of the names in lan91c96.c are beyond that.

Signed-off-by: YanJun Yang <yangyj.ee@gmail.com>
13 years agoPPC4xx: Reduce NAND TLB window size on Canyonlands
Felix Radensky [Sun, 2 Jan 2011 09:07:34 +0000 (11:07 +0200)]
PPC4xx: Reduce NAND TLB window size on Canyonlands

16MiB NAND TLB window is way too big. Reduce it to 1KiB.

Signed-off-by: Felix Radensky <felix@embedded-sol.com>
Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoppc4xx: Remove PCI support from lwmon5
Stefan Roese [Tue, 21 Dec 2010 18:03:44 +0000 (19:03 +0100)]
ppc4xx: Remove PCI support from lwmon5

PCI is not used at all on lwmon5. So lets remove it. It saves space and
reduces boot time a bit (approx. 50ms).

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agomicroblaze: Fix bd_info pointer
Michal Simek [Tue, 21 Dec 2010 08:32:44 +0000 (09:32 +0100)]
microblaze: Fix bd_info pointer

Patch "Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value"
(sha1: 25ddd1fb0a2281b182529afbc8fda5de2dc16d96)
introduce GENERATED_GBL_DATA_SIZE which is sizeof aligned gd_t
(currently 0x40).
Microblaze configs used 0x40(128) because this place also contained
board info structure which lies on the top of ram.

U-Boot is placed to the top of the ram (for example 0xd7ffffff)
and bd structure was moved out of ram.

This patch is fixing this scheme with GENERATED_BD_INFO_SIZE
which swap global data and board info structures.

For example:
Current: gd 0xd7ffffc0, bd 0xd8000000
Fixed:   gd 0xd7ffffc0, bd 0xd7ffff90

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Disabling interrupt should return 1 if was enabled
Michal Simek [Tue, 21 Dec 2010 07:30:39 +0000 (08:30 +0100)]
microblaze: Disabling interrupt should return 1 if was enabled

Microblaze implement enable/disable interrupts through MSR
that's why disable_interrupts function should return 1 when interrupt
was enabled. Return 0 when interrupt was disabled.

Signed-off-by: John Linn <john.linn@xilinx.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agoftgmac100: support of gigabit eth ftgmac100
Macpaul Lin [Tue, 21 Dec 2010 08:59:46 +0000 (16:59 +0800)]
ftgmac100: support of gigabit eth ftgmac100

Add Faraday's ftgmac100 (gigabit ethernet)
MAC controller's driver.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoMAINTAINERS: sort Blackfin entries
Mike Frysinger [Sun, 19 Dec 2010 22:14:14 +0000 (17:14 -0500)]
MAINTAINERS: sort Blackfin entries

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoasm-offsets: generate bd_t size
Mike Frysinger [Fri, 24 Dec 2010 17:57:23 +0000 (12:57 -0500)]
asm-offsets: generate bd_t size

Some ports set up the board info structure at the same time as the global
data structure, and largely keep them together.  So generate a define for
the board info struct too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agomiiphy: convert to linux/mii.h
Mike Frysinger [Thu, 23 Dec 2010 20:40:12 +0000 (15:40 -0500)]
miiphy: convert to linux/mii.h

The include/miiphy.h header duplicates a lot of things from linux/mii.h.
So punt all the things that overlap to keep the API simple and to make
merging between U-Boot and Linux simpler.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agocfi_flash: avoid flash_verbose when possible
Mike Frysinger [Wed, 22 Dec 2010 14:41:13 +0000 (09:41 -0500)]
cfi_flash: avoid flash_verbose when possible

The flash_verbose logic is only used by the CFI MTD layer, so if we aren't
using that, disable the logic completely.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agocmd editing: mark erase/tab seqs constant
Mike Frysinger [Wed, 22 Dec 2010 14:40:45 +0000 (09:40 -0500)]
cmd editing: mark erase/tab seqs constant

These strings are only read, so no need to have them be writable.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agocmd_mem: localize state variables
Mike Frysinger [Wed, 22 Dec 2010 14:40:29 +0000 (09:40 -0500)]
cmd_mem: localize state variables

These "last" variables aren't used outside of this file, so add static.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoload_addr: move to common env code
Mike Frysinger [Tue, 21 Dec 2010 19:08:27 +0000 (14:08 -0500)]
load_addr: move to common env code

Rather than keep the load_addr definition with the bootm code (which
just happens to use this), move it to the common env code.  This way
we can disable bootm support completely while retaining load_addr
usage with many other commands.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoconfig_cmd_defaults.h: new header for common u-boot command defaults
Mike Frysinger [Mon, 20 Dec 2010 23:57:09 +0000 (18:57 -0500)]
config_cmd_defaults.h: new header for common u-boot command defaults

We have config_defaults.h which are random configuration settings that
everyone gets by default.  We also have config_cmd_default.h which is a
recommended list of defaults but boards have to opt into.  Now we have
config_cmd_defaults.h which is a list of defaults that everyone gets
and has to actively opt out of.

For now, we populate it with the bootm command which previously was
unable to be disabled.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoClarify applicable licensing terms in COPYING file.
Wolfgang Denk [Sat, 18 Dec 2010 21:00:41 +0000 (22:00 +0100)]
Clarify applicable licensing terms in COPYING file.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoenv: re-add support for auto-completion
Mike Frysinger [Fri, 17 Dec 2010 21:51:59 +0000 (16:51 -0500)]
env: re-add support for auto-completion

Currently, only basic completion is supported (no globs), but this is
what we had previously.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agotqm5200.c: fix warning: 'edid_buf' defined but not used
Wolfgang Denk [Thu, 23 Dec 2010 18:57:31 +0000 (19:57 +0100)]
tqm5200.c: fix warning: 'edid_buf' defined but not used

Commit 98e6956 "mpc52xx: add support for tqm52xx based board charon"
caused build warnings on some systems.  Fix these.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
13 years agoexamples: update do_reset prototype
Mike Frysinger [Sun, 19 Dec 2010 22:16:53 +0000 (17:16 -0500)]
examples: update do_reset prototype

One more place that was missed during the do_reset() unification.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosh: Add support T-SH7706LSR board
Nobuhiro Iwamatsu [Thu, 6 Jan 2011 03:38:01 +0000 (12:38 +0900)]
sh: Add support T-SH7706LSR board

This patch supports T-SH7706LSR board.
This is constitution almost same as shmin (T-SH7706LAN).
Therefore, most functions work by a change of the setting of config.

http://web.kyoto-inet.or.jp/people/takagaki/T-SH7706/T-SH7706LSR.htm

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Fix build of shmin board
Nobuhiro Iwamatsu [Thu, 6 Jan 2011 03:20:46 +0000 (12:20 +0900)]
sh: Fix build of shmin board

Change lib$(BOARD).a to lib$(BOARD).o

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: r2dplus: Add support zimageboot
Nobuhiro Iwamatsu [Wed, 8 Dec 2010 05:01:12 +0000 (14:01 +0900)]
sh: r2dplus: Add support zimageboot

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: sh7785lcr: Add support zimageboot
Nobuhiro Iwamatsu [Wed, 8 Dec 2010 05:00:24 +0000 (14:00 +0900)]
sh: sh7785lcr: Add support zimageboot

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Add support zimageboot command for Renesas SH
Nobuhiro Iwamatsu [Wed, 8 Dec 2010 04:49:12 +0000 (13:49 +0900)]
sh: Add support zimageboot command for Renesas SH

Curent U-Boot can boot zImage by use the "go" command.
But this is not right method. And this method can not set command-line
to linux kernel.
zimageboot sets command-line in environment of u-boot in linux kernel,
and provides function to boot it.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
13 years agosh: Divided macro for zImage and add asm/zimage.h
Nobuhiro Iwamatsu [Wed, 8 Dec 2010 04:46:36 +0000 (13:46 +0900)]
sh: Divided macro for zImage and add asm/zimage.h

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
13 years agosh: Delete the function that was not necessary
Nobuhiro Iwamatsu [Wed, 8 Dec 2010 04:42:18 +0000 (13:42 +0900)]
sh: Delete the function that was not necessary

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
13 years agosh: serial_sh: Fix build in serial_sh
Nobuhiro Iwamatsu [Wed, 24 Nov 2010 04:42:13 +0000 (13:42 +0900)]
sh: serial_sh: Fix build in serial_sh

The serial of ap325rxa has it of two kinds, and the setting of
the clock is different.
Because there was a problem by function to judge serial kind,
this revised it.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
13 years agosh: sh7722: Fix multiple definition of PSDR in serial_sh
Nobuhiro Iwamatsu [Wed, 24 Nov 2010 04:24:33 +0000 (13:24 +0900)]
sh: sh7722: Fix multiple definition of PSDR in serial_sh

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
13 years agosh: Remove SCIF/SCI register infomation
Nobuhiro Iwamatsu [Mon, 22 Nov 2010 06:56:43 +0000 (15:56 +0900)]
sh: Remove SCIF/SCI register infomation

The register information of SCIF/SCI was compiled
by drivers/serial/serial_sh.h.
Therefore, these are not necessary.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Add support showing KByte of flash memory size
Nobuhiro Iwamatsu [Tue, 26 Oct 2010 11:23:53 +0000 (20:23 +0900)]
sh: Add support showing KByte of flash memory size

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Add support shmin board
Nobuhiro Iwamatsu [Sun, 24 Oct 2010 18:12:24 +0000 (03:12 +0900)]
sh: Add support shmin board

This adds support for the SHMIN SH7706 board(T-SH7706LAN).
The CPU of this board is SH7706.
There are SDRAM of 32M byte, Flash memory of 512K byte, Serial,
10Base Ether and MMC.

http://web.kyoto-inet.or.jp/people/takagaki/T-SH7706/T-SH7706.htm

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Add support SH7706
Nobuhiro Iwamatsu [Sun, 24 Oct 2010 17:58:21 +0000 (02:58 +0900)]
sh: Add support SH7706

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: serial: Update serial driver for SH
Nobuhiro Iwamatsu [Mon, 25 Oct 2010 18:55:15 +0000 (03:55 +0900)]
sh: serial: Update serial driver for SH

I copied the setting of CPU from Linux kernel and commonized it.
By this, we can communalize a kernel and information.
And added the serial setting of many CPU's.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agocmd_net.c: fix build breakage
Wolfgang Denk [Thu, 23 Dec 2010 16:02:18 +0000 (17:02 +0100)]
cmd_net.c: fix build breakage

Commit 722b061 "autocomplete: remove runtime handler install" caused
some boards (like NETTA2_V2) to break with errors like these:

cmd_net.c:296: error: expected expression before ',' token

Fix this.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
13 years agoMerge branch 'next' of ../next
Wolfgang Denk [Wed, 22 Dec 2010 20:16:17 +0000 (21:16 +0100)]
Merge branch 'next' of ../next

13 years agoPrepare v2010.12
Wolfgang Denk [Wed, 22 Dec 2010 19:22:14 +0000 (20:22 +0100)]
Prepare v2010.12

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoMove DECLARE_GLOBAL_DATA_PTR to file scope
John Rigby [Tue, 21 Dec 2010 01:27:51 +0000 (18:27 -0700)]
Move DECLARE_GLOBAL_DATA_PTR to file scope

It can be optimised out by the compiler otherwise resulting
in obscure errors like a board not booting.

This has been documented in README since 2006 when these were
first fixed up for GCC 4.x.

Signed-off-by: John Rigby <john.rigby@linaro.org>
Fix some additional places.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-By: Albert ARIBAUD <albert.aribaud@free.fr>
13 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sat, 18 Dec 2010 22:15:40 +0000 (23:15 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

13 years agoOMAP3: EVM: Convert omap3_evm_version to u32
Dirk Behme [Sat, 18 Dec 2010 06:40:28 +0000 (07:40 +0100)]
OMAP3: EVM: Convert omap3_evm_version to u32

Convert the variable omap3_evm_version to u32 to work around
some broken linkers from older tool chains. E.g. CodeSourcery's
2009q1-203 ld 2.19.51.20090205. Without this, these linkers
stop linking 'omap3_evm' or at least issue a warning. Like

arm-none-linux-gnueabi-ld: section .bss [8003f5e0 -> 8007e337] overlaps section .rel.dyn [8003f5e0 -> 80044e57]
arm-none-linux-gnueabi-ld: section .dynsym [80044e58 -> 80044ef7] overlaps section.bss [8003f5e0 -> 8007e337]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x8003f5e0 overlaps previous sections

CC: Sanjeev Premi <premi@ti.com>
Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
13 years agofsl_esdhc: Fix the voltage validation process
Li Yang [Thu, 25 Nov 2010 17:06:09 +0000 (17:06 +0000)]
fsl_esdhc: Fix the voltage validation process

The current code use all the voltage range support by the host
controller to do the validation.  This will cause problem when
the host supports Low Voltage Range.  Change the validation
voltage to be based on board setup.

Signed-off-by: Li Yang <leoli@freescale.com>
Tested-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl_esdhc: Fix max clock frequency
Jerry Huang [Thu, 25 Nov 2010 17:06:10 +0000 (17:06 +0000)]
fsl_esdhc: Fix max clock frequency

The max clock of MMC is 52MHz

Signed-off-by: Jerry Huang <Changm-Ming.Huang@freescale.com>
Tested-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl_esdhc: Use mmc_set_clock to set initial speed
Jerry Huang [Thu, 25 Nov 2010 17:06:07 +0000 (17:06 +0000)]
fsl_esdhc: Use mmc_set_clock to set initial speed

After booting the u-boot, and first using some SD card (such as Sandisk 2G SD
card), because the field 'clock' of struct mmc is zero, this will cause
the read transfer is always active and SDHC DATA line is always active,
therefore, driver can't handle the next command.

Therefore, we use mmc_set_clock to setup both the data structure and HW
to the initial clock speed of 400000Hz.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Tested-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agop1022ds: enable reginfo command
Matthew McClintock [Fri, 17 Dec 2010 23:26:41 +0000 (17:26 -0600)]
p1022ds: enable reginfo command

Add reginfo as a default command for p1022ds boards

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl_esdhc: Fix the voltage validation process
Li Yang [Thu, 25 Nov 2010 17:06:09 +0000 (17:06 +0000)]
fsl_esdhc: Fix the voltage validation process

The current code use all the voltage range support by the host
controller to do the validation.  This will cause problem when
the host supports Low Voltage Range.  Change the validation
voltage to be based on board setup.

Signed-off-by: Li Yang <leoli@freescale.com>
Tested-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl_esdhc: Fix max clock frequency
Jerry Huang [Thu, 25 Nov 2010 17:06:10 +0000 (17:06 +0000)]
fsl_esdhc: Fix max clock frequency

The max clock of MMC is 52MHz

Signed-off-by: Jerry Huang <Changm-Ming.Huang@freescale.com>
Tested-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl_esdhc: Use mmc_set_clock to set initial speed
Jerry Huang [Thu, 25 Nov 2010 17:06:07 +0000 (17:06 +0000)]
fsl_esdhc: Use mmc_set_clock to set initial speed

After booting the u-boot, and first using some SD card (such as Sandisk 2G SD
card), because the field 'clock' of struct mmc is zero, this will cause
the read transfer is always active and SDHC DATA line is always active,
therefore, driver can't handle the next command.

Therefore, we use mmc_set_clock to setup both the data structure and HW
to the initial clock speed of 400000Hz.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Tested-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoNAND: add NAND_CMD_PARAM (0xec) definition
Florian Fainelli [Fri, 10 Dec 2010 12:16:41 +0000 (12:16 +0000)]
NAND: add NAND_CMD_PARAM (0xec) definition

This command is used to read the device ONFI parameters page.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
13 years agoonenand: add yaffs write command
Lei Wen [Thu, 2 Dec 2010 05:17:55 +0000 (05:17 +0000)]
onenand: add yaffs write command

Yaffs image require to use the oob to store some info, so when we
burn the yaffs image, we need to also write the image's oob part
into flash.

This patch add addition suffix to onenand write to give the uboot
the power to directly burn the yaffs image to onenand.

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoMTD/NAND: fix nand_base.c to use get_timer() correctly
Reinhard Meyer [Thu, 18 Nov 2010 03:14:26 +0000 (03:14 +0000)]
MTD/NAND: fix nand_base.c to use get_timer() correctly

This is part of the timer cleanup effort.
In the future we only use get_timer() in its intended way to
program timeout loops.
reset_timer() shall not be used anymore.

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agonand: constify id/manu tables
Mike Frysinger [Wed, 20 Oct 2010 01:15:21 +0000 (01:15 +0000)]
nand: constify id/manu tables

These id tables need not be writable.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agovideo/mx3fb: fix clock divider
Stefano Babic [Thu, 16 Dec 2010 11:41:47 +0000 (12:41 +0100)]
video/mx3fb: fix clock divider

Fix clock divider for COM57H5M10XRC display.
The previous setting caused flicker.

Tested on Qong (EVBLite with COM57H5M10XRC).

Signed-off-by: Stefano Babic <sbabic@denx.de>
Acked-by: Wolfgang Denk <wd@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
13 years agoconfig.mk: unify duplicated flag setting
Mike Frysinger [Wed, 15 Dec 2010 12:17:31 +0000 (07:17 -0500)]
config.mk: unify duplicated flag setting

Multiple rules are using the expanded AFLAGS/CFLAGS settings and some are
getting so long that the rules need to be line wrapped.  So unify them in
one variable, use that variable in the rule, and then unwrap things.  This
makes the actual `make` output nicer as it doesn't have line continuations
in it anymore.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agopowerpc: fix register usage in some inline assembly code
Timur Tabi [Tue, 14 Dec 2010 23:18:51 +0000 (17:18 -0600)]
powerpc: fix register usage in some inline assembly code

In some usages of inline assembly, hard-coded registers were
specified when a scratch register should have been used instead.

Signed-off-by: Timur Tabi <timur@freescale.com>
13 years agohashtable: drop all non-reentrant versions
Mike Frysinger [Wed, 8 Dec 2010 11:26:04 +0000 (06:26 -0500)]
hashtable: drop all non-reentrant versions

The non-reentrant versions of the hashtable functions operate on a single
shared hashtable.  So if two different people try using these funcs for
two different purposes, they'll cause problems for the other.

Avoid this by converting all existing hashtable consumers over to the
reentrant versions and then punting the non-reentrant ones.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago74xx_7xx/mpc86xx/ppmc7xx: Fix do_reset() declaration
Peter Tyser [Fri, 3 Dec 2010 16:28:47 +0000 (10:28 -0600)]
74xx_7xx/mpc86xx/ppmc7xx: Fix do_reset() declaration

The following commit:

commit 882b7d726febe65579d6502c271412ecb05821d7
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Oct 20 03:41:17 2010 -0400

    do_reset: unify duplicate prototypes

missed the 74xx_7xx and mpc86xx arches and the ppmc7xx board do_reset()
functions which resulted in build errors such as:
  cpu.c:128: error: conflicting types for 'do_reset'
  include/command.h:102: error: previous declaration of 'do_reset' was here

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
13 years agoPowerPC, nand_spl: Add relocation support for -fpic
Joakim Tjernlund [Fri, 3 Dec 2010 16:30:38 +0000 (17:30 +0100)]
PowerPC, nand_spl: Add relocation support for -fpic

By rearranging the linker script we get support for
relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope
matching the rest of PowerPC

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Acked-by: Scott Wood <scottwood@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
13 years agoPowerPC: Add relocation support for -fpic
Joakim Tjernlund [Fri, 3 Dec 2010 16:30:37 +0000 (17:30 +0100)]
PowerPC: Add relocation support for -fpic

By rearranging the linker script we get support for
relocation of -fpic for free.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Acked-by: Scott Wood <scottwood@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
13 years agoRTC driver for PT7C4338 chip.
Priyanka Jain [Tue, 26 Oct 2010 09:22:19 +0000 (14:52 +0530)]
RTC driver for PT7C4338 chip.

PT7C4338 chip is being manufactured by Pericom Technology Inc.
It is a serial real-time clock which provides:
1)Low-power clock/calendar.
2)Programmable square-wave output.
It has 56 bytes of nonvolatile RAM.

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Acked-by: Timur Tabi <timur@freescale.com>
13 years agompc52xx, charon: change mtd default partitions
Heiko Schocher [Fri, 17 Dec 2010 09:11:27 +0000 (10:11 +0100)]
mpc52xx, charon: change mtd default partitions

New default partitions on nor flash:

640k   (firmware)
1408k  (kernel)
2m     (initrd)
4m     (small-fs)
24320k (big-fs)
256k   (dts)

Signed-off-by: Heiko Schocher <hs@denx.de>
13 years agompc5200, tqm5200: correct MTDIDS_DEFAULT to fit with name linux assigns
Heiko Schocher [Fri, 17 Dec 2010 09:11:20 +0000 (10:11 +0100)]
mpc5200, tqm5200: correct MTDIDS_DEFAULT to fit with name linux assigns

Signed-off-by: Heiko Schocher <hs@denx.de>
13 years agoMerge branch 'next' of git://www.denx.de/git/u-boot-cfi-flash into next
Wolfgang Denk [Fri, 17 Dec 2010 19:11:54 +0000 (20:11 +0100)]
Merge branch 'next' of git://denx.de/git/u-boot-cfi-flash into next

13 years agoMerge branch 'next' of git://www.denx.de/git/u-boot-ppc4xx into next
Wolfgang Denk [Fri, 17 Dec 2010 19:10:49 +0000 (20:10 +0100)]
Merge branch 'next' of git://denx.de/git/u-boot-ppc4xx into next

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Fri, 17 Dec 2010 19:02:05 +0000 (20:02 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

13 years agoMerge branch 'for-upstream' of git://git.denx.de/u-boot-atmel
Wolfgang Denk [Fri, 17 Dec 2010 18:55:55 +0000 (19:55 +0100)]
Merge branch 'for-upstream' of git://git.denx.de/u-boot-atmel

13 years agosf: winbond: add support for W25Q16/32/128 parts
Wojtek Skulski [Tue, 7 Dec 2010 06:07:45 +0000 (01:07 -0500)]
sf: winbond: add support for W25Q16/32/128 parts

While we're here, cut out the useless id defines too.

Signed-off-by: Wojtek Skulski <skulski@pas.rochester.edu>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosf: new driver for EON devices
Chong Huang [Tue, 30 Nov 2010 08:33:25 +0000 (03:33 -0500)]
sf: new driver for EON devices

Signed-off-by: Chong Huang <chuang@ucrobotics.com>
Signed-off-by: Haitao Zhang <minipanda@linuxrobot.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoPrepare v2010.12-rc3
Wolfgang Denk [Fri, 17 Dec 2010 09:15:38 +0000 (10:15 +0100)]
Prepare v2010.12-rc3

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoCoding style (white space) cleanup.
Wolfgang Denk [Fri, 17 Dec 2010 09:14:09 +0000 (10:14 +0100)]
Coding style (white space) cleanup.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Fri, 17 Dec 2010 09:10:20 +0000 (10:10 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

13 years agoDaVinci DM6467: Add ARM Relocation Support
Sandeep Paulraj [Sun, 12 Dec 2010 01:38:57 +0000 (20:38 -0500)]
DaVinci DM6467: Add ARM Relocation Support

Add ARM Relocation Support

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci Schmoogie: Add ARM Relocation Support
Sandeep Paulraj [Sun, 12 Dec 2010 01:38:35 +0000 (20:38 -0500)]
DaVinci Schmoogie: Add ARM Relocation Support

Add ARM Relocation Support

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci sffsdr: Add ARM Relocation Support
Sandeep Paulraj [Sun, 12 Dec 2010 01:38:12 +0000 (20:38 -0500)]
DaVinci sffsdr: Add ARM Relocation Support

Add ARM Relocation Support

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci Sonata: Add ARM Relocation Support
Sandeep Paulraj [Sun, 12 Dec 2010 01:37:54 +0000 (20:37 -0500)]
DaVinci Sonata: Add ARM Relocation Support

Add ARM Relocation Support

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci: Config cleanup
Sandeep Paulraj [Sun, 12 Dec 2010 01:30:34 +0000 (20:30 -0500)]
DaVinci: Config cleanup

Some DaVinci boards are using flags that are no longer valid
So remove them.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agocfi_flash: Add optional config register write to cfi-detection
Stefan Roese [Mon, 25 Oct 2010 16:31:48 +0000 (18:31 +0200)]
cfi_flash: Add optional config register write to cfi-detection

This patch adds the possibility to (optinally) write to the
flash configuration register. The Intel style CFI chips support
such a register that can be used to configure the operation
mode to a non-default value.

This method will be used by the t3corp board, which needs to
configure the DS617 Xilinx flash for async read mode.

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agocfi_flash: Use flash_read32() in sector_erased()
Stefan Roese [Mon, 25 Oct 2010 16:31:39 +0000 (18:31 +0200)]
cfi_flash: Use flash_read32() in sector_erased()

The function sector_erased() is modified to not use pointer
access, but to use the correct accessor functions. This fixes a
problem on the t3corp board with the Xilinx DS617 flash chips. Here
a board specific accessor function is needed to read from flash
in 32bit mode. This patch enables such an operation mode.

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agocfi_flash: Fix problems with status/id read mode
Stefan Roese [Mon, 25 Oct 2010 16:31:29 +0000 (18:31 +0200)]
cfi_flash: Fix problems with status/id read mode

This patch adds some calls to set the flash chip in the read-status-
register- or read-id-mode before the corresponding register is
read back. This problem was detected while porting the common CFI
driver to support the Xilinx DS617 flash chips.

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoxilinx-ppc4xx-generic: Use common u-boot.lds
Ricardo Ribalda Delgado [Tue, 7 Dec 2010 13:27:56 +0000 (14:27 +0100)]
xilinx-ppc4xx-generic: Use common u-boot.lds

Use common ppc4xx linker script for xilinx ppc440 and ppc405 related boards.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoppc4xx/POST: Change ethernet test loop count to a default of 10
Stefan Roese [Fri, 26 Nov 2010 18:17:40 +0000 (19:17 +0100)]
ppc4xx/POST: Change ethernet test loop count to a default of 10

This patch changes the PPC4xx ethernet POST loop test count from
currently 192 (256 - 64) to a default of 10. While doing this the max
frame size is increased. Each loop run uses a different frame size,
starting with a max of 1514 bytes, down to 64. The default loop
count of 10 can be overriden using CONFIG_SYS_POST_ETH_LOOPS in the
board config header.

The TEST_NUM loop has been removed as it was never used.

The main reason for this change is to reduce the boot time on boards
using this POST test, like the lwmon5 board. This change reduces the
boot time by about 600ms on the lwmon5 board.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agoppc4xx: Update lwmon5 board support
Stefan Roese [Fri, 26 Nov 2010 14:45:48 +0000 (15:45 +0100)]
ppc4xx: Update lwmon5 board support

This patch includes the following changes for the lwmon5 board support:

- Enable cache in SDRAM
- Use common EHCI driver instead of the PPC4xx specific OHCI driver
  This can be done since only high-speed devices are connected.
- Remove cached TLB entry again after ECC setup
- Use correct define for cache enabling
  (CONFIG_4xx_DCACHE instead of CONFIG_SYS_ENABLE_SDRAM_CACHE)
- Enable FIT image support

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoppc4xx: Clarify comment about boot chip-select in start.S
Stefan Roese [Fri, 26 Nov 2010 14:43:17 +0000 (15:43 +0100)]
ppc4xx: Clarify comment about boot chip-select in start.S

Ths old comment was quite screwed up. Replace it with a new version
that should be a bit more descriptive.

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoppc4xx: t3corp: Add support for the Xilinx DS617 flash chip
Stefan Roese [Mon, 25 Oct 2010 16:32:08 +0000 (18:32 +0200)]
ppc4xx: t3corp: Add support for the Xilinx DS617 flash chip

The t3corp board has an Xilinx DS617 flash chip connected to the
onboard FPGA. This patch adds support for these chips. Board
specific flash accessor functions are needed, since the chips
can only be read correctly in 16bit mode.

Additionally the FPGA chip-selects are configured for device-paced
transfers (ready is enabled).

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoAT91RM9200: fix AT91_PMC_MCKR_MDIV_* defines for this CPU
clagix@gmail.com [Mon, 6 Dec 2010 08:03:37 +0000 (08:03 +0000)]
AT91RM9200: fix AT91_PMC_MCKR_MDIV_* defines for this CPU

Signed-off-by: Guido Classen <clagix@gmail.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: fix TOP9000 build problem and change CONFIG_SYS_TEXT_BASE
Reinhard Meyer [Thu, 9 Dec 2010 09:07:31 +0000 (10:07 +0100)]
AT91: fix TOP9000 build problem and change CONFIG_SYS_TEXT_BASE

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agopowerpc/nand spl: link libgcc
Scott Wood [Fri, 10 Dec 2010 21:13:39 +0000 (15:13 -0600)]
powerpc/nand spl: link libgcc

Recent GCC (4.4+) performs out-of-line epilogues in some cases, when
optimizing for size.  It causes a link error for _restgpr_30_x (and similar)
if libgcc is not linked.

It actually increases size with very small binaries, due to the fixed size
of the out-of-line code, and not having any functions that actually need to
restore more than 2 or 3 registers.  But I don't see a way to turn it off,
other than asking GCC to optimize for speed -- which may also increase
size for some boards.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Thu, 16 Dec 2010 22:16:02 +0000 (23:16 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

13 years agoMAINTAINERS: Transfer openrd_base maintainership to Prafulla Wadaskar
Simon Kagstrom [Sat, 11 Dec 2010 18:08:57 +0000 (23:38 +0530)]
MAINTAINERS: Transfer openrd_base maintainership to Prafulla Wadaskar

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
13 years agoArmada100: Add Board Support for Marvell Aspenite-DB
Prafulla Wadaskar [Mon, 29 Nov 2010 11:31:27 +0000 (17:01 +0530)]
Armada100: Add Board Support for Marvell Aspenite-DB

Aspenite is a Development Board for ASPEN/ARMADA168(88AP168) with
* Processor upto 1.2GHz
        * Parallel 1Gb x8 DDR2-1066 MHz
        * 16 Mb x16 NOR, 4Gb x8 SLC NAND, footprint for SPI NOR
        * Footprints for eMMC/eSD NAND & MMC x8 card
        * 4-in-1 card reader (xD, MMC/SD/MS Pro), CF True IDE socket
        * SEAF memory board, subset of PISMO2
    With Peripherals:
        * 4.3” WVGA 24-bit LCD
        * Audio codecs (AC97 & I2S), TSI
        * VGA camera
        * Video in via 3 RCA jacks, and HDMI type C out
        * Marvell 88W8688 802.11bg/BT module
        * GPS RF IC
        * Dual analog mics & speakers, headset jack, LED, ambient light sensor
        * USB2.0 HS host  (A), OTG (micro AB)
        * FE PHY, PCIE Mini Card  slot
        * GPIO, GPIO expander with DIP switches for easier selection UART serial over USB, CIR

This patch adds basic board support with DRAM and UART functionality
The patch is tested for boot from DRAM using XDB

Signed-off-by: Mahavir Jain <mjain@marvell.com>
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>