kernel/u-boot.git
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>
14 years agos5pc110: aquila: Move MHL init from general init to usbdown
Kyungmin Park [Wed, 14 Oct 2009 07:00:12 +0000 (16:00 +0900)]
s5pc110: aquila: Move MHL init from general init to usbdown

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Apply HW revision 0.1
Kyungmin Park [Wed, 14 Oct 2009 02:44:32 +0000 (11:44 +0900)]
s5pc110: aquila: Apply HW revision 0.1

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agoMerge branch 'master' of kmpark@party:/pub/git/u-boot-s5pc1xx
Kyungmin Park [Wed, 14 Oct 2009 02:33:29 +0000 (11:33 +0900)]
Merge branch 'master' of kmpark@party:/pub/git/u-boot-s5pc1xx

14 years agos5pc110: aquila: Fix HW revision detection
Kyungmin Park [Wed, 14 Oct 2009 02:33:26 +0000 (11:33 +0900)]
s5pc110: aquila: Fix HW revision detection

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agoMerge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx
Minkyu Kang [Wed, 14 Oct 2009 02:31:43 +0000 (11:31 +0900)]
Merge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx

14 years agousbd: add support mmc download
Minkyu Kang [Wed, 14 Oct 2009 02:30:54 +0000 (11:30 +0900)]
usbd: add support mmc download

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: Add CODEC_LDO_EN gpio set for limo_universal and j1_b2
Joonyoung Shim [Wed, 14 Oct 2009 02:29:31 +0000 (11:29 +0900)]
s5pc110: aquila: Add CODEC_LDO_EN gpio set for limo_universal and j1_b2

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
14 years agos5pc110: aquila: Fix wrong board detection since typo
Kyungmin Park [Wed, 14 Oct 2009 01:15:17 +0000 (10:15 +0900)]
s5pc110: aquila: Fix wrong board detection since typo

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agoMerge branch 'master' of kdsoo@party:/pub/git/u-boot-s5pc1xx
Dongsoo Kim [Wed, 14 Oct 2009 00:44:09 +0000 (09:44 +0900)]
Merge branch 'master' of kdsoo@party:/pub/git/u-boot-s5pc1xx

Conflicts:

board/samsung/universal/universal.c

Signed-off-by: Dongsoo Kim <dongsoo45.kim@samsung.com>
14 years agoSiI9234 MHL initialize setting revised
Dongsoo Kim [Wed, 14 Oct 2009 00:26:43 +0000 (09:26 +0900)]
SiI9234 MHL initialize setting revised
Signed-off-by: Dongsoo Kim <dongsoo45.kim@samsung.com>
14 years agos5pc110: Update External Power down modes
Kyungmin Park [Wed, 14 Oct 2009 00:23:45 +0000 (09:23 +0900)]
s5pc110: Update External Power down modes

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Don't clear wakeup source status register
Kyungmin Park [Tue, 13 Oct 2009 08:35:09 +0000 (17:35 +0900)]
s5pc110: aquila: Don't clear wakeup source status register

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years ago5pc1xx: i2c-gpio: seperate the board specific features and move the code to SoC
Minkyu Kang [Tue, 13 Oct 2009 08:06:40 +0000 (17:06 +0900)]
5pc1xx: i2c-gpio: seperate the board specific features and move the code to SoC

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: Update powerdown modes
Kyungmin Park [Tue, 13 Oct 2009 07:11:55 +0000 (16:11 +0900)]
s5pc110: aquila: Update powerdown modes

Reduce the from 31mA to 15mA

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Update Powerdown modes registers
Kyungmin Park [Tue, 13 Oct 2009 05:16:37 +0000 (14:16 +0900)]
s5pc110: Update Powerdown modes registers
Reduce the about 5mA

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc1xx: gpio: use C structure and GPIO API functions
Minkyu Kang [Tue, 13 Oct 2009 05:05:16 +0000 (14:05 +0900)]
s5pc1xx: gpio: use C structure and GPIO API functions

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
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 agoRevert "s5pc110: Update Powerdown modes registers"
Minkyu Kang [Tue, 13 Oct 2009 04:54:17 +0000 (13:54 +0900)]
Revert "s5pc110: Update Powerdown modes registers"

This reverts commit 37e89a9972213767dfab5c677ff190af63eec310.

14 years agos5pc110: aquila: Don't need to set offset
Kyungmin Park [Tue, 13 Oct 2009 01:34:40 +0000 (10:34 +0900)]
s5pc110: aquila: Don't need to set offset

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Update Powerdown modes registers
Kyungmin Park [Tue, 13 Oct 2009 01:06:34 +0000 (10:06 +0900)]
s5pc110: Update Powerdown modes registers

Reduce the about 5mA

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc1xx: modem: set correct help message
Minkyu Kang [Mon, 12 Oct 2009 10:36:13 +0000 (19:36 +0900)]
s5pc1xx: modem: set correct help message

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: uart: use the lowercase and codes clean
Minkyu Kang [Mon, 12 Oct 2009 10:27:21 +0000 (19:27 +0900)]
s5pc1xx: uart: use the lowercase and codes clean

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: Makefile: build fix
Minkyu Kang [Mon, 12 Oct 2009 10:21:54 +0000 (19:21 +0900)]
s5pc1xx: Makefile: build fix

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: onenand: use C structure and codes clean
Minkyu Kang [Mon, 12 Oct 2009 10:21:22 +0000 (19:21 +0900)]
s5pc1xx: onenand: use C structure and codes clean

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: Makefile: codes clean
Minkyu Kang [Mon, 12 Oct 2009 10:00:29 +0000 (19:00 +0900)]
s5pc1xx: Makefile: codes clean

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: clock: use C structure and codes clean
Minkyu Kang [Mon, 12 Oct 2009 09:53:55 +0000 (18:53 +0900)]
s5pc1xx: clock: use C structure and codes clean

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, 12 Oct 2009 09:35:55 +0000 (18:35 +0900)]
Merge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx

14 years agos5pc110: aquila: Add Memory Power down modes
Kyungmin Park [Mon, 12 Oct 2009 08:16:52 +0000 (17:16 +0900)]
s5pc110: aquila: Add Memory Power down modes

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc1xx: timer: use the lowercase
Minkyu Kang [Mon, 12 Oct 2009 07:26:14 +0000 (16:26 +0900)]
s5pc1xx: timer: use the lowercase

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: cpu: codes clean
Minkyu Kang [Mon, 12 Oct 2009 07:24:42 +0000 (16:24 +0900)]
s5pc1xx: cpu: codes clean

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: remove TZPC init
Joonyoung Shim [Sat, 10 Oct 2009 04:55:44 +0000 (13:55 +0900)]
s5pc1xx: remove TZPC init

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
14 years agos5pc110: Detect Limo Real at suspend by H1 group IL01-20091009
Kyungmin Park [Fri, 9 Oct 2009 08:52:26 +0000 (17:52 +0900)]
s5pc110: Detect Limo Real at suspend by H1 group

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Fix Limo Real detection
Kyungmin Park [Fri, 9 Oct 2009 08:30:25 +0000 (17:30 +0900)]
s5pc110: Fix Limo Real detection

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Setup power down status
Kyungmin Park [Fri, 9 Oct 2009 08:30:12 +0000 (17:30 +0900)]
s5pc110: aquila: Setup power down status

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Fix Limo Real board detection after suspend
Kyungmin Park [Fri, 9 Oct 2009 04:27:10 +0000 (13:27 +0900)]
s5pc110: aquila: Fix Limo Real board detection after suspend

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Remove unnecessary check
Kyungmin Park [Thu, 8 Oct 2009 23:41:23 +0000 (08:41 +0900)]
s5pc110: aquila: Remove unnecessary check

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aqulia: set AP_PS_HOLD high
Kyungmin Park [Thu, 8 Oct 2009 11:27:28 +0000 (20:27 +0900)]
s5pc110: aqulia: set AP_PS_HOLD high

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: use gpio style operation
Kyungmin Park [Thu, 8 Oct 2009 10:19:12 +0000 (19:19 +0900)]
s5pc110: use gpio style operation

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Set high AP_PS_HOLD pin
Kyungmin Park [Thu, 8 Oct 2009 07:06:56 +0000 (16:06 +0900)]
s5pc110: Set high AP_PS_HOLD pin

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Fix wrong display debug message
Kyungmin Park [Thu, 8 Oct 2009 02:28:28 +0000 (11:28 +0900)]
s5pc110: aquila: Fix wrong display debug message

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Register based sleep & PMIC LDO command support
Kyungmin Park [Thu, 8 Oct 2009 02:20:31 +0000 (11:20 +0900)]
s5pc110: aquila: Register based sleep & PMIC LDO command support

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: sleep command support to test sleep
Kyungmin Park [Wed, 7 Oct 2009 02:12:36 +0000 (11:12 +0900)]
s5pc110: sleep command support to test sleep

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: universal: Delete unnecessary 2k & 4k IPL binary
Kyungmin Park [Wed, 7 Oct 2009 00:47:18 +0000 (09:47 +0900)]
s5pc110: universal: Delete unnecessary 2k & 4k IPL binary

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc1xx: universal: use the correct name
Minkyu Kang [Wed, 7 Oct 2009 00:33:38 +0000 (09:33 +0900)]
s5pc1xx: universal: use the correct name

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: mmc: code clean
Minkyu Kang [Tue, 6 Oct 2009 12:17:05 +0000 (21:17 +0900)]
s5pc110: mmc: code clean

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: support the SD/MMC Controller
Minkyu Kang [Tue, 6 Oct 2009 12:11:43 +0000 (21:11 +0900)]
s5pc110: support the SD/MMC Controller

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot
Kyungmin Park [Tue, 6 Oct 2009 10:37:37 +0000 (19:37 +0900)]
Merge branch 'master' of git://git.denx.de/u-boot

Conflicts:

Makefile
onenand_ipl/onenand_ipl.h
onenand_ipl/onenand_read.c

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Remove non-exist powerdown setting at Group H
Kyungmin Park [Tue, 6 Oct 2009 10:32:12 +0000 (19:32 +0900)]
s5pc110: Remove non-exist powerdown setting at Group H

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Disable H group powerdown modes
Kyungmin Park [Tue, 6 Oct 2009 08:08:50 +0000 (17:08 +0900)]
s5pc110: aquila: Disable H group powerdown modes

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: set usbdown button (volumedown & camera)
Jaehoon Chung [Tue, 6 Oct 2009 07:54:00 +0000 (16:54 +0900)]
s5pc110: aquila: set usbdown button (volumedown & camera)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
14 years agoAdd information about return values of xxx_eth_register() in documentation
Ben Warren [Mon, 5 Oct 2009 07:02:51 +0000 (00:02 -0700)]
Add information about return values of xxx_eth_register() in documentation

As discussed on mailing list, <0 indicates failure, >=0 indicates number
of interfaces found.

Also added blurb about private data

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agodocument network driver framework
Mike Frysinger [Wed, 9 Sep 2009 18:41:22 +0000 (14:41 -0400)]
document network driver framework

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet: kirkwood_egiga.c: fixed build warning
Prafulla Wadaskar [Wed, 9 Sep 2009 10:29:19 +0000 (15:59 +0530)]
net: kirkwood_egiga.c: fixed build warning

if link up detection code is disabled through config option, it gives build warning.
This patch fixes the same

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agoConvert SMC91111 Ethernet driver to CONFIG_NET_MULTI API
Ben Warren [Mon, 5 Oct 2009 05:37:03 +0000 (22:37 -0700)]
Convert SMC91111 Ethernet driver to CONFIG_NET_MULTI API

All in-tree boards that use this controller have CONFIG_NET_MULTI
added
Also:
  - changed CONFIG_DRIVER_SMC91111 to CONFIG_SMC91111
  - cleaned up line lengths
  - modified all boards that override weak function in this driver
  - modified all eeprom standalone apps to work with new driver
  - updated blackfin standalone EEPROM app after testing

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agonet: phy: mv88e61xx.c : fixed build warning
Prafulla Wadaskar [Mon, 21 Sep 2009 14:58:18 +0000 (20:28 +0530)]
net: phy: mv88e61xx.c : fixed build warning

following build warning was observed

mv88e61xx.c: In function â€˜mv88e61xx_busychk’:
mv88e61xx.c:208: warning: dereferencing type-punned pointer will break strict-aliasing rules

This patch fixes the same
Patch tested for rd6281a board build

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet: Fix problem with 405EZ ethernet interrupt
James Clough [Thu, 10 Sep 2009 07:11:50 +0000 (09:11 +0200)]
net: Fix problem with 405EZ ethernet interrupt

On 405EZ the RX-/TX-interrupts are coalesced into one IRQ bit in the
UIC. We need to acknowledge the RX-/TX-interrupts in the
SDR0_ICINTSTAT reg as well.

This problem was introduced with commit
d1631fe1 [ppc4xx: Consolidate PPC4xx UIC defines]

Signed-off-by: James Clough <james@rtetc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agonet: add random_port() prototype
Mike Frysinger [Wed, 2 Sep 2009 08:18:55 +0000 (04:18 -0400)]
net: add random_port() prototype

The random_port() is meant to be used by other net code, but without a
prototype, we get fun warnings like:
dns.c: In function 'DnsSend':
dns.c:89: warning: implicit declaration of function 'random_port'

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Sat, 3 Oct 2009 21:40:35 +0000 (23:40 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Sat, 3 Oct 2009 21:38:55 +0000 (23:38 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

14 years agoppc4xx: Add SDRAM detection for PMC440 boards
Matthias Fuchs [Wed, 30 Sep 2009 09:55:04 +0000 (11:55 +0200)]
ppc4xx: Add SDRAM detection for PMC440 boards

This patch adds support to detect the amount of DDR2 SDRAM
on PMC440 modules. Detection is done by probing through
a list of available and supported hardware configurations
from 1GByte down to 256MB.

The static TLB entry is replaced by dynamically created entries.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Merge PPC4xx DDR and DDR2 ECC handling
Stefan Roese [Mon, 28 Sep 2009 15:33:45 +0000 (17:33 +0200)]
ppc4xx: Merge PPC4xx DDR and DDR2 ECC handling

This patch merges the ECC handling (ECC parity byte writing) into one
file (ecc.c) for all PPC4xx SDRAM controllers except for PPC440EPx/GRx.
This exception is because only those PPC's use the completely different
Denali SDRAM controller core.

Previously we had two routines to generate/write the ECC parity bytes.
With this patch we now only have one core function left.

Tested on Kilauea (no ECC) and Katmai (with and without ECC).

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Felix Radensky <felix@embedded-sol.com>
Cc: Grant Erickson <gerickson@nuovations.com>
Cc: Pieter Voorthuijsen <pv@prodrive.nl>
14 years agoppc4xx: Reorganize DDR2 ECC handling
Felix Radensky [Sun, 27 Sep 2009 21:56:12 +0000 (23:56 +0200)]
ppc4xx: Reorganize DDR2 ECC handling

Reorganize DDR2 ECC handling to use common code for
SPD DIMMs and soldered SDRAM. Also, use common code
to display SDRAM info (ECC, CAS latency) for SPD and
soldered SDRAM variants.

Signed-off-by: Felix Radensky <felix@embedded-sol.com>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Wed, 30 Sep 2009 21:39:36 +0000 (23:39 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Wed, 30 Sep 2009 21:34:36 +0000 (23:34 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-ubi
Wolfgang Denk [Wed, 30 Sep 2009 21:28:18 +0000 (23:28 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ubi

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Wed, 30 Sep 2009 21:26:59 +0000 (23:26 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-i2c
Wolfgang Denk [Wed, 30 Sep 2009 21:24:10 +0000 (23:24 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-i2c

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Wed, 30 Sep 2009 21:22:46 +0000 (23:22 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

14 years agoMerge branch 'master' of git://git.denx.de/u-boot-fdt
Wolfgang Denk [Wed, 30 Sep 2009 21:16:49 +0000 (23:16 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-fdt

14 years agoBlackfin: update default console= settings
Mike Frysinger [Wed, 30 Sep 2009 07:09:16 +0000 (03:09 -0400)]
Blackfin: update default console= settings

The Linux kernel has changed the way it numbers serial ports, so update
the default command line to match it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoBlackfin: bf533-ezkit: update env location
Mike Frysinger [Mon, 21 Sep 2009 22:04:49 +0000 (18:04 -0400)]
Blackfin: bf533-ezkit: update env location

The u-boot image has outgrown the current space and overflowed into the
env sector.  So move the env to the next available sector (we've already
allocated the first few sectors anyways for u-boot).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoppc/85xx: get_law_entry isn't used in CONFIG_NAND_SPL
Kumar Gala [Wed, 30 Sep 2009 13:39:44 +0000 (08:39 -0500)]
ppc/85xx: get_law_entry isn't used in CONFIG_NAND_SPL

Don't include get_law_entry as part of the NAND_SPL build since the
code isnt used.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoAdd README.mpc8536ds
Mingkai Hu [Wed, 23 Sep 2009 07:20:39 +0000 (15:20 +0800)]
Add README.mpc8536ds

Add boot from NAND/eSDHC/eSPI description

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoOn-chip ROM boot: MPC8536DS support
Mingkai Hu [Wed, 23 Sep 2009 07:20:38 +0000 (15:20 +0800)]
On-chip ROM boot: MPC8536DS support

The MPC8536E is capable of booting from the on-chip ROM - boot from
eSDHC and boot from eSPI. When power on, the porcessor excutes the
ROM code to initialize the eSPI/eSDHC controller, and loads the mian
U-Boot image from the memory device that interfaced to the controller,
such as the SDCard or SPI EEPROM, to the target memory, e.g. SDRAM or
L2SRAM, then boot from it.

The memory device should contain a specific data structure with control
word and config word at the fixed address. The config word direct the
process how to config the memory device, and the control word direct
the processor where to find the image on the memory device, or where
copy the main image to. The user can use any method to store the data
structure to the memory device, only if store it on the assigned address.

The on-chip ROM code will map the whole 4GB address space by setting
entry0 in the TLB1, so the main image need to switch to Address space 1
to disable this mapping and map the address space again.

This patch implements loading the mian U-Boot image into L2SRAM, so
the image can configure the system memory by using SPD EEPROM.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoNAND boot: MPC8536DS support
Mingkai Hu [Wed, 23 Sep 2009 07:20:37 +0000 (15:20 +0800)]
NAND boot: MPC8536DS support

MPC8536E can support booting from NAND flash which uses the
image u-boot-nand.bin. This image contains two parts: a 4K
NAND loader and a main U-Boot image. The former is appended
to the latter to produce u-boot-nand.bin. The 4K NAND loader
includes the corresponding nand_spl directory, along with the
code twisted by CONFIG_NAND_SPL. The main U-Boot image just
like a general U-Boot image except the parts that included by
CONFIG_SYS_RAMBOOT.

When power on, eLBC will automatically load from bank 0 the
4K NAND loader into the FCM buffer RAM where CPU can execute
the boot code directly. In the first stage, the NAND loader
copies itself to RAM or L2SRAM to free up the FCM buffer RAM,
then loads the main image from NAND flash to RAM or L2SRAM
and boot from it.

This patch implements the NAND loader to load the main image
into L2SRAM, so the main image can configure the RAM by using
SPD EEPROM. In the first stage, the NAND loader copies itself
to the second to last 4K address space, and uses the last 4K
address space as the initial RAM for stack.

Obviously, the size of L2SRAM shouldn't be less than the size
of the image used. If so, the workaround is to generate another
image that includes the code to configure the RAM by SPD and
load it to L2SRAM first, then relocate the main image to RAM
to boot up.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agompc8536: fix board config file line length
Mingkai Hu [Wed, 23 Sep 2009 07:19:32 +0000 (15:19 +0800)]
mpc8536: fix board config file line length

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agosbc8548: reclaim wasted sector in boot flash
Paul Gortmaker [Fri, 25 Sep 2009 15:14:11 +0000 (11:14 -0400)]
sbc8548: reclaim wasted sector in boot flash

By nature of being based off the MPC8548CDS board, this
board inherited an ENV_SIZE setting of 256k.  But since
it has a smaller flash device (8MB soldered on), it has
a native sector size of 128k, and hence the ENV_SIZE was
causing 2 sectors to be used for the environment.

By removing the unused sector, we can push TEXT_BASE up
closer to the end of address space and reclaim that
sector for any other application.  This also fixes the
mismatch between TEXT_BASE and MONITOR_LEN reported by
Kumar earlier.

Since this board also supports the ability to boot off
the 64MB SODIMM flash, this change is forward looking
with that in mind; i.e. the settings for MONITOR_LEN
and ENV_SIZE will work when the 512k sectors of the
SODIMM flash are used for alternate boot in the future.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agos5pc110: aquila: Apply Power Down mode values
Kyungmin Park [Wed, 30 Sep 2009 10:54:06 +0000 (19:54 +0900)]
s5pc110: aquila: Apply Power Down mode values

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Detect TA or USB
Kyungmin Park [Wed, 30 Sep 2009 08:34:25 +0000 (17:34 +0900)]
s5pc110: Detect TA or USB

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Set power down mode registers
Kyungmin Park [Wed, 30 Sep 2009 04:42:15 +0000 (13:42 +0900)]
s5pc110: aquila: Set power down mode registers

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Fix wrong GPIO offsets
Kyungmin Park [Wed, 30 Sep 2009 02:02:36 +0000 (11:02 +0900)]
s5pc110: Fix wrong GPIO offsets

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agoppc/85xx: Clean up immap_85xx.h
Kumar Gala [Tue, 29 Sep 2009 02:38:00 +0000 (21:38 -0500)]
ppc/85xx: Clean up immap_85xx.h

* Converted all white space to tabs
* Converted all types to u8/u16/u32
* Reduce lines to fit in 80 columns
* Renamed MPC85xx_{Q,B}MAN -> FSL_CORENET_{Q,B}MAN

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agos5pc110: Handle revision fancy more
Kyungmin Park [Tue, 29 Sep 2009 01:20:26 +0000 (10:20 +0900)]
s5pc110: Handle revision fancy more

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Can configure EPLL 50MHz
Kyungmin Park [Tue, 29 Sep 2009 00:59:16 +0000 (09:59 +0900)]
s5pc110: aquila: Can configure EPLL 50MHz

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agoNAND: davinci: Fix warnings when 4-bit ECC not used
Scott Wood [Mon, 28 Sep 2009 21:33:18 +0000 (16:33 -0500)]
NAND: davinci: Fix warnings when 4-bit ECC not used

I accidentally left v2 of "NAND: DaVinci:Adding 4 BIT ECC support"
applied when I pushed the tree last merge window, and missed these fixes
which were in v3 of that patch.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
14 years agoRefactor OneNAND IPL code
Kyungmin Park [Tue, 22 Sep 2009 00:05:00 +0000 (09:05 +0900)]
Refactor OneNAND IPL code

Refactoring the OneNAND IPL code

and some minor fixed:
- Remove unnecessary header file
- Fix wrong access at read interrupt
- The recent OneNAND has 4KiB pagesize

Also Board can override OneNAND IPL image

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agoMIPS: VCT: Remove read_spareram reference
Shinya Kuribayashi [Sat, 12 Sep 2009 09:01:40 +0000 (18:01 +0900)]
MIPS: VCT: Remove read_spareram reference

The commit ecad289fc6bd9d89ef4d5093cc7b6fd712fd0d29 (OneNAND: Remove
unused read_spareram and add unlock_all as kernel does) forgot to remove
a local reference to read_spareram in board/micronas/vct/ebi_onenand.c,
which causes the following build failure when configured with OneNAND:

ebi_onenand.c: In function 'onenand_board_init':
ebi_onenand.c:196: error: 'struct onenand_chip' has no member named 'read_spareram'
make[1]: *** [ebi_onenand.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [board/micronas/vct/libvct.a] Error 2

Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
Acked-by: Stefan Roese <sr@denx.de>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
14 years agoubifs: Correct dereferencing of files-after-symlinks
Simon Kagstrom [Fri, 25 Sep 2009 12:05:57 +0000 (14:05 +0200)]
ubifs: Correct dereferencing of files-after-symlinks

Files in directories which are symlinked to were not dereferenced
correctly in last commit. E.g., with a symlink

   /boot/lnk -> /boot/real_dir

loading

   /boot/lnk/uImage

will fail. This patch fixes that by simply seeing to it that the target
base directory has a slash after it.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agos5pc110: aquila: Set XCLKOUT as 20MHz
Kyungmin Park [Mon, 28 Sep 2009 10:53:52 +0000 (19:53 +0900)]
s5pc110: aquila: Set XCLKOUT as 20MHz

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agoppc4xx: Remove mtsdram0() marcos and use common mtsdram() instead
Stefan Roese [Thu, 24 Sep 2009 12:10:30 +0000 (14:10 +0200)]
ppc4xx: Remove mtsdram0() marcos and use common mtsdram() instead

Additionally some whitespace coding style fixes.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Convert PPC4xx SDRAM defines from lower case to upper case
Stefan Roese [Thu, 24 Sep 2009 11:59:57 +0000 (13:59 +0200)]
ppc4xx: Convert PPC4xx SDRAM defines from lower case to upper case

The latest PPC4xx register cleanup patch missed some SDRAM defines.
This patch now changes lower case UIC defines to upper case. Also
some names are changed to match the naming in the IBM/AMCC users
manuals (e.g. mem_mcopt1 -> SDRAM0_CFG).

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoppc4xx: Convert PPC4xx UIC defines from lower case to upper case
Stefan Roese [Thu, 24 Sep 2009 07:55:50 +0000 (09:55 +0200)]
ppc4xx: Convert PPC4xx UIC defines from lower case to upper case

The latest PPC4xx register cleanup patch missed the UIC defines.
This patch now changes lower case UIC defines to upper case.

Signed-off-by: Stefan Roese <sr@denx.de>
14 years agofsl_i2c: Do not generate STOP after read.
Joakim Tjernlund [Tue, 22 Sep 2009 11:40:44 +0000 (13:40 +0200)]
fsl_i2c: Do not generate STOP after read.

__i2c_read always ends with a STOP condition thereby releasing
the bus. It is cleaner to do the STOP magic in i2c_read(), like
i2c_write() does. This may also help future multimaster systems which
wants to hold on to the bus until all transactions are finished.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
14 years agofsl_i2c: Impl. AN2919, rev 5 to calculate FDR/DFSR
Joakim Tjernlund [Thu, 17 Sep 2009 09:07:17 +0000 (11:07 +0200)]
fsl_i2c: Impl. AN2919, rev 5 to calculate FDR/DFSR

The latest AN2919 has changed the way FDR/DFSR should be calculated.
Update the driver according to spec. However, Condition 2
is not accounted for as it is not clear how to do so.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
14 years agofsl_i2c: Add CONFIG_FSL_I2C_CUSTOM_{DFSR/FDR}
Joakim Tjernlund [Thu, 17 Sep 2009 09:07:16 +0000 (11:07 +0200)]
fsl_i2c: Add CONFIG_FSL_I2C_CUSTOM_{DFSR/FDR}

Some boards need a higher DFSR value than the spec currently
recommends so give these boards the means to define there own.

For completeness, add CONFIG_FSL_I2C_CUSTOM_FDR too.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
14 years agofsl_i2c: Wait for STOP condition to propagate
Joakim Tjernlund [Thu, 17 Sep 2009 09:07:15 +0000 (11:07 +0200)]
fsl_i2c: Wait for STOP condition to propagate

After issuing a STOP one must wait until the STOP has completed
on the bus before doing something new to the controller.

Also add an extra read of SR as the manual mentions doing that
is a good idea.

Remove surplus write of CR just before a write, isn't required and
could potentially disturb the I2C bus.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
14 years agompc83xx: retain POR values of non-configured ACR, SPCR, SCCR, and LCRR bitfields
Kim Phillips [Fri, 25 Sep 2009 23:19:44 +0000 (18:19 -0500)]
mpc83xx: retain POR values of non-configured ACR, SPCR, SCCR, and LCRR bitfields

some LCRR bits are not documented throughout the 83xx family RMs.
New board porters copying similar board configurations might omit
setting e.g., DBYP since it was not documented in their SoC's RM.

Prevent them bricking their board by retaining power on reset values
in bit fields that the board porter doesn't explicitly configure
via CONFIG_SYS_<registername>_<bitfield> assignments in the board
config file.

also move LCRR assignment to cpu_init_r[am] to help ensure no
transactions are being executed via the local bus while CLKDIV is being
modified.

also start to use i/o accessors.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agosbc8349: tidy up Makefile to use new configuration script.
Paul Gortmaker [Mon, 21 Sep 2009 21:44:51 +0000 (17:44 -0400)]
sbc8349: tidy up Makefile to use new configuration script.

Commit 804d83a5 allows us to move all the configuration
variation tweaks out of the top level Makefile and down
into the board config header.  This takes advantage of
that for the sbc8349 board.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
14 years agompc83xx: mpc8360emds: Add QE USB device tree fixups
Anton Vorontsov [Wed, 16 Sep 2009 19:22:08 +0000 (23:22 +0400)]
mpc83xx: mpc8360emds: Add QE USB device tree fixups

With this patch we can change QE USB mode without need to hand-edit
the device tree.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>