kernel/u-boot.git
14 years agos5pc110: fb: fix the clock setting
Minkyu Kang [Thu, 5 Nov 2009 05:38:41 +0000 (14:38 +0900)]
s5pc110: fb: fix the clock setting

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: show download msg to LCD
Minkyu Kang [Wed, 4 Nov 2009 11:05:22 +0000 (20:05 +0900)]
s5pc110: aquila: show download msg to LCD

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: style fix
Minkyu Kang [Wed, 4 Nov 2009 05:52:27 +0000 (14:52 +0900)]
s5pc110: aquila: style fix

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: if aquila machine, set lcd env
Minkyu Kang [Tue, 3 Nov 2009 08:05:04 +0000 (17:05 +0900)]
s5pc110: aquila: if aquila machine, set lcd env

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agoMerge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx
Minkyu Kang [Mon, 2 Nov 2009 10:21:53 +0000 (19:21 +0900)]
Merge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx

14 years agos5pc1xx: uart: fix the error checking logic
Minkyu Kang [Tue, 13 Oct 2009 05:04:02 +0000 (14:04 +0900)]
s5pc1xx: uart: fix the error checking logic

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: Add HWREV_MODE3 check
Kyungmin Park [Mon, 2 Nov 2009 08:25:38 +0000 (17:25 +0900)]
s5pc110: aquila: Add HWREV_MODE3 check

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: fb: added lcd param and changed window layer 0 to 1.
daeinki [Fri, 30 Oct 2009 13:41:03 +0000 (22:41 +0900)]
s5pc110: fb: added lcd param and changed window layer 0 to 1.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agos5pc110: aquila: add lcd config
Minkyu Kang [Fri, 30 Oct 2009 11:15:07 +0000 (20:15 +0900)]
s5pc110: aquila: add lcd config

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: aquila: LCD enable
Minkyu Kang [Fri, 30 Oct 2009 11:03:22 +0000 (20:03 +0900)]
s5pc1xx: aquila: LCD enable

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agousbd: codes clean
Minkyu Kang [Fri, 30 Oct 2009 07:50:39 +0000 (16:50 +0900)]
usbd: codes clean

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agousbd: use full capacity when mmc image downloading
Minkyu Kang [Fri, 30 Oct 2009 06:08:49 +0000 (15:08 +0900)]
usbd: use full capacity when mmc image downloading

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: p1p2: Add P1P2 GPIO configurations
Kyungmin Park [Wed, 28 Oct 2009 02:24:59 +0000 (11:24 +0900)]
s5pc110: p1p2: Add P1P2 GPIO configurations

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: p1p2: Set proper LDOs based on board
Kyungmin Park [Wed, 28 Oct 2009 01:02:06 +0000 (10:02 +0900)]
s5pc110: p1p2: Set proper LDOs based on board

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc1xx: add P1P2 (Smart Book) board
Minkyu Kang [Tue, 27 Oct 2009 06:58:20 +0000 (15:58 +0900)]
s5pc1xx: add P1P2 (Smart Book) board

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: Add missing sleep command support
Kyungmin Park [Tue, 27 Oct 2009 01:20:07 +0000 (10:20 +0900)]
s5pc110: Add missing sleep command support

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot
Kyungmin Park [Tue, 27 Oct 2009 01:09:11 +0000 (10:09 +0900)]
Merge branch 'master' of git://git.denx.de/u-boot

Conflicts:

Makefile
board/eukrea/cpu9260/cpu9260.c
board/samsung/smdkc100/Makefile
board/samsung/smdkc100/lowlevel_init.S
board/samsung/smdkc100/mem_setup.S
board/samsung/smdkc100/onenand.c
board/samsung/smdkc100/smdkc100.c
cpu/arm_cortexa8/s5pc1xx/Makefile
cpu/arm_cortexa8/s5pc1xx/clock.c
cpu/arm_cortexa8/start.S
drivers/serial/serial_s5pc1xx.c
include/asm-arm/arch-s5pc1xx/clk.h
include/asm-arm/arch-s5pc1xx/clock.h
include/asm-arm/arch-s5pc1xx/gpio.h
include/asm-arm/arch-s5pc1xx/power.h
include/configs/cpu9260.h
include/configs/cpuat91.h
include/configs/davinci_dm355evm.h
include/configs/smdkc100.h
include/linux/mtd/onenand.h
include/linux/mtd/onenand_regs.h

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Disable camera related LDOs at boot
Kyungmin Park [Tue, 27 Oct 2009 00:26:30 +0000 (09:26 +0900)]
s5pc110: aquila: Disable camera related LDOs at boot

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agoMerge branch 'master' of jaehoon@party:/pub/git/u-boot-s5pc1xx
Jaehoon Chung [Mon, 26 Oct 2009 11:44:58 +0000 (20:44 +0900)]
Merge branch 'master' of jaehoon@party:/pub/git/u-boot-s5pc1xx

14 years agos5pc110: aquila: modified usbdown button
Jaehoon Chung [Mon, 26 Oct 2009 11:42:30 +0000 (20:42 +0900)]
s5pc110: aquila: modified usbdown button
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
14 years agos5pc110: fb: code clean.
daeinki [Mon, 26 Oct 2009 06:43:43 +0000 (15:43 +0900)]
s5pc110: fb: code clean.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agos5pc110: fb: updated lcd controller and lcd panel driver.
daeinki [Mon, 26 Oct 2009 06:31:00 +0000 (15:31 +0900)]
s5pc110: fb: updated lcd controller and lcd panel driver.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agos5pc110: gpio: added gpio interfaces and definitions for drive strength.
daeinki [Mon, 26 Oct 2009 06:29:46 +0000 (15:29 +0900)]
s5pc110: gpio: added gpio interfaces and definitions for drive strength.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agoLicense cleanup: Fix license header for some esd display configurations
Matthias Fuchs [Fri, 23 Oct 2009 08:52:38 +0000 (10:52 +0200)]
License cleanup: Fix license header for some esd display configurations

These files were autogenerated by EPSON configuration tools.
This patch replaces the autogenerated file headers by the GPL
license notice.

This change is done with the explicit permission
of Epson Research & Development / IC Software Development.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
14 years agosf: add GPL-2 license info
Mike Frysinger [Fri, 9 Oct 2009 21:12:44 +0000 (17:12 -0400)]
sf: add GPL-2 license info

Some of the new spi flash files were missing explicit license lines.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
CC: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
14 years agofdt: Fix fdt padding issue for initrd mem_rsv
Kumar Gala [Thu, 22 Oct 2009 04:29:51 +0000 (23:29 -0500)]
fdt: Fix fdt padding issue for initrd mem_rsv

Its possible that we end up with a device tree that happens to be a
particular size that after we call fdt_resize() we don't have any
space left for the initrd mem_rsv.

Fix this be adding a second mem_rsv into the size calculation.  We
had one to cover the fdt itself and we have the potential of adding
a second for the initrd.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
14 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sat, 24 Oct 2009 20:26:42 +0000 (22:26 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

14 years agoMerge branch 'master-sync' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Sat, 24 Oct 2009 20:26:09 +0000 (22:26 +0200)]
Merge branch 'master-sync' of git://git.denx.de/u-boot-arm

14 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sat, 24 Oct 2009 20:25:11 +0000 (22:25 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Sat, 24 Oct 2009 20:25:08 +0000 (22:25 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

14 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sat, 24 Oct 2009 20:19:54 +0000 (22:19 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Sat, 24 Oct 2009 20:19:46 +0000 (22:19 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

14 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sat, 24 Oct 2009 20:16:22 +0000 (22:16 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

14 years agoARM: OMAP3: Refactors the SM911x driver
Steve Sakoman [Tue, 20 Oct 2009 16:21:18 +0000 (18:21 +0200)]
ARM: OMAP3: Refactors the SM911x driver

Move the test up in the function to not hang on systems without ethernet.

Signed-off-by: Steve Sakoman <sakoman@gmail.com>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
14 years agos5pc1xx: SMDKC100: fix compile warnings
Minkyu Kang [Thu, 15 Oct 2009 02:19:15 +0000 (11:19 +0900)]
s5pc1xx: SMDKC100: fix compile warnings

fix the following compile warnings
warning: dereferencing type-punned pointer will break strict-aliasing rules

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agoarm926ejs: 8-byte align stack to avoid LDRD/STRD problems
Simon Kagstrom [Tue, 6 Oct 2009 06:44:22 +0000 (08:44 +0200)]
arm926ejs: 8-byte align stack to avoid LDRD/STRD problems

U-boot for Marvell Kirkwood boards no longer work after the EABI changes
introduced in commit f772acf8a584067033eff1e231fcd1fb3a00d3d9. This
turns out to be caused by a stack alignment issue. The armv5te
instructions ldrd/strd instructions require 8-byte alignment to work
properly (otherwise undefined behavior).

Tested on an OpenRD base board, where both printouts and ubifs stuff now
works.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
14 years agoTI OMAP3 SDP3430: Initial Support
Tom Rix [Sat, 17 Oct 2009 17:41:06 +0000 (12:41 -0500)]
TI OMAP3 SDP3430: Initial Support

Start of support of
Texas Instruments Software Development Platform(SDP)
for OMAP3430 - SDP3430

Highlights of this platform are:
Flash Memory devices:
Sibley NOR, Micron 8bit NAND and OneNAND
Connectivity:
3 UARTs and expanded 4 UART ports + IrDA
Ethernet, USB
Other peripherals:
TWL5030 PMIC+Audio+Keypad
VGA display
Expansion ports:
Memory devices plugin boards (PISMO)
Connectivity board for GPS,WLAN etc.
Completely configurable boot sequence and device mapping
etc.

Support default jumpering and:
 - UART1/ttyS0 console(legacy sdp3430 u-boot)
 - UART3/ttyS2 console (matching other boards,
 and SDP HW docs)
 - Ethernet
 - mmc0
 - NOR boot

Currently the UART1 is enabled by default.  for
compatibility with other OMAP3 u-boot platforms,
enable the #define of CONSOLE_J9.

Conflicts:

Makefile

Fixed the conflict with smdkc100_config by moving omap_sdp3430_config
to it is alphabetically sorted location above zoom1.

Signed-off-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoTI DaVinci: Adding Copyright for DM365 EVM
Sandeep Paulraj [Tue, 13 Oct 2009 23:35:11 +0000 (19:35 -0400)]
TI DaVinci: Adding Copyright for DM365 EVM

Forgot to add Copyright while submitting the patch.
This patch adds the copyright.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI DaVinci: Fix DM6467 EVM Compilation Warning
Sandeep Paulraj [Tue, 13 Oct 2009 16:32:32 +0000 (12:32 -0400)]
TI DaVinci: Fix DM6467 EVM Compilation Warning

Due to new TI boards being added to U-Boot, the hardware.h
is getting very messy. The warning being fixed is due to
the EMIF addresses being redefined.

The long term solution(after 2009.11) to this is to
have SOC specific header files.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI DaVinci: DM355 Leopard: Fix compilation warning
Sandeep Paulraj [Tue, 13 Oct 2009 16:01:52 +0000 (12:01 -0400)]
TI DaVinci: DM355 Leopard: Fix compilation warning

We get a compliation warning when we enable the NAND driver
for DM355 leopard. The waring we get is that we have
an implicit declaration of davinci_nand_init.

It is fixed by including the asm/arch/nand_defs.h header file

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI OMAP3: make gpmc_config as const
Nishanth Menon [Tue, 13 Oct 2009 16:49:55 +0000 (12:49 -0400)]
TI OMAP3: make gpmc_config as const

gpmc_config should not be a variant as it is board specific
hence make it a const parameter

Fixes issues identified by Dirk:
- build issue for zoom2
- warnings for all other OMAP3 platforms using nand/onenand etc

Signed-off-by: Nishanth Menon <nm@ti.com>
14 years agoppc4xx: Sequoia: Add chip_config command
Stefan Roese [Mon, 19 Oct 2009 14:19:36 +0000 (16:19 +0200)]
ppc4xx: Sequoia: Add chip_config command

This patch removes the Sequoia "bootstrap" command and replaces it
with the now common command "chip_config".

Please note that the patches with the dynamic PCI sync clock
configuration have to be applied, before this one should go in.
This is because Sequoia has 2 different bootstrap EEPROMs, and
the old bootstrap command configured different values depending
on the detected PCI async clock (33 vs. 66MHz). With the PCI sync
clock patches, this is not necessary anymore. The PCI sync clock
will be configured correctly on-the-fly now.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Yosemite/Yellowstone: Check and reconfigure the PCI sync clock
Stefan Roese [Mon, 19 Oct 2009 12:14:08 +0000 (14:14 +0200)]
ppc4xx: Yosemite/Yellowstone: Check and reconfigure the PCI sync clock

This patch now uses the 440EP(x)/GR(x) function to check and dynamically
reconfigure the PCI sync clock.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Sequoia/Rainer: Check and reconfigure the PCI sync clock
Stefan Roese [Mon, 19 Oct 2009 12:10:50 +0000 (14:10 +0200)]
ppc4xx: Sequoia/Rainer: Check and reconfigure the PCI sync clock

This patch now uses the 440EP(x)/GR(x) function to check and dynamically
reconfigure the PCI sync clock.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Print PCI synchronous clock frequency upon bootup
Stefan Roese [Mon, 19 Oct 2009 12:44:11 +0000 (14:44 +0200)]
ppc4xx: Print PCI synchronous clock frequency upon bootup

Some 4xx variants (e.g. 440EP(x)/GR(x)) have an internal
synchronous PCI clock. Knowledge about the currently configured
value might be helpful. So let's print it out upon bootup.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Add function to check and dynamically change PCI sync clock
Stefan Roese [Mon, 19 Oct 2009 12:06:23 +0000 (14:06 +0200)]
ppc4xx: Add function to check and dynamically change PCI sync clock

PPC440EP(x)/PPC440GR(x):
In asynchronous PCI mode, the synchronous PCI clock must meet
certain requirements. The following equation describes the
relationship that must be maintained between the asynchronous PCI
clock and synchronous PCI clock. Select an appropriate PCI:PLB
ratio to maintain the relationship:

AsyncPCIClk - 1MHz <= SyncPCIclock <= (2 * AsyncPCIClk) - 1MHz

This patch now adds a function to check and reconfigure the sync
PCI clock to meet this requirement. This is in preparation for
some AMCC boards (Sequoia/Rainier and Yosemite/Yellowstone) using this
function to not violate the PCI clocking rules.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Update flash size in reg property of the NOR flash node
Stefan Roese [Fri, 16 Oct 2009 08:01:09 +0000 (10:01 +0200)]
ppc4xx: Update flash size in reg property of the NOR flash node

Till now only the ranges in the ebc node are updated with the values
currently configured in the PPC4xx EBC controller. With this patch now
the NOR flash size is updated in the device tree blob as well. This is
done by scanning the compatible nodes "cfi-flash" and "jedec-flash"
for the correct chip select number.

This size fixup is enabled for all AMCC eval board right now. Other
4xx boards may want to enable it as well, if this problem with multiple
NOR FLASH sizes exists.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
14 years agofdt: Add fdt_fixup_nor_flash_size() to fixup NOR FLASH size in dtb
Stefan Roese [Wed, 21 Oct 2009 09:59:52 +0000 (11:59 +0200)]
fdt: Add fdt_fixup_nor_flash_size() to fixup NOR FLASH size in dtb

This function can be used to update the size in the "reg" property
of the NOR FLASH device nodes. This is necessary for boards with
non-fixed NOR FLASH sizes.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
Acked-by: Wolfgang Denk <wd@denx.de>
14 years agocpu/ppc4xx/fdt.c: avoid strcpy() to constant string
Wolfgang Denk [Tue, 20 Oct 2009 21:12:13 +0000 (23:12 +0200)]
cpu/ppc4xx/fdt.c: avoid strcpy() to constant string

strcpy() was iused with the target address being a pointer to a
constant string, which potentially is read-only. Use a (writable)
array of characters instead.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agos5pc11x: mmc: fix write blocks to 0x400 (workaround) IJ01-20091023
Minkyu Kang [Wed, 21 Oct 2009 06:56:02 +0000 (15:56 +0900)]
s5pc11x: mmc: fix write blocks to 0x400 (workaround)

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agousbd: fix the movinand download
Minkyu Kang [Wed, 21 Oct 2009 06:26:41 +0000 (15:26 +0900)]
usbd: fix the movinand download

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: real: revert CODEC_LDO_EN
Minkyu Kang [Wed, 21 Oct 2009 00:45:48 +0000 (09:45 +0900)]
s5pc110: real: revert CODEC_LDO_EN

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agocpu/ppc4xx/fdt.c: avoid strcpy() to constant string
Wolfgang Denk [Tue, 20 Oct 2009 21:07:04 +0000 (23:07 +0200)]
cpu/ppc4xx/fdt.c: avoid strcpy() to constant string

strcpy() was iused with the target address being a pointer to a
constant string, which potentially is read-only. Use a (writable)
array of characters instead.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agosmc911x: add support for LAN9220
Daniel Mack [Wed, 8 Apr 2009 11:23:38 +0000 (13:23 +0200)]
smc911x: add support for LAN9220

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agos5pc110: aquila: remove code for CODEC_LDO_EN
Joonyoung Shim [Mon, 19 Oct 2009 11:37:18 +0000 (20:37 +0900)]
s5pc110: aquila: remove code for CODEC_LDO_EN

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
14 years agoenvcrc: check return value of fwrite()
Mike Frysinger [Mon, 19 Oct 2009 00:43:14 +0000 (20:43 -0400)]
envcrc: check return value of fwrite()

Newer toolchains will often complain about unchecked fwrite():
envcrc.c:117: warning: ignoring return value of `fwrite´, declared
with attribute warn_unused_result

So check the return value to silence the warnings.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agomcc200: fix build error
Wolfgang Denk [Mon, 19 Oct 2009 07:18:57 +0000 (09:18 +0200)]
mcc200: fix build error

Fix compile error:
include/configs/mcc200.h:401:6: error: #elif with no expression

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoOMAP3: fix warnings when NAND/ONENAND is not used
Nishanth Menon [Tue, 13 Oct 2009 16:47:39 +0000 (12:47 -0400)]
OMAP3: fix warnings when NAND/ONENAND is not used

Fix build warnings by putting specific used variables
under required #ifdefs for removing:
mem.c:227: warning: unused variable 'f_sec'
mem.c:226: warning: unused variable 'f_off'
mem.c:225: warning: unused variable 'size'
mem.c:224: warning: unused variable 'base'
mem.c:222: warning: unused variable 'gpmc_config'

Signed-off-by: Nishanth Menon <nm@ti.com>
14 years agoOMAP3: export enable_gpmc_cs_config to board files
Nishanth Menon [Tue, 13 Oct 2009 16:47:24 +0000 (12:47 -0400)]
OMAP3: export enable_gpmc_cs_config to board files

Export enable_gpmc_cs_config into common header to
prevent warning:

warning: implicit declaration of function 'enable_gpmc_cs_config'

Signed-off-by: Nishanth Menon <nm@ti.com>
14 years agoZoom2 Fix serial gpmc setup
Tom Rix [Mon, 12 Oct 2009 16:07:40 +0000 (12:07 -0400)]
Zoom2 Fix serial gpmc setup

The offset to the chip select is incorrect.

The change 187af954cf7958c24efcf0fd62289bbdb4f1f24e,

omap3: embedd gpmc_cs into gpmc config struct

introduced a problem with the serial gpmc setup.

This patch reverts the chip select to its previous value.

The symptoms of this problem are that the Zoom2
currently hangs.

This was run tested on Zoom2.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoTI DaVinci Sonata: Add Config option for 64 bit Support
Sandeep Paulraj [Sun, 11 Oct 2009 13:10:27 +0000 (09:10 -0400)]
TI DaVinci Sonata: Add Config option for 64 bit Support

Adding the CONFIG_SYS_64BIT_VSPRINTF fot the DM644x based Sonata
Without this option enabled while performing NAND operations we will get
wrong diagnostic messages.
Example if the MTD NAND driver find a bad block while erasing from
a certain address, it will say bad block skipped at 0x00000000.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI DaVinci DVEVM: Add Config option for 64 bit Support
Sandeep Paulraj [Sun, 11 Oct 2009 13:14:58 +0000 (09:14 -0400)]
TI DaVinci DVEVM: Add Config option for 64 bit Support

Adding the CONFIG_SYS_64BIT_VSPRINTF in the DVEVM config.
Without this option enabled while performing NAND operations we will get
wrong diagnostic messages.
Example if the MTD NAND driver find a bad block while erasing from
a certain address, it will say bad block skipped at 0x00000000.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI DaVinci DM365: Add Config option for 64 bit Support
Sandeep Paulraj [Sat, 10 Oct 2009 14:19:20 +0000 (10:19 -0400)]
TI DaVinci DM365: Add Config option for 64 bit Support

Adding the CONFIG_SYS_64BIT_VSPRINTF in the DM365 EVM config.
Without this option enabled while performing NAND operations we will get
wrong diagnostic messages.
Example if the MTD NAND driver find a bad block while erasing from
a certain address, it will say bad block skipped at 0x00000000.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI DaVinci DM355: Add Config option for 64 bit Support
Sandeep Paulraj [Sat, 10 Oct 2009 14:18:46 +0000 (10:18 -0400)]
TI DaVinci DM355: Add Config option for 64 bit Support

Adding the CONFIG_SYS_64BIT_VSPRINTF in the DM355 EVM config.
Without this option enabled while performing NAND operations we will get
wrong diagnostic messages.
Example if the MTD NAND driver find a bad block while erasing from
a certain address, it will say bad block skipped at 0x00000000.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI: OMAP3: Remove SZ_xx references
Sandeep Paulraj [Wed, 9 Sep 2009 15:50:40 +0000 (11:50 -0400)]
TI: OMAP3: Remove SZ_xx references

This patch removes dependency on the sizes.h header file
and removes all references to SZ_xx.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoOMAP3: Update Overo and Beagle environment
Steve Sakoman [Sat, 10 Oct 2009 18:29:37 +0000 (14:29 -0400)]
OMAP3: Update Overo and Beagle environment

Update default environment to support new kernel DSS2 subsystem and
simplify rootfs type and location changes.

Signed-off-by: Steve Sakoman <sakoman@gmail.com>
Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
14 years agoTI DaVinci: Maintainer for DM355 and DM365 EVM
Sandeep Paulraj [Sat, 10 Oct 2009 17:46:26 +0000 (13:46 -0400)]
TI DaVinci: Maintainer for DM355 and DM365 EVM

Adding entries to the MAINTAINERS directory for the
DM355 and DM365 EVM.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI: DaVinci: DM355 Leopard board support
Sandeep Paulraj [Sat, 10 Oct 2009 17:37:10 +0000 (13:37 -0400)]
TI: DaVinci: DM355 Leopard board support

This patch adds support for the leopard board which is
based on the DM355 SOC.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI DaVinci DM646x: Adding initial support for DM6467 EVM
Sandeep Paulraj [Sat, 10 Oct 2009 16:00:47 +0000 (12:00 -0400)]
TI DaVinci DM646x: Adding initial support for DM6467 EVM

This patch adds the initial support for DM6467 EVM.
Other features like NET and NAND support will be added as follow up patches.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI DaVinci DM365: Fix Compilation warning for DM365 EVM
Sandeep Paulraj [Fri, 2 Oct 2009 00:22:09 +0000 (20:22 -0400)]
TI DaVinci DM365: Fix Compilation warning for DM365 EVM

This patch fixes a compilation warning while compiling
the DM365 EVM.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoTI DaVinci DM355: Fix Compilation warning for DM355 EVM
Sandeep Paulraj [Fri, 2 Oct 2009 00:21:13 +0000 (20:21 -0400)]
TI DaVinci DM355: Fix Compilation warning for DM355 EVM

This patch fixes a compilation warning while compiling
the DM355 EVM.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
14 years agoAT91 CPUAT91 Fix compiler warning
Eric Benard [Mon, 12 Oct 2009 08:15:39 +0000 (10:15 +0200)]
AT91 CPUAT91 Fix compiler warning

This change fixes the compiler warning

main.c: In function 'abortboot':
main.c:122: warning: too few arguments for format

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoAT91 CPU9260 CPU9G20 Fix compile warnings
Eric Benard [Mon, 12 Oct 2009 08:15:40 +0000 (10:15 +0200)]
AT91 CPU9260 CPU9G20 Fix compile warnings

This change fixes the compiler warning

nand_util.c:45:2: warning: #warning Please define CONFIG_SYS_64BIT_VSPRINTF
  for correct output!

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoAT91 CPU9260 Fix machine ID when using a CPU9G20.
Eric Benard [Mon, 12 Oct 2009 08:08:20 +0000 (10:08 +0200)]
AT91 CPU9260 Fix machine ID when using a CPU9G20.

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agolcd: remove '#if 0' 32-bit scroll, now memcpy does it
Alessandro Rubini [Sat, 10 Oct 2009 09:51:26 +0000 (11:51 +0200)]
lcd: remove '#if 0' 32-bit scroll, now memcpy does it

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
14 years agolib_generic memset: fill one word at a time if possible
Alessandro Rubini [Sat, 10 Oct 2009 09:51:16 +0000 (11:51 +0200)]
lib_generic memset: fill one word at a time if possible

If the destination is aligned, fill ulong values until possible.
Then fill remaining part by byte.

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
14 years agolib_generic memcpy: copy one word at a time if possible
Alessandro Rubini [Sat, 10 Oct 2009 09:51:05 +0000 (11:51 +0200)]
lib_generic memcpy: copy one word at a time if possible

If source and destination are aligned, this copies ulong values
until possible, trailing part is copied by byte. Thanks for the details
to Wolfgang Denk, Mike Frysinger, Peter Tyser, Chris Moore.

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
14 years agosetenv: do console redirection even if previously unset
Alessandro Rubini [Thu, 8 Oct 2009 12:29:14 +0000 (14:29 +0200)]
setenv: do console redirection even if previously unset

If "stdout" is not previously set, doing "setenv stdout lcd" had no
effect, since console redirection only worked if the environment
variable was already set; the second time you run setenv it worked.
Most default environments lack stdin/out/err definitions, so I'm sure
I'm not alone with this problem.

This patch simply moves a block of code out of a conditional, to do
the same work even if the variable was previously unset.

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
14 years agompc512x: fix System Clock Control constants for USB1 & USB2
Martha Stan [Wed, 7 Oct 2009 08:38:46 +0000 (04:38 -0400)]
mpc512x: fix System Clock Control constants for USB1 & USB2

Signer-off-by: Martha Stan <mmarx@silicontkx.com>
14 years agomem_mtest: fix error reporting, allow escape with ^C
Paul Gortmaker [Fri, 2 Oct 2009 22:18:33 +0000 (18:18 -0400)]
mem_mtest: fix error reporting, allow escape with ^C

The basic memtest function tries to watch for ^C after each
pattern pass as an escape mechanism, but if things are horribly
wrong, we'll be stuck in an inner loop flooding the console with
error messages and never check for ^C.  To make matters worse,
if the user waits for all the error messages to complete, we
then incorrectly report the test passed without errors.

Adding a check for ^C after any error is printed will give
the end user an escape mechanism from a console flood without
slowing down the overall test speed on a slow processor.

Also, the more extensive memtest quit after just a single error,
which is inconsistent with the normal memtest, and not useful if
if you are doing dynamic environmental impact testing, such as
heating/cooling etc.

Both tests now track the error count and report it properly
at test completion.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
14 years agonew default shortcut to config & build a board
Mike Frysinger [Thu, 1 Oct 2009 16:11:54 +0000 (12:11 -0400)]
new default shortcut to config & build a board

The majority of the time that I build things in U-Boot, I want to just
build for the board.  I don't make board config tweaks after selecting the
board.  So add a new pattern rule that allows people to combine two steps
in one go:
`make foo_config && make` => `make foo`

This shouldn't conflict with any existing make rules as the pattern rule
is used only the rule doesn't already exist.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoenv: only build env_embedded and envcrc when needed
Mike Frysinger [Wed, 30 Sep 2009 19:29:58 +0000 (15:29 -0400)]
env: only build env_embedded and envcrc when needed

The env code is protected by the ENV_IS_EMBEDDED define, so attempting to
compile the code when this isn't defined is pointless.  Now that the env
headers have unified around CONFIG_ENV_IS_EMBEDDED, convert the build
system to only build the env objects when this is enabled.  And now that
the env code is conditionally compiled, we can drop the source code checks.

For people who want to extract the environment manually, add a new option
CONFIG_BUILD_ENVCRC that only enables the envcrc utility.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agopart_dos: check status flags of partitions
Daniel Mack [Mon, 28 Sep 2009 09:40:38 +0000 (11:40 +0200)]
part_dos: check status flags of partitions

Only read partitions which have 0x00 or 0x80 set in their status field.
All others are invalid.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
14 years agogalaxy5200: change cs1 configuration
Eric Millbrandt [Fri, 25 Sep 2009 22:47:43 +0000 (17:47 -0500)]
galaxy5200: change cs1 configuration

Correct the chip select configuration for the nand flash chip select.

Signed-off-by: Eric Millbrandt <emillbrandt@dekaresearch.com>
14 years agoCleanup: use constant
Niklaus Giger [Wed, 23 Sep 2009 06:12:14 +0000 (08:12 +0200)]
Cleanup: use constant

Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
14 years agompc83xx: mpc8313 - handle erratum IPIC1 (TSEC IRQ number swappage)
Kim Phillips [Mon, 12 Oct 2009 16:06:19 +0000 (11:06 -0500)]
mpc83xx: mpc8313 - handle erratum IPIC1 (TSEC IRQ number swappage)

mpc8313e erratum IPIC1 swapped TSEC interrupt ID numbers on rev. 1
h/w (see AN3545).  The base device tree in use has rev. 1 ID numbers,
so if on Rev. 2 (and higher) h/w, we fix them up here.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Reviewed-by: Roland Lezuo <roland.lezuo@chello.at>
14 years agompc85xx: Fix booting on various boards
Anton Vorontsov [Mon, 12 Oct 2009 19:55:39 +0000 (23:55 +0400)]
mpc85xx: Fix booting on various boards

commit 0e870980a64584a591af775bb9c9fe9450124df9 ("8xxx: Removed
CONFIG_NUM_CPUS from 85xx/86xx") breaks U-Boot on various boards,
namely the ones that call get_sys_info() from board_early_init_f().

get_sys_info() calls cpu_numcores(), which depends on probecpu()
being called before. But probecpu() is called after board_early_init_f(),
and so cpu_numcores() returns random values, which in turn crashes
get_sys_info().

To fix the issue we place probecpu() before board_early_init_f()
in an initialization sequence.

Booting on the following boards should be revived now:
 mpc8540ads
 mpc8541cds
 mpc8548cds
 mpc8555cds
 mpc8560ads
 mpc8568mds
 mpc8569mds
 and maybe more.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agompc86xx: delete unused MPC86xx_DDR_SDRAM_CLK_CNTL define
Paul Gortmaker [Fri, 2 Oct 2009 22:48:07 +0000 (18:48 -0400)]
mpc86xx: delete unused MPC86xx_DDR_SDRAM_CLK_CNTL define

This is an orphaned legacy leftover that is just polluting
the config file namespace.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoppc/P1_P2_RDB: On-chip BootROM support
Dipen Dudhat [Thu, 8 Oct 2009 08:03:29 +0000 (13:33 +0530)]
ppc/P1_P2_RDB: On-chip BootROM support

On Chip BootROM support for P1 and P2 series RDB platforms.

This patch is derived from latest On Chip BootROM support on MPC8536DS

Signed-off-by: Dipen Dudhat <dipen.dudhat@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoppc/P1_P2_RDB: NAND Boot Support
Dipen Dudhat [Thu, 8 Oct 2009 08:03:18 +0000 (13:33 +0530)]
ppc/P1_P2_RDB: NAND Boot Support

NAND Boot support for P1 and P2 series RDB platforms.

This patch is derived from NAND Boot support on MPC8536DS.

Signed-off-by: Dipen Dudhat <dipen.dudhat@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agompc8xxx: improve LAW error messages when setting up DDR
Paul Gortmaker [Wed, 7 Oct 2009 20:34:28 +0000 (16:34 -0400)]
mpc8xxx: improve LAW error messages when setting up DDR

When setting up the LAWs for the DDR, if there was an error,
you got the not-so-helpful error text "ERROR" and nothing
else.  Not only is it non-informative, but it is also
pretty frustrating trying to grep for "ERROR" in the source.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agosbc8641d: fix LAW so board doesn't hang on DDR init
Paul Gortmaker [Wed, 30 Sep 2009 20:12:31 +0000 (16:12 -0400)]
sbc8641d: fix LAW so board doesn't hang on DDR init

All versions between now and since this commit:

  commit bd76729bcbfd64b5d016a9b936f058931fc06eaf
  MPC86xx: set CONFIG_MAX_MEM_MAPPED to 2G by default

will fail to allow the SBC8641D to get past DDR init, because the
LAW config was overlapping.  Eventually this board will do SPD
EEPROM config, but for now this gets the board working again.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agos5pc1xx: update cache rotine 20091016
Minkyu Kang [Fri, 16 Oct 2009 06:58:09 +0000 (15:58 +0900)]
s5pc1xx: update cache rotine

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Minkyu Kang [Fri, 16 Oct 2009 05:01:00 +0000 (14:01 +0900)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

14 years agoMerge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx
Minkyu Kang [Fri, 16 Oct 2009 02:15:54 +0000 (11:15 +0900)]
Merge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx

14 years agos5pc110: ipl: support 4096 byte ipl
Minkyu Kang [Fri, 16 Oct 2009 02:15:16 +0000 (11:15 +0900)]
s5pc110: ipl: support 4096 byte ipl

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Thu, 15 Oct 2009 20:13:37 +0000 (22:13 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

14 years agoMerge branch 'master' of jaehoon@party:/pub/git/u-boot-s5pc1xx
Jaehoon Chung [Thu, 15 Oct 2009 05:41:41 +0000 (14:41 +0900)]
Merge branch 'master' of jaehoon@party:/pub/git/u-boot-s5pc1xx

14 years agos5pc110:aquila: modify usbdown button
Jaehoon Chung [Thu, 15 Oct 2009 05:40:57 +0000 (14:40 +0900)]
s5pc110:aquila: modify usbdown button
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
14 years agos5pc1xx: fix comile warnings
Minkyu Kang [Thu, 15 Oct 2009 04:50:53 +0000 (13:50 +0900)]
s5pc1xx: fix comile warnings

fix the following comile warnings
warning: dereferencing type-punned pointer will break strict-aliasing rules

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>