beagleboard-validation:naveedasmats-u-boot.git
7 years agoOMAP3: beagle: add WIP support for the beagleboard toys wl127xx board koen/beagle-2010.12
Koen Kooi [Mon, 20 Dec 2010 10:37:02 +0000 (11:37 +0100)]
OMAP3: beagle: add WIP support for the beagleboard toys wl127xx board

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7 years agoOMAP3: beagle: pass expansionboard name in bootargs
Koen Kooi [Mon, 22 Nov 2010 10:51:32 +0000 (11:51 +0100)]
OMAP3: beagle: pass expansionboard name in bootargs

7 years agoARMV7: OMAP3: BeagleBoard: updated default configuration
Jason Kridner [Wed, 21 Jul 2010 12:41:25 +0000 (07:41 -0500)]
ARMV7: OMAP3: BeagleBoard: updated default configuration

* Decrease bootdelay to 3, use VGA for default resolution
* Add CONFIG_SYS_MEMTEST_SCRATCH to point to a scratch memory area.
* Enable LEDs
    Added LED driver using status_led.  USR0 is set to monitor the boot
    status.  USR1 is set to be the GREEN LED.
* Remove omapfb.debug=y from default env
* Add camera to default bootargs
* Move ramdisk parameters. This will make it easier to reprogram the ramdisk size.
* Improved boot env var setting
    * Enabled evaluation of expressions with 'setexpr'
    * Made room for a 64MB ramdisk by moving from 0x81600000 to 0x81000000
    * Removed expression from 'ramroot' that wouldn't be evaluated
    * Doubled console I/O buffer size from 256 to 512
    * Doubled maximum command arguments size from 16 to 32
* Enable multibus support for I2C

7 years agoBeagleBoard: Added userbutton command
Jason Kridner [Wed, 21 Jul 2010 12:41:25 +0000 (07:41 -0500)]
BeagleBoard: Added userbutton command

Based on commit f1099c7c43caf5bac3bf6a65aa266fade4747072
    Author: Greg Turner <gregturner@ti.com>
    Date:   Tue May 25 09:19:06 2010 -0500

    New u-boot command for status of USER button on BeagleBoard-xM

         Modified bootcmd to check the staus at boot time and set
 filename of the boot script.

* Moved to a BeagleBoard specific file.
* Removed changes to default boot command from adding userbutton
  command.
* Made to handle pre-xM boards.
* Flipped polarity of the return value to avoid confusion.  Success (0)
  is when the button is pressed.  Failure (1) is when the button is NOT
  pressed.
* Used latest revision getting function.
* Used latest macros for board revision.

7 years agoARMV7: OMAP3: BeagleBoard: Update DVI-D orange screen frequencies for xM
Jason Kridner [Fri, 5 Nov 2010 05:26:56 +0000 (00:26 -0500)]
ARMV7: OMAP3: BeagleBoard: Update DVI-D orange screen frequencies for xM

7 years agoARMV7: OMAP3: BeagleBoard: Enable DSS driver
Syed Mohammed Khasim [Sun, 11 Apr 2010 15:44:39 +0000 (17:44 +0200)]
ARMV7: OMAP3: BeagleBoard: Enable DSS driver

Configures DSS to display color bar on Svideo
Configures DSS to display background color on DVID

Signed-off-by: Syed Mohammed Khasim <khasim@ti.com>
7 years agoARMV7: OMAP3: Add DSS driver for OMAP3
Syed Mohammed Khasim [Tue, 12 Jan 2010 18:27:28 +0000 (23:57 +0530)]
ARMV7: OMAP3: Add DSS driver for OMAP3

Supports dynamic panel configuration
Supports dynamic tv standard selection
Adds support for DSS register access through generic APIs

Incorporated DSS register access using structures.

Previous discussions are here
http://www.mail-archive.com/u-boot@lists.denx.de/msg27150.html

Signed-off-by: Syed Mohammed Khasim <khasim@ti.com>
7 years agoARMV7: OMAP3: BeagleBoard: Enable pullups on i2c2.
Steve Kipisz [Thu, 5 Aug 2010 15:36:07 +0000 (10:36 -0500)]
ARMV7: OMAP3: BeagleBoard: Enable pullups on i2c2.

7 years agoBeagleBoard: Added LED driver
Jason Kridner [Thu, 20 May 2010 11:14:01 +0000 (06:14 -0500)]
BeagleBoard: Added LED driver

Added LED driver using status_led.  USR0 is set to monitor the boot
status.  USR1 is set to be the green LED.
(cherry picked from commit 048b526fd7cc0c642f27c674b3e235321c880b66)

7 years agoAdd 'led' command
Jason Kridner [Thu, 20 May 2010 10:41:26 +0000 (05:41 -0500)]
Add 'led' command

This patch allows any board implementing the coloured LED API
to control the LEDs from the console.

led [green | yellow | red | all ]  [ on | off ]

or

led [ 1 | 2 | 3 | all ]  [ on | off ]

Adds configuration item CONFIG_CMD_LED enabling the command.

Partially based on patch from Ulf Samuelsson:
http://www.mail-archive.com/u-boot@lists.denx.de/msg09593.html.
(cherry picked from commit aaf47f8d6af81393b7d3275d69b5dbdf07a3d6fb)

7 years agoARMV7: OMAP3: BeagleBoard: add xM rev B to ID table
Koen Kooi [Wed, 3 Nov 2010 13:48:31 +0000 (14:48 +0100)]
ARMV7: OMAP3: BeagleBoard: add xM rev B to ID table

Patch was updated by Jason Kridner <jkridner@beagleboard.org>:
* Use tabs to match style of other board revisions
* Only include board revisions that exist
* Default to the same configuration as the latest revision, but
  without setting 'beaglerev'

7 years agoARMV7: OMAP3: BeagleBoard: add more expansionboard IDs
Koen Kooi [Wed, 3 Nov 2010 13:39:15 +0000 (14:39 +0100)]
ARMV7: OMAP3: BeagleBoard: add more expansionboard IDs

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7 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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 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

7 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>
7 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>
7 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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Thu, 16 Dec 2010 21:49:16 +0000 (22:49 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

7 years agopm9261: enable cache command
Asen Dimov [Sun, 12 Dec 2010 10:41:36 +0000 (12:41 +0200)]
pm9261: enable cache command

Signed-off-by: Asen Dimov <dimov@ronetix.at>
7 years agopm9261: ARM relocation support
Asen Dimov [Sun, 12 Dec 2010 10:41:30 +0000 (12:41 +0200)]
pm9261: ARM relocation support

Signed-off-by: Asen Dimov <dimov@ronetix.at>
7 years agopm9263: enable cache command
Asen Dimov [Sun, 12 Dec 2010 10:42:09 +0000 (12:42 +0200)]
pm9263: enable cache command

Signed-off-by: Asen Dimov <dimov@ronetix.at>
7 years agopm9263: ARM relocation support
Asen Dimov [Sun, 12 Dec 2010 10:41:59 +0000 (12:41 +0200)]
pm9263: ARM relocation support

Signed-off-by: Asen Dimov <dimov@ronetix.at>
7 years agopm9g45: enable cache command
Asen Dimov [Sun, 12 Dec 2010 10:42:38 +0000 (12:42 +0200)]
pm9g45: enable cache command

Signed-off-by: Asen Dimov <dimov@ronetix.at>
7 years agopm9g45: ARM relocation support
Asen Dimov [Sun, 12 Dec 2010 00:42:28 +0000 (00:42 +0000)]
pm9g45: ARM relocation support

Signed-off-by: Asen Dimov <dimov@ronetix.at>
7 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>
7 years agoppc4xx: Fix missing linker scripts for partial linking
Stefan Roese [Tue, 14 Dec 2010 16:49:52 +0000 (17:49 +0100)]
ppc4xx: Fix missing linker scripts for partial linking

This patch fixes the acadia_nand and kilauea_nand linker scripts
which have been missing in commit ee8028b7 [ppc4xx: Cleanup for
partial linking and --gc-sections]

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Bernhard Weirich <Bernhard.Weirich@riedel.net>
7 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Mon, 13 Dec 2010 23:18:19 +0000 (00:18 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Mon, 13 Dec 2010 23:06:00 +0000 (00:06 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

7 years agoARM: */start.S: use canonical asm syntax
Wolfgang Denk [Thu, 9 Dec 2010 10:26:24 +0000 (11:26 +0100)]
ARM: */start.S: use canonical asm syntax

Make code build with older tool chains.

Signed-off-by: Wolfgang Denk <wd@denx.de>
7 years agompc83xx: fix pcie enumeration
Baidu Boy [Mon, 29 Nov 2010 13:10:45 +0000 (21:10 +0800)]
mpc83xx: fix pcie enumeration

This patch fix a problem for the pcie enumeration for mpc83xx cpus.  Without
this we will not  get correct value in hose->regions[...].

The pointer *reg in function mpc83xx_pcie_init_bus() shall not be changed.
Because we will use this pointer as a parameter to call function
mpc83xx_pcie_register_hose().

Signed-off-by: Baidu Boy <liucai.lfn@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
7 years agop1022ds: fix switching of DIU/LBC signals
Timur Tabi [Fri, 3 Dec 2010 19:03:45 +0000 (13:03 -0600)]
p1022ds: fix switching of DIU/LBC signals

On the P1022, the pins which drive the video display (DIU) are muxed with the
local bus controller (LBC), so if the DIU is active, the pins need to be
temporarily muxed to LBC whenever accessing NOR flash.

The code which handled this transition is checking and changing the wrong
bits in PMUXCR.

Also add a follow-up read after a write to NOR flash if we're going to
mux back to DIU after the write, as described in the P1022 RM.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
7 years agofsl_esdhc: Set the eSHDC DMACTL[SNOOP] bit after resetting the controller
P.V.Suresh [Sat, 4 Dec 2010 05:07:23 +0000 (10:37 +0530)]
fsl_esdhc: Set the eSHDC DMACTL[SNOOP] bit after resetting the controller

eSDHC host controller reset results in clearing of snoop bit also.
This patch sets the SNOOP bit after the completion of host controller reset.
Without this patch mmc reads are not consistent.

Signed-off-by: P.V.Suresh <pala@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
7 years agofsl_upm: Add MxMR/MDR synchronization
John Schmoller [Thu, 2 Dec 2010 17:43:10 +0000 (11:43 -0600)]
fsl_upm: Add MxMR/MDR synchronization

According to Freescale reference manuals (eg section "13.4.4.2
Programming the UPMs" of the P4080 Reference Manual):

"Since the result of any update to the MxMR/MDR register must be in
effect before the dummy read or write to the UPM region, a write to
MxMR/MDR should be followed immediately by a read of MxMR/MDR."

The UPM on a custom P4080-based board did not work without performing
a read of MxMR/MDR after a write.

Signed-off-by: John Schmoller <jschmoller@xes-inc.com>
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
7 years agotsec: Revert to setting TBICR_ANEG_ENABLE by default for SGMII
Kumar Gala [Thu, 2 Dec 2010 04:55:54 +0000 (22:55 -0600)]
tsec: Revert to setting TBICR_ANEG_ENABLE by default for SGMII

The following commit:

commit 46e91674fb4b6d06c6a4984c0b5ac7d9a16923f4
Author: Peter Tyser <ptyser@xes-inc.com>
Date:   Tue Nov 3 17:52:07 2009 -0600

    tsec: Force TBI PHY to 1000Mbps full duplex in SGMII mode

Removed setting Auto-Neg by default, however this is believed to be
proper default configuration for initialization of the TBI interface.

Instead we explicitly set CONFIG_TSEC_TBICR_SETTINGS for the
XPedite5370 & XPedite5500 boards that use a Broadcomm PHY which require
Auto-Neg to be disabled to function properly.

This addresses a breakage on the P2020 DS & MPC8572 DS boards when used
with an SGMII riser card.  We also remove setting
CONFIG_TSEC_TBICR_SETTINGS on the P1_P2_RDB family of boards as now the
default setting is sufficient for them.

Additionally, we clean up the code a bit to remove an unnecessary second
define.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Peter Tyser <ptyser@xes-inc.com>
7 years agoomap3: emif|sdrc: use a single global data define
Nishanth Menon [Sat, 11 Dec 2010 16:41:42 +0000 (11:41 -0500)]
omap3: emif|sdrc: use a single global data define

DECLARE_GLOBAL_DATA_PTR declarations in functions are inherently
troublesome with various compilers (e.g. gcc 4.5)

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP: Timer: Replace bss variable by gd
Dirk Behme [Sat, 11 Dec 2010 15:50:48 +0000 (10:50 -0500)]
OMAP: Timer: Replace bss variable by gd

Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss
values in the OMAP timer driver.

The usage of bss values in drivers before initialisation of bss is forbidden.
In that special case some data in .rel.dyn gets corrupted.

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Tested-by: Steve Sakoman <steve.sakoman@linaro.org>
Tested-by: John Rigby <john.rigby@linaro.org>
Tested-by: Nishanth Menon <nm@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Tested-by: Heiko Schocher <hs@denx.de>
Tested-by: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoDaVinci DM6446: Config Update
Sandeep Paulraj [Sat, 11 Dec 2010 15:47:30 +0000 (10:47 -0500)]
DaVinci DM6446: Config Update

The DM6446 does not build due to the ARM
relocation patch.

Also the board does not build in the NOR
mode. Changed default to NAND to ensure
no build failure.
While at it removed CONFIG_CMD_KGDB

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agodavinci: Rewrite timer.c to use tbl/tbu emulation variables in gd
Nick Thompson [Sat, 11 Dec 2010 15:46:46 +0000 (10:46 -0500)]
davinci: Rewrite timer.c to use tbl/tbu emulation variables in gd

This change allows the davinci timer functions to be used before
relocation since it avoids using static variables prior to BSS being
made available.

The code is based on that used in the at91 timers, modified to use
a davinci specific hardware timer. It also maintains reset_timer()
to allow deprecated timer usage to continue to work (for example,
in nand_base.c)

Signed-off-by: Nick Thompson <nick.thompson@ge.com>
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
Tested-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Tested-by: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoMerge branch 'master' of git://git.denx.de/u-boot-imx
Wolfgang Denk [Thu, 9 Dec 2010 19:52:44 +0000 (20:52 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-imx

7 years agoinclude/linux/mii.h: update for supporting GE
Macpaul Lin [Fri, 3 Dec 2010 05:52:34 +0000 (13:52 +0800)]
include/linux/mii.h: update for supporting GE

This file has been synced (copy) from Linux source code.
This commit was based on kernel 2.6.32.
It updates gigabit related phy registers and basic definitions.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
7 years agoARM: make timer variables in gt_t available for all ARM platforms
Prafulla Wadaskar [Wed, 1 Dec 2010 12:16:52 +0000 (17:46 +0530)]
ARM: make timer variables in gt_t available for all ARM platforms

All code that attemots to access variables in BSS before relocation
(for example directly or indirectly by board_init_f()) needs to be
fixed. Especially timer.c needs to fix on most of the ARM platforms.

This patch makes timer related variables in gd_t available for
all ARM implementations.

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Edited commit message.
Signed-off-by: Wolfgang Denk <wd@denx.de>
7 years agoarmv7: fix relocation skip
Andreas Bießmann [Tue, 30 Nov 2010 23:58:36 +0000 (00:58 +0100)]
armv7: fix relocation skip

I doubt the stack_setup() was defective before:
 we load the current location of _start and compare against destination
 of relocate_code(). If we are already there we shoud skip the
 relocation and jump over to clear_bss. Before the clear_bss was also skipped.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
7 years agoarm: fixloop(): do not use r8 for relocation
Andreas Bießmann [Tue, 30 Nov 2010 23:58:35 +0000 (00:58 +0100)]
arm: fixloop(): do not use r8 for relocation

r8 is used for global_data and should therefore be left alone!

For C code the compiler flag --fixed-r8 does the job, but in assembler
we need to be aware of that fact.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
7 years agoarm: relocate_code(): do not set register useless
Andreas Bießmann [Tue, 30 Nov 2010 23:58:34 +0000 (00:58 +0100)]
arm: relocate_code(): do not set register useless

In case we are still at relocation target address before relocation we
do not need to load the registers needed for relocation. We should
instead skip the whole relocation part and jump over to clear_bss
immediately.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
7 years agoarm: copy_loop(): use scratch register
Andreas Bießmann [Tue, 30 Nov 2010 23:58:33 +0000 (00:58 +0100)]
arm: copy_loop(): use scratch register

This patch uses r1 as scratch register for copy_loop(). Therefore we do
not longer need r7 for the storage of relocate_code()'s 'addr_moni' (the
destination address of relocation).
Therefore r7 can be used later on for other purposes.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
7 years agohwconfig: Fix handling of env_hwconfig, board_hwconfig, and cpu_hwconfig
Kumar Gala [Tue, 30 Nov 2010 21:58:27 +0000 (15:58 -0600)]
hwconfig: Fix handling of env_hwconfig, board_hwconfig, and cpu_hwconfig

The handling of env_hwconfig, board_hwconfig, and cpu_hwconfig got
broken when we removed the boards defining dummy board_hwconfig
& cpu_hwconfig values.

We fix this by handling the various strings in priority order.  If
hwconfig_parse returns NULL for a given string we check the next one
in order (env_hwconfig, board_hwconfig, followed by cpu_hwconfig).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
7 years agoarm: add 8-byte alignment for ABI compliance before board_init_f
Heiko Schocher [Fri, 12 Nov 2010 06:53:55 +0000 (07:53 +0100)]
arm: add 8-byte alignment for ABI compliance before board_init_f

suggested from Daniel Hobi<daniel.hobi@schmid-telecom.ch>

Tested on following boards:
arm1136: qong
armv7: omap3_beagle
arm926ejs: magnesium, tx25

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
cc: Albert ARIBAUD <albert.aribaud@free.fr>

7 years agoARMV7: Vexpress: Fix build error
Dirk Behme [Mon, 29 Nov 2010 18:56:59 +0000 (19:56 +0100)]
ARMV7: Vexpress: Fix build error

Fix ca9x4_ct_vxp build error

Configuring for ca9x4_ct_vxp board...
board/armltd/vexpress/libvexpress.o: In function `udelay':
u-boot.git/board/armltd/vexpress/ca9x4_ct_vxp.c:161: multiple
definition of `udelay'
lib/libgeneric.o:u-boot.git/lib/time.c:34: first defined here

lib/libgeneric.o: In function `udelay':

zlib.c:(.text+0x1ee8): undefined reference to `__udelay'

Signed-of-by: Dirk Behme <dirk.behme@googlemail.com>
7 years agoARMV7: Vexpress: fix compile warnings
Matt Waddel [Tue, 2 Nov 2010 23:25:21 +0000 (17:25 -0600)]
ARMV7: Vexpress: fix compile warnings

Fixed "pointer from integer without a cast" warnings in Vexpress.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
7 years agoARMV7: Vexpress: fix build errors
Matt Waddel [Thu, 2 Dec 2010 19:43:14 +0000 (12:43 -0700)]
ARMV7: Vexpress: fix build errors

This patch fixes build errors in the vexpress system:
  - Removed sys_proto.h requirement from syslib.c.
  - Switched vexpress to the default armv7 linker script.
  - Renamed TEXT_BASE to CONFIG_SYS_TEXT_BASE.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
7 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Wed, 8 Dec 2010 22:17:57 +0000 (23:17 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

7 years agoonenand: fix oob print out issue
Lei Wen [Tue, 7 Dec 2010 01:38:18 +0000 (09:38 +0800)]
onenand: fix oob print out issue

Seems original implementation forget to set the pointer to point
to the oobbuf, so when we want to see oob buf, we see nothing...
Fix it by get pointer as the oobbuf set.

Signed-off-by: Lei Wen <leiwen@marvell.com>
7 years agoarm920t/at91/timer: replace bss variables by gd
Andreas Bießmann [Tue, 30 Nov 2010 09:45:06 +0000 (09:45 +0000)]
arm920t/at91/timer: replace bss variables by gd

Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc
bss values in arm920t/at91/timer driver.
The usage of bss values in driver before initialisation of bss is
forbidden. In that special case some data in .rel.dyn gets corrupted by
the arm920t/at91/timer driver.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
7 years agoarm920t/at91/reset: board_reset: define weak symbol
Andreas Bießmann [Tue, 30 Nov 2010 09:45:05 +0000 (09:45 +0000)]
arm920t/at91/reset: board_reset: define weak symbol

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
7 years agoMAKEALL: fix AT91
Andreas Bießmann [Tue, 30 Nov 2010 09:45:04 +0000 (09:45 +0000)]
MAKEALL: fix AT91

* add boards_by_soc()
 * remove boards already in boards.cfg from LIST_AT91

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
7 years agoat91rm9200ek: add configure target for RAM boot
Andreas Bießmann [Tue, 30 Nov 2010 09:45:03 +0000 (09:45 +0000)]
at91rm9200ek: add configure target for RAM boot

This patch also removes now unnecessary config.mk in board directory and
make usage of new features in boards.cfg.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
7 years agoat91rm9200ek: fix SDRAM initialistation values
Andreas Bießmann [Sat, 4 Dec 2010 11:31:46 +0000 (11:31 +0000)]
at91rm9200ek: fix SDRAM initialistation values

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
7 years agoAT91: add TOP9000 support
Reinhard Meyer [Sat, 30 Oct 2010 23:09:58 +0000 (23:09 +0000)]
AT91: add TOP9000 support

Adds support for the EMK TOP9000 CPU Module which is
based on ATMELs ARM926EJS AT91SAM9XE SoC.

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
7 years agoAT91: fix EMAC gpio init in at91sam9260_devices.c
Reinhard Meyer [Wed, 1 Dec 2010 04:49:53 +0000 (05:49 +0100)]
AT91: fix EMAC gpio init in at91sam9260_devices.c

The AT91SAM9G20 BOOT ROM apparently initializes PA23 and PA24 to multi drive
(open drain). Revert this, if those pins are going to be used for MII.

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
7 years agoAT91: gen_atmel_mci.c: fix bug when Slot B is used
Reinhard Meyer [Tue, 16 Nov 2010 08:24:41 +0000 (09:24 +0100)]
AT91: gen_atmel_mci.c: fix bug when Slot B is used

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
7 years ago83xx NAND boot: fix boards.cfg
Scott Wood [Tue, 7 Dec 2010 00:42:02 +0000 (18:42 -0600)]
83xx NAND boot: fix boards.cfg

This patch http://patchwork.ozlabs.org/patch/72962/ included a boards.cfg
change, but it was omitted when applied as
f1c574d4006d81301792e70fafc31ff39259e793

This fixes the NAND SPL build on MPC8315ERDB.

Signed-off-by: Scott Wood <scottwood@freescale.com>
7 years agofix s3c2410_nand timing default values
David Müller (ELSOFT AG) [Mon, 29 Nov 2010 05:49:19 +0000 (05:49 +0000)]
fix s3c2410_nand timing default values

The attached patch fixes wrong timing default values and adds the
possibility to specify board specific timing value in the board config file.

Signed-off-by: David Mueller <d.mueller@elsoft.ch>
7 years agoenv_nand: Use nand_read_skip_bad instead of nand_read
Steve Sakoman [Fri, 3 Dec 2010 13:25:43 +0000 (13:25 +0000)]
env_nand: Use nand_read_skip_bad instead of nand_read

The nand-read function returns an error code if correctable errors have occurred.
This is not desirable, since the errors have been corrected!

This patch switches to the nand_read_skip_bad function which does not
return an error code if the errors are correctable.

Signed-off-by: Steve Sakoman <steve.sakoman@linaro.org>
Acked-by: Scott Wood <scottwood@freescale.com>
7 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Wolfgang Denk [Mon, 6 Dec 2010 22:45:35 +0000 (23:45 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-video

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-ubi
Wolfgang Denk [Mon, 6 Dec 2010 22:44:06 +0000 (23:44 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-ubi

7 years agoubifs.c: BUG: Error following links
Ricardo Ribalda Delgado [Thu, 2 Dec 2010 14:02:35 +0000 (15:02 +0100)]
ubifs.c: BUG: Error following links

The link_name variable is declared inside the if block and it is used
outside it through the name pointer.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
7 years agoUBI/UBIFS: Automatically unmount UBIFS volume upon UBI partition change
Stefan Roese [Mon, 1 Nov 2010 16:28:22 +0000 (17:28 +0100)]
UBI/UBIFS: Automatically unmount UBIFS volume upon UBI partition change

Automatically unmount UBIFS partition when user changes the UBI device.
Otherwise the following UBIFS commands will crash.

Signed-off-by: Stefan Roese <sr@denx.de>
7 years agoUBIFS: Change ubifsload to not read beyond the requested size
Stefan Roese [Mon, 1 Nov 2010 16:28:00 +0000 (17:28 +0100)]
UBIFS: Change ubifsload to not read beyond the requested size

Until now ubifsload pads the destination with 0 up to a multiple of
UBIFS_BLOCK_SIZE (4KiB) while reading a file to memory. This patch
changes this behaviour to only read to the requested length. This
is either the file length or the length/size provided as parameter
to the ubifsload command.

Signed-off-by: Stefan Roese <sr@denx.de>
7 years agoUBIFS: Change "ubifs mount" to "ubifsmount" in ubifsls output
Stefan Roese [Thu, 28 Oct 2010 12:09:29 +0000 (14:09 +0200)]
UBIFS: Change "ubifs mount" to "ubifsmount" in ubifsls output

Signed-off-by: Stefan Roese <sr@denx.de>
7 years agoUBIFS: Add ubifsumount command to unmount an active volume
Stefan Roese [Thu, 28 Oct 2010 12:09:22 +0000 (14:09 +0200)]
UBIFS: Add ubifsumount command to unmount an active volume

This new ubifsumount command allows the user to unmount a previously
mounted UBIFS volume.

Signed-off-by: Stefan Roese <sr@denx.de>
7 years agompc512x: aria: cleanup board config file
Anatolij Gustschin [Mon, 29 Nov 2010 21:36:39 +0000 (22:36 +0100)]
mpc512x: aria: cleanup board config file

CONFIG_FSL_DIU_LOGO_BMP has been removed while refactoring
MPC8610 and MPC5121 DIU code, so remove it.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
7 years agovideo: move fsl_diu_fb driver to drivers/video
Anatolij Gustschin [Mon, 29 Nov 2010 20:17:37 +0000 (21:17 +0100)]
video: move fsl_diu_fb driver to drivers/video

Since the driver is used not only on Freescale boards,
we move it to a common place for video drivers as
suggested by Wolfgang. The patch also cleans up the
top level Makefile.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
7 years agopowerpc/85xx: do not reloc l2srbar if CONFIG_FLASH_BASE is not defined
Haiying Wang [Wed, 1 Dec 2010 15:35:30 +0000 (10:35 -0500)]
powerpc/85xx: do not reloc l2srbar if CONFIG_FLASH_BASE is not defined

This fixes the compiling error for the board  which doesn't have NOR flash
(so CONFIG_FLASH_BASE is not defined)

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
7 years agopowerpc/85xx: Enable HWCONFIG on MPC8572DS
Kumar Gala [Fri, 19 Nov 2010 14:53:25 +0000 (08:53 -0600)]
powerpc/85xx: Enable HWCONFIG on MPC8572DS

We need HWCONFIG to allow configuration of DDR params

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
7 years agopowerpc/8xxx: Fix _POST_WORD_ADDR on 85xx & 86xx systems
Kumar Gala [Wed, 1 Dec 2010 12:42:04 +0000 (06:42 -0600)]
powerpc/8xxx: Fix _POST_WORD_ADDR on 85xx & 86xx systems

We intended to use the PIC TFRR register however we where missing adding
in the PIC register base offset from IMMR when we defined
_POST_WORD_ADDR.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
7 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Tue, 30 Nov 2010 21:13:32 +0000 (22:13 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Tue, 30 Nov 2010 21:12:36 +0000 (22:12 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

7 years agohwconfig: Fix dummy initialization of {board, cpu}_hwconfig
Kumar Gala [Tue, 30 Nov 2010 21:01:28 +0000 (15:01 -0600)]
hwconfig: Fix dummy initialization of {board, cpu}_hwconfig

Since board_hwconfig & cpu_hwconfig are defined as weak and dont have a
default value they will get put into the BSS if they aren't defined
elsewhere.  This is problematic as we try to utilize hwconfig before
we've relocated and thus BSS isn't setup.

Instead of giving dummy values in the board files that utilize this
feature, we can just initialize the variables to an empty string and
thus move them out of the BSS if they aren't defined elsewhere.

Also made board_hwconfig & cpu_hwconfig arrays to reduce size associated
with string pointers vs arrays.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
7 years agopowerpc/85xx: Introduce CONFIG_SYS_EXTRA_ENV_RELOC
Kumar Gala [Mon, 29 Nov 2010 20:32:11 +0000 (14:32 -0600)]
powerpc/85xx: Introduce CONFIG_SYS_EXTRA_ENV_RELOC

Some systems need to relocate the env_addr pointer early because the
location it points to will get invalidated before env_relocate is
called.  One example is on systems that might use a L2 or L3 cache
in SRAM mode and initialize that cache from SRAM mode back to being
a cache in cpu_init_r.

We set this on the 85xx boards that have support for NAND, SPI, or
SDHC/MMC boot support as they use a secondary cache in SRAM mode and
need the env_addr pointer relocated since we change from SRAM to normal
cache mode in cpu_init_r.

Also removed CONFIG_SYS_SPL as its not used anywhere.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
7 years agoMerge branch 'master' of git://git.denx.de/u-boot-samsung
Wolfgang Denk [Tue, 30 Nov 2010 20:30:13 +0000 (21:30 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-samsung

7 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Tue, 30 Nov 2010 20:28:10 +0000 (21:28 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Wolfgang Denk [Tue, 30 Nov 2010 20:28:03 +0000 (21:28 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-sh

7 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Tue, 30 Nov 2010 20:15:25 +0000 (21:15 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians