platform/kernel/u-boot.git
13 years agoARM: Add Calxeda Highbank platform
Rob Herring [Mon, 24 Oct 2011 08:50:20 +0000 (08:50 +0000)]
ARM: Add Calxeda Highbank platform

Add basic support for Calxeda Highbank platform. Only minimal support with
serial and SATA are included.

Signed-off-by: Jason Hobbs <jason.hobbs@calxeda.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agodkb: make mmc command as default enabled
Lei Wen [Mon, 3 Oct 2011 20:33:43 +0000 (20:33 +0000)]
dkb: make mmc command as default enabled

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoMarvell: dkb: add mmc support
Lei Wen [Mon, 3 Oct 2011 20:33:42 +0000 (20:33 +0000)]
Marvell: dkb: add mmc support

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoARM: pantheon: add mmc definition
Lei Wen [Mon, 3 Oct 2011 20:33:41 +0000 (20:33 +0000)]
ARM: pantheon: add mmc definition

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agodavinci: remove config.mk file from the sources
Vladimir Zapolskiy [Mon, 17 Oct 2011 08:46:53 +0000 (08:46 +0000)]
davinci: remove config.mk file from the sources

To compile TI Davinci SoC support the identical config.mk file from
the cpu directory shall be used.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM:AM33XX: Add support for TI AM335X EVM
Chandan Nath [Fri, 14 Oct 2011 02:58:26 +0000 (02:58 +0000)]
ARM:AM33XX: Add support for TI AM335X EVM

This patch adds basic support for booting the board.
This patch adds support for the UART necessary to
get to the u-boot prompt.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM:AM33XX: Added timer support
Chandan Nath [Fri, 14 Oct 2011 02:58:25 +0000 (02:58 +0000)]
ARM:AM33XX: Added timer support

This patch adds timer support for AM33xx platform.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM:AM33XX: Add emif/ddr support
Chandan Nath [Fri, 14 Oct 2011 02:58:24 +0000 (02:58 +0000)]
ARM:AM33XX: Add emif/ddr support

This patch adds AM33xx emif/ddr support along with board specific
defines.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM:AM33XX: Add clock definitions
Chandan Nath [Fri, 14 Oct 2011 02:58:23 +0000 (02:58 +0000)]
ARM:AM33XX: Add clock definitions

This patch adds basic clock definition of am33xx SoC.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM:AM33XX: Added support for AM33xx
Chandan Nath [Fri, 14 Oct 2011 02:58:22 +0000 (02:58 +0000)]
ARM:AM33XX: Added support for AM33xx

This patch adds basic support for AM33xx which is based on ARMV7
Cortex A8 CPU.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3/emif4: fix registers definition
Ilya Yanok [Thu, 13 Oct 2011 11:18:12 +0000 (11:18 +0000)]
omap3/emif4: fix registers definition

Fix EMIF4 registers definition.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodavinci: remove obsolete macro CONFIG_EMAC_MDIO_PHY_NUM
Manjunath Hadli [Thu, 13 Oct 2011 03:40:55 +0000 (03:40 +0000)]
davinci: remove obsolete macro CONFIG_EMAC_MDIO_PHY_NUM

remove macro CONFIG_EMAC_MDIO_PHY_NUM and depending macro EMAC_MDIO_PHY_NUM
as they are no longer needed with the support for more than 1 PHYs in davinci
emac driver.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodavinci: emac: add support for more than 1 PHYs
Manjunath Hadli [Thu, 13 Oct 2011 03:40:54 +0000 (03:40 +0000)]
davinci: emac: add support for more than 1 PHYs

add support for more than 1 PHYs. Many of the davinci platforms have more
than 1 PHYs on thier board. This patch extends support in davinci emac
driver for upto 3 PHYs.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodavinci: emac: add new features to autonegotiate for EMAC
Manjunath Hadli [Thu, 13 Oct 2011 03:40:53 +0000 (03:40 +0000)]
davinci: emac: add new features to autonegotiate for EMAC

add more features like DUPLEX, 100MB link speed etc to auto negotiate
in EMAC driver. EMAC controller autonegotiates for these features with
PHYs which are on the board.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda850evm: Move LPSC configuration to board_early_init_f()
Christian Riesch [Thu, 13 Oct 2011 00:52:29 +0000 (00:52 +0000)]
da850evm: Move LPSC configuration to board_early_init_f()

Since commit f1d2b313c9eb6808d30c16a9eb5251240452a56c the serial
port of the da850evm is accessed before the UART2 peripheral of
the SoC is powered on in the function board_init() in
board/davinci/da8xxevm/da850evm.c.

When u-boot is used in conjunction with the UBL (user boot loader, see
doc/README.davinci) on this board, the UART2 peripheral is already
turned on by UBL at the time u-boot is started. Hence, the wrong
initialization sequence is not noticed by most users. However, if UBL is not
used, u-boot must power on the peripheral before using it.

This patch adds a board_early_init_f() function for the LPSC
configuration to the da850evm board configuration.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4_panda: Build in cmd_gpio support on panda
Joe Hershberger [Wed, 12 Oct 2011 10:31:45 +0000 (10:31 +0000)]
omap4_panda: Build in cmd_gpio support on panda

Enable the gpio command

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: Don't use gpio_free to change direction to input
Joe Hershberger [Wed, 12 Oct 2011 10:31:44 +0000 (10:31 +0000)]
omap: Don't use gpio_free to change direction to input

gpio_free() should not have the side effect of setting the line to input since this prevents the gpio command from being able to set a line as output.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agommc: omap: Allow OMAP_HSMMC[23]_BASE to be unset
Tom Rini [Wed, 12 Oct 2011 06:20:50 +0000 (06:20 +0000)]
mmc: omap: Allow OMAP_HSMMC[23]_BASE to be unset

Not all omap families define OMAP_HSMMC[23]_BASE so condition those
cases in omap_mmc_init().

Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: overo : Add environment variable optargs to bootargs
Philip Balister [Tue, 11 Oct 2011 11:23:23 +0000 (11:23 +0000)]
OMAP3: overo : Add environment variable optargs to bootargs

This allows the user can easily add extra kernel arguments. Very helpful
for reserving memory for the DSP without rewriting the entire kernel
argument line.

Signed-off-by: Philip Balister <philip@opensdr.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: overo: Move ethernet CS4 configuration to execute based on board id
Philip Balister [Tue, 11 Oct 2011 11:23:22 +0000 (11:23 +0000)]
OMAP3: overo: Move ethernet CS4 configuration to execute based on board id

By moving the CS4 configuration into the board specific configuration, it
is left free for custom carrier boards. The USRP-E1XX series uses
CS4 to control access to an FPGA, so without this patch the device driver
cannot claim CS4.

Signed-off-by: Philip Balister <philip@opensdr.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: overo : Use ttyO2 instead of ttyS2.
Philip Balister [Tue, 11 Oct 2011 11:23:21 +0000 (11:23 +0000)]
OMAP3: overo : Use ttyO2 instead of ttyS2.

Starting with kernel 2.6.37, the serial ports on the OMAP3 are called
ttyOX, not ttySX.

Signed-off-by: Philip Balister <philip@opensdr.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda830: add support for NAND boot mode
Manjunath Hadli [Fri, 7 Oct 2011 23:38:39 +0000 (23:38 +0000)]
da830: add support for NAND boot mode

Add support for enabling NAND boot mode in configuration file and
add correspanding pinmux support, nand initialize function in board file.
The size required for environment variables not more than 10KB
the CONFIG_ENV_SIZE is set to 10KB from (512 << 10).

Acked-by: Nick Thompson <nick.thompson@ge.com>
Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodm36x: revert cache disable patch
Manjunath Hadli [Fri, 7 Oct 2011 23:34:37 +0000 (23:34 +0000)]
dm36x: revert cache disable patch

revert commit 98c19aff9524e1d0dd6bf39bf7bde5644f121feb as the
disabling of cache need not be done explicitly. Subsequent
patches to new cache management framework has fixed it.
EMAC issue with cache coherency still exists when cahces are
enabled.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodm644X: revert cache disable patch
Manjunath Hadli [Fri, 7 Oct 2011 23:33:32 +0000 (23:33 +0000)]
dm644X: revert cache disable patch

revert commit 913a39e9aa4d935948d41cd727d53f5878414a77 as the
disabling of cache need not be done explicitly. Subsequent
patches to new cache management framework has fixed it.
EMAC issue with cache coherency still exists when cahces are
enabled.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodevkit8000: Add malloc space
Tom Rini [Tue, 18 Oct 2011 17:47:22 +0000 (10:47 -0700)]
devkit8000: Add malloc space

With malloc support being a new requirement for all ARM SPL
implementations, define a small area for use on devkit8000.

Cc: Frederik Kriewitz <frederik@kriewitz.eu>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: spl: fix build break due to changes in FAT
Aneesh V [Fri, 21 Oct 2011 16:29:34 +0000 (12:29 -0400)]
omap: spl: fix build break due to changes in FAT

FAT library now uses malloc() and free(). But SPL doesn't
have heap until now. Setup a heap in SDRAM to fix this issue.

However this increases SPL footprint beyond the available SRAM
budget. So, compile out some fancy features in the SDARM init
bring back footprint under control

CC: Sandeep Paulraj <s-paulraj@ti.com>
CC: Wolfgang Denk <wd@denx.de>
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3 SPL: Provide weak omap_rev_string
Tom Rini [Tue, 4 Oct 2011 04:59:23 +0000 (04:59 +0000)]
OMAP3 SPL: Provide weak omap_rev_string

We add an weak version of omap_rev_string in omap-common/spl.c
and while at it drop the omap3 version.  Move the prototype over
to <asm/omap_common.h> with the other SPL functions.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: beagle: Use ubifs instead of jffs2 for nand boot
Steve Sakoman [Fri, 30 Sep 2011 09:29:11 +0000 (09:29 +0000)]
omap: beagle: Use ubifs instead of jffs2 for nand boot

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Acked-by: Koen Kooi <k-kooi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: overo: Disable pull-ups on camera PCLK, HS and VS signals
Steve Sakoman [Fri, 30 Sep 2011 09:08:36 +0000 (09:08 +0000)]
omap: overo: Disable pull-ups on camera PCLK, HS and VS signals

The level shifters used on the Caspa camera module have a 4k output
impedance. Combined with the 100uA pull-up resistors in the OMAP3,
this raises the ground level to 400mV. Adding crosstalk between the
pixel clock and the HS/VS signals on the flat cable (a ground line in
between would have been nice), logic 0 levels can raise up to 650mV.
This exceeds the camera input pins VIL maximum voltage.  This change
suggested-by Laurent Pinchart

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: overo: Configure mux for gpio10
Steve Sakoman [Fri, 30 Sep 2011 09:04:14 +0000 (09:04 +0000)]
omap: overo: Configure mux for gpio10

This pad was previously configured for sysclkout_1.  This patch changes
the configuration to gpio_10 to reduce radiated noise from the 26Mhz
clock, as well as make the pin more generally useful.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Acked-by: Philip Balister <philip@opensdr.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoSPL: Add DMA library
Simon Schwarz [Wed, 28 Sep 2011 05:00:27 +0000 (05:00 +0000)]
SPL: Add DMA library

Adding a DMA library to the SPL. It is used if CONFIG_SPL_DMA_SUPPORT is
defined.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3: Add interface for omap3 DMA
Simon Schwarz [Wed, 28 Sep 2011 05:00:26 +0000 (05:00 +0000)]
omap3: Add interface for omap3 DMA

Adds an interface to use the OMAP3 DMA.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3: Add DMA register accessors
Simon Schwarz [Wed, 28 Sep 2011 05:00:25 +0000 (05:00 +0000)]
omap3: Add DMA register accessors

Adding the register definitions for omap3 DMA controller to cpu.h

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3: Add Base register for DMA
Simon Schwarz [Wed, 28 Sep 2011 05:00:24 +0000 (05:00 +0000)]
omap3: Add Base register for DMA

Adding the base register address of OMAP3 DMA controller.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm, davinci: add missing LSPC define for MMC/SD1
Heiko Schocher [Tue, 27 Sep 2011 19:40:41 +0000 (19:40 +0000)]
arm, davinci: add missing LSPC define for MMC/SD1

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoU-Boot/SPL: omap4: Make ddr pre-calculated timings as default.
SRICHARAN R [Tue, 27 Sep 2011 01:43:18 +0000 (01:43 +0000)]
U-Boot/SPL: omap4: Make ddr pre-calculated timings as default.

All ddr configurations(geometry/timings) are done automatically
by detecting the device connected at run time. Though this
is a useful feature, making this as a default setting increases
the code size by about 2K bytes. This is quite big, especially
in the case of SPL which runs from a smaller SRAM. So do not
use this feature as the default setting, instead use the
precalculated tables.

Signed-off-by: sricharan <r.sricharan@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci: correct MDSTAT.STATE mask
Sergei Shtylyov [Fri, 23 Sep 2011 04:29:15 +0000 (04:29 +0000)]
DaVinci: correct MDSTAT.STATE mask

MDSTAT.STATE occupies bits 0..5 according to all available documentation, so fix
the mask which previously was leaving out the intermediate state indicator bit.

While at it, introduce two #define's for that mask -- unfortunately, we can't
use a single #define as the assembly code can't include <asm/arch/hardware.h>
due to C-specfic constructs in it.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: splitting padconfs into common, 4430 and 4460
Ricardo Salveti de Araujo [Wed, 21 Sep 2011 10:17:31 +0000 (10:17 +0000)]
omap4: splitting padconfs into common, 4430 and 4460

Not all padconfs are the same between 4430 and 4460, so instead of
working around this with an if, we should have an specific padconf
structure for both chips (like handling the differences between the LEDs
GPIOs and TPS).

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: adding revision detection for 4460 ES1.1
Ricardo Salveti de Araujo [Wed, 21 Sep 2011 10:17:30 +0000 (10:17 +0000)]
omap4: adding revision detection for 4460 ES1.1

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
 2 files changed, 17 insertions(+), 1 deletions(-)
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: replacing OMAP4_CONTROL with OMAP4430_CONTROL
Ricardo Salveti de Araujo [Wed, 21 Sep 2011 10:17:29 +0000 (10:17 +0000)]
omap4: replacing OMAP4_CONTROL with OMAP4430_CONTROL

OMAP4460 has a different set of values for the ID code, so moving the
old ones to be related just with 4430.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agogplug: fixed build error as a result of code cleanup patch
Prafulla Wadaskar [Tue, 18 Oct 2011 14:35:47 +0000 (20:05 +0530)]
gplug: fixed build error as a result of code cleanup patch

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
13 years agokirkwood_spi: add dummy spi_init()
Michael Walle [Tue, 18 Oct 2011 14:42:00 +0000 (20:12 +0530)]
kirkwood_spi: add dummy spi_init()

The spi_init() function is missing. Add it.

Signed-off-by: Michael Walle <michael@walle.cc>
13 years agogpio: mvmfp: reduce include platform file
Lei Wen [Tue, 18 Oct 2011 14:41:55 +0000 (20:11 +0530)]
gpio: mvmfp: reduce include platform file

Build pass with following config:
dkb_config
aspenite_config

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoARM: orion5x: reduce dependence of including platform file
Lei Wen [Mon, 24 Oct 2011 16:27:32 +0000 (16:27 +0000)]
ARM: orion5x: reduce dependence of including platform file

For files like the drivers/serial/serial.c, it must include the
platform file, as the CONFIG_SYS_NS16550_COM1 must reference to
the definition in the platform definition files.

Include the platform definition file in the config file, so that it
would decouple the dependence for the driver files.

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoserial: reduce include platform file for marvell chip
Lei Wen [Tue, 18 Oct 2011 14:41:48 +0000 (20:11 +0530)]
serial: reduce include platform file for marvell chip

Build pass with following config:
dkb_config
aspenite_config
edminiv2_config
openrd_ultimate_config
sheevaplug_config
mv88f6281gtw_ge_config
rd6281a_config
guruplug_config
km_kirkwood_config

Signed-off-by: Lei Wen <leiwen@marvell.com>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agoARM: kirkwood: reduce dependence of including platform file
Lei Wen [Tue, 18 Oct 2011 14:41:42 +0000 (20:11 +0530)]
ARM: kirkwood: reduce dependence of including platform file

For files like the drivers/serial/serial.c, it must include the
platform file, as the CONFIG_SYS_NS16550_COM1 must reference to the
definition in the platform definition files.

Include the platform definition file in the config file, so that it
would decouple the dependence for the driver files.

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoARM: armada100: reduce dependence of including platform file
Lei Wen [Tue, 18 Oct 2011 14:20:48 +0000 (19:50 +0530)]
ARM: armada100: reduce dependence of including platform file

For files like the drivers/serial/serial.c, it must include the
platform file, as the CONFIG_SYS_NS16550_COM1 must reference to the
definition in the platform definition files.

Include the platform definition file in the config file, so that it
would decouple the dependence for the driver files.

Updated cpu.h to remove build errors for gplugd board (by prafulla)

Signed-off-by: Lei Wen <leiwen@marvell.com>
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
13 years agoARM: pantheon: reduce dependence of including platform file
Lei Wen [Tue, 18 Oct 2011 13:51:33 +0000 (19:21 +0530)]
ARM: pantheon: reduce dependence of including platform file

For files like the drivers/serial/serial.c, it must include the platform
file, as the CONFIG_SYS_NS16550_COM1 must reference to the definition in
the platform definition files.

Include the platform definition file in the config file, so that it
would decouple the dependence for the driver files.

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoArmada100: Add env storage support for Marvell gplugD
Ajay Bhargav [Mon, 3 Oct 2011 08:30:58 +0000 (14:00 +0530)]
Armada100: Add env storage support for Marvell gplugD

This patch adds support for envrionment varaible storage in SPI flash
for Marvell gplugD.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
13 years agoArmada100: Add SPI flash support for Marvell gplugD
Ajay Bhargav [Mon, 3 Oct 2011 08:30:58 +0000 (14:00 +0530)]
Armada100: Add SPI flash support for Marvell gplugD

This patch enables Atmel AT45 SPI flash support for Marvell gplugD
Enables SF commands.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
13 years agoArmada100: Add SPI support for Marvell gplugD
Ajay Bhargav [Mon, 3 Oct 2011 08:30:57 +0000 (14:00 +0530)]
Armada100: Add SPI support for Marvell gplugD

This patch add SPI driver support for Marvell gplugD

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
13 years agoSPI: Add SPI driver support for Marvell Armada100
Ajay Bhargav [Mon, 3 Oct 2011 08:30:57 +0000 (14:00 +0530)]
SPI: Add SPI driver support for Marvell Armada100

This patch provides support for SPI emulated over SSP for Marvell
Armada100 SOC.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
13 years agodreamplug: initial board support.
Jason Cooper [Mon, 3 Oct 2011 08:19:53 +0000 (13:49 +0530)]
dreamplug: initial board support.

Copied wholeheartedly from board/Marvell/guruplug and modified to add support
for SPI NOR flash.

CONFIG_MACH_DREAMPLUG defined in include/configs/dreamplug.h until Linus's
kernel.org tree adds it to mach-types.h.  Once it trickles down, the definition
can be removed from include/configs/dreamplug.h.

Signed-off-by: Jason Cooper <u-boot@lakedaemon.net>
13 years agoimx: fix coding style
Fabio Estevam [Thu, 13 Oct 2011 05:34:59 +0000 (05:34 +0000)]
imx: fix coding style

Fix checkpatch warning and errors in several i.MX related files.

While at it also address a checkpatch warning at arch/arm/cpu/armv7/mx5/soc.c
regarding the usage of extern in a C file.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agomisc: pmic: drop old Freescale's pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:35:14 +0000 (11:35 +0200)]
misc: pmic: drop old Freescale's pmic driver

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMX31: mx31pdk: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:04:22 +0000 (11:04 +0200)]
MX31: mx31pdk: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoMX31: mx31ads: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:02:53 +0000 (11:02 +0200)]
MX31: mx31ads: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoMX31: mx31_litekit: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:01:52 +0000 (11:01 +0200)]
MX31: mx31_litekit: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMX5: mx53evk: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:00:22 +0000 (11:00 +0200)]
MX5: mx53evk: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Jason Liu <jason.hui@linaro.org>
Acked-by: Jason Liu <jason.hui@linaro.org>
13 years agoMX5: mx51evk: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 08:59:20 +0000 (10:59 +0200)]
MX5: mx51evk: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMX35: mx35pdk: use new pmic driver
Stefano Babic [Thu, 6 Oct 2011 19:07:42 +0000 (21:07 +0200)]
MX35: mx35pdk: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agomisc: pmic: addI2C support to pmic_fsl driver
Stefano Babic [Thu, 6 Oct 2011 19:06:39 +0000 (21:06 +0200)]
misc: pmic: addI2C  support to pmic_fsl driver

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agomisc: pmic: use I2C_SET_BUS in pmic I2C
Stefano Babic [Tue, 11 Oct 2011 17:18:05 +0000 (19:18 +0200)]
misc: pmic: use I2C_SET_BUS in pmic I2C

Instead of using directly the i2c_set_bus() function,
the I2C_SET_BUS macro must be used to avoid build
errors for targets without multibus I2C.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMX5: efikamx/efikasb: use new pmic driver
Stefano Babic [Thu, 6 Oct 2011 09:44:26 +0000 (11:44 +0200)]
MX5: efikamx/efikasb: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
13 years agoMX3: qong: use new pmic driver
Stefano Babic [Thu, 6 Oct 2011 09:23:33 +0000 (11:23 +0200)]
MX3: qong: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoRTC: Switch mc13783 to generic pmic code
Stefano Babic [Sun, 2 Oct 2011 16:38:43 +0000 (18:38 +0200)]
RTC: Switch mc13783 to generic pmic code

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMX5: vision2: use new pmic driver
Stefano Babic [Sun, 2 Oct 2011 10:58:03 +0000 (12:58 +0200)]
MX5: vision2: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agomisc: pmic: Freescale PMIC switches to generic PMIC driver
Stefano Babic [Wed, 5 Oct 2011 10:38:27 +0000 (12:38 +0200)]
misc: pmic: Freescale PMIC switches to generic PMIC driver

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Stefano Babic <sbabic@denx.de>
13 years agomisc:pmic:samsung Enable PMIC driver at GONI target
Łukasz Majewski [Mon, 3 Oct 2011 19:45:51 +0000 (19:45 +0000)]
misc:pmic:samsung Enable PMIC driver at GONI target

Enable support for new PMIC driver at GONI reference target.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Stefano Babic <sbabic@denx.de>
13 years agomisc:pmic:max8998 MAX8998 support at a new PMIC driver.
Łukasz Majewski [Mon, 3 Oct 2011 19:45:50 +0000 (19:45 +0000)]
misc:pmic:max8998 MAX8998 support at a new PMIC driver.

This commit adds support for MAX8998 PMIC driver.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Stefano Babic <sbabic@denx.de>
13 years agomisc:pmic:core New generic PMIC driver
Łukasz Majewski [Thu, 6 Oct 2011 02:37:34 +0000 (02:37 +0000)]
misc:pmic:core New generic PMIC driver

I2C or SPI PMIC devices can be accessed.
Separate files: pmic_i2c.c and pmic_spi.c are responsible
for handling transmission over I2C or SPI bus.

New flags:
CONFIG_PMIC - enable PMIC general device.
CONFIG_PMIC_I2C/SPI - specify the interface to be used.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Stefano Babic <sbabic@denx.de>
13 years agomx31pdk: Remove unneeded config
Fabio Estevam [Mon, 12 Sep 2011 06:32:34 +0000 (06:32 +0000)]
mx31pdk: Remove unneeded config

Currently there are two config options for building a U-boot binary for MX31PDK:

make mx31pdk_config

or,

make mx31pdk_nand_config

mx31pdk_config was developed first when no NAND SPL support was available for
MX31 and it requires that the U-boot binary is loaded into RAM via JTAG and it
forces SKIP_LOWLEVEL_INIT.

mx31pdk_nand_config was added later and it allows booting from NAND Flash.

Leave just one config option called mx31pdk so that it produces a binary that can boot from NAND Flash.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agomx31: provide readable WEIM CS accessor
Helmut Raiger [Thu, 29 Sep 2011 05:45:03 +0000 (05:45 +0000)]
mx31: provide readable WEIM CS accessor

setup_weimcs() and some macros are added to support the setup
for i.MX31 WEIM chip selects. As a compromise between verbosity
and readability an ASCII-art'ish bit comment is used instead of
bitfields.
All i.MX31 boards have been patched to use this approach using a
helper program to verify the changes.

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agoMX51: vision2: Set global macros
Stefano Babic [Fri, 21 Jan 2011 16:39:03 +0000 (17:39 +0100)]
MX51: vision2: Set global macros

Adapt vision2 to the current u-boot version. Drop
own macros to set global data and use the common ones.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoI2C: Add i2c_get/set_speed() to mxc_i2c.c
Marek Vasut [Tue, 27 Sep 2011 06:34:11 +0000 (06:34 +0000)]
I2C: Add i2c_get/set_speed() to mxc_i2c.c

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agoARM: Update mach-types
Marek Vasut [Sun, 11 Sep 2011 17:54:52 +0000 (17:54 +0000)]
ARM: Update mach-types

This commit updates the mach-types based on the latest in Linus's head

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
13 years agodevkit8000: Add config to enable SPL MMC boot
Simon Schwarz [Fri, 30 Sep 2011 00:41:34 +0000 (00:41 +0000)]
devkit8000: Add config to enable SPL MMC boot

Add MMC boot configs to devkit8000 config.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
13 years agodevkit8000: protect board_mmc_init
Simon Schwarz [Fri, 30 Sep 2011 00:41:33 +0000 (00:41 +0000)]
devkit8000: protect board_mmc_init

This function is also defined in omap-common/spl_mmc.de so the implementation
in devkit8000.c was protected by a ifdef.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
13 years agoarm, post: add missing post_time_ms for arm
Heiko Schocher [Wed, 14 Sep 2011 19:34:33 +0000 (19:34 +0000)]
arm, post: add missing post_time_ms for arm

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agocosmetic, post: Codingstyle cleanup
Heiko Schocher [Wed, 12 Oct 2011 01:18:05 +0000 (01:18 +0000)]
cosmetic, post: Codingstyle cleanup

Signed-off-by: Heiko Schocher <hs@denx.de>
13 years agoarm, logbuffer: make it compileclean
Heiko Schocher [Wed, 12 Oct 2011 01:13:38 +0000 (01:13 +0000)]
arm, logbuffer: make it compileclean

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agotegra2: Enable MMC for Seaboard
Tom Warren [Wed, 21 Sep 2011 12:40:07 +0000 (12:40 +0000)]
tegra2: Enable MMC for Seaboard

This adds the required GPIO and pinmux configuration to make eMMC / SD work
on Seaboard.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Tom Warren <twarren@nvidia.com>
13 years agotegra2: Add more pinmux functions
Simon Glass [Wed, 21 Sep 2011 12:40:06 +0000 (12:40 +0000)]
tegra2: Add more pinmux functions

This adds support for changing pinmux functions of pin groups. This is done
by defining a PMUX_FUNC_... enum which can be used to select the function for
each group using pinmux_set_func(). It is also possible to enable
pullup/pulldown, and the existing tristate functionality is retained.

Also provided is a means of configuring a list of pingroups by providing a
configuration table to pinmux_config_table().

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Tom Warren <twarren@nvidia.com>
13 years agotegra2: Rename PIN_ to PINGRP_
Simon Glass [Wed, 21 Sep 2011 12:40:05 +0000 (12:40 +0000)]
tegra2: Rename PIN_ to PINGRP_

The pin groupings are better named PINGRP, since on Tegra2 they refer to
multiple pins.

Sorry about this, but better to get it right now when there is only a small
amount of code affected.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Tom Warren <twarren@nvidia.com>
13 years agotegra2: Add more clock functions
Simon Glass [Wed, 21 Sep 2011 12:40:04 +0000 (12:40 +0000)]
tegra2: Add more clock functions

This adds most of the clock functions required by board and driver code:

-query and adjust peripheral clocks
-query and adjust PLLs
-reset and enable control

These functions are plumbed in as required.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Tom Warren <twarren@nvidia.com>
13 years agotegra2: Clean up board code a little
Simon Glass [Wed, 21 Sep 2011 12:40:03 +0000 (12:40 +0000)]
tegra2: Clean up board code a little

This removes clock_init() and pinmux_init() which are names better suited
to those respective modules. By moving board_init_f() to the bottom of the
file we can remove the need for so many functions in the board.h header file.

The only clock/pinmux/gpio init we need to do prior to relocation is
for the UART.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Tom Warren <twarren@nvidia.com>
13 years agotegra2: Rename CLOCK_PLL_ID to CLOCK_ID
Simon Glass [Wed, 21 Sep 2011 12:40:02 +0000 (12:40 +0000)]
tegra2: Rename CLOCK_PLL_ID to CLOCK_ID

Rename CLOCK_PLL_ID to CLOCK_ID which takes account of the fact that the
code now deals with both PLL clocks and source clocks.

This also tidied up the assert() to match the one sent upstream, and fixes
an error in the PWM id.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Tom Warren <twarren@nvidia.com>
13 years agoFAT: Add FAT write feature
Donggeun Kim [Mon, 24 Oct 2011 21:15:28 +0000 (21:15 +0000)]
FAT: Add FAT write feature

In some cases, saving data in RAM as a file with FAT format is required.
This patch allows the file to be written in FAT formatted partition.

The usage is similar with reading a file.
First, fat_register_device function is called before file_fat_write function
in order to set target partition.
Then, file_fat_write function is invoked with desired file name,
start ram address for writing data, and file size.

Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
13 years agofdt: ARM: Add fdtcontroladdr to set device tree address in environment
Simon Glass [Mon, 24 Oct 2011 19:15:34 +0000 (19:15 +0000)]
fdt: ARM: Add fdtcontroladdr to set device tree address in environment

This adds support for a new environment variable called 'fdtcontroladdr'. If
defined, the hex address is used as the address of the control fdt for U-Boot.

Note: I have not changed CONFIG_PRAM section as I already have an
outstanding patch on that.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agofdt: ARM: Implement and verify embedded and separate device tree
Simon Glass [Mon, 24 Oct 2011 19:15:33 +0000 (19:15 +0000)]
fdt: ARM: Implement and verify embedded and separate device tree

This locates the device tree either embedded within U-Boot or attached to the
end as a separate binary.

When CONFIG_OF_CONTROL is defined, U-Boot requires a valid fdt. A check is
provided for this early in initialisation.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agofdt: add decode helper library
Simon Glass [Mon, 24 Oct 2011 19:15:32 +0000 (19:15 +0000)]
fdt: add decode helper library

This library provides useful functions to drivers which want to use
the fdt to control their operation. Functions are provided to:

- look up and enumerate a device type (for example assigning i2c bus 0,
     i2c bus 1, etc.)
- decode basic types from the fdt, like addresses and integers

While this library is not strictly necessary, it helps to minimise the
changes to a driver, in order to make it work under fdt control. Less
code is required, and so the barrier to switch drivers over is lower.

Additional functions to read arrays and GPIOs could be made available
here also.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agofdt: Add support for a separate device tree (CONFIG_OF_SEPARATE)
Simon Glass [Mon, 24 Oct 2011 19:15:31 +0000 (19:15 +0000)]
fdt: Add support for a separate device tree (CONFIG_OF_SEPARATE)

This adds support for an FDT to be build as a separate binary file called
u-boot.dtb. This can be concatenated with the U-Boot binary to provide a
device tree located at run-time by U-Boot. The Makefile is modified to
provide this file in u-boot-dtb.bin.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agofdt: Add support for embedded device tree (CONFIG_OF_EMBED)
Simon Glass [Sat, 15 Oct 2011 05:48:21 +0000 (05:48 +0000)]
fdt: Add support for embedded device tree (CONFIG_OF_EMBED)

This new option allows U-Boot to embed a binary device tree into its image
to allow run-time control of peripherals. This device tree is for U-Boot's
own use and is not necessarily the same one as is passed to the kernel.

The device tree compiler output should be placed in the $(obj)
rooted tree. Since $(OBJCOPY) insists on adding the path to the
generated symbol names, to ensure consistency it should be
invoked from the directory where the .dtb file is located and
given the input file name without the path.

This commit contains my entry for the ugliest Makefile / shell interaction
competition.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agofdt: ARM: Add device tree control of U-Boot (CONFIG_OF_CONTROL)
Simon Glass [Sat, 15 Oct 2011 05:48:20 +0000 (05:48 +0000)]
fdt: ARM: Add device tree control of U-Boot (CONFIG_OF_CONTROL)

This adds a device tree pointer to the global data. It can be set by
board code. A later commit will add support for making a device
tree binary blob available to U-Boot for run-time configuration.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agonet: tftpput: add tftpput command
Simon Glass [Mon, 24 Oct 2011 18:00:08 +0000 (18:00 +0000)]
net: tftpput: add tftpput command

This adds the tftpput command to U-Boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agonet: tftpput: implement tftp logic
Simon Glass [Mon, 24 Oct 2011 18:00:07 +0000 (18:00 +0000)]
net: tftpput: implement tftp logic

This adds logic to tftp.c to implement the tftp 'put' command, and
updates the README.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agotftpput: add save_addr and save_size global variables
Simon Glass [Fri, 21 Oct 2011 18:51:38 +0000 (18:51 +0000)]
tftpput: add save_addr and save_size global variables

We need something akin to load_addr to handle saving data.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agonet: tftpput: Support selecting get/put for tftp
Simon Glass [Mon, 24 Oct 2011 18:00:05 +0000 (18:00 +0000)]
net: tftpput: Support selecting get/put for tftp

TftpStart should support starting either a get or a put.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agonet: tftpput: Factor out start, restart and next block functions
Simon Glass [Mon, 24 Oct 2011 18:00:04 +0000 (18:00 +0000)]
net: tftpput: Factor out start, restart and next block functions

This code is required for tftpput, so move it into separate functions.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agonet: tftpput: move common code into separate functions
Simon Glass [Mon, 24 Oct 2011 18:00:03 +0000 (18:00 +0000)]
net: tftpput: move common code into separate functions

We want to show block markers on completion of get and put, so
move this common code into separate functions.

Signed-off-by: Simon Glass <sjg@chromium.org>