]> git.sur5r.net Git - u-boot/log
u-boot
13 years agoarm, keymile: updates for the arm based boards from keymile
Heiko Schocher [Tue, 8 Mar 2011 09:53:51 +0000 (10:53 +0100)]
arm, keymile: updates for the arm based boards from keymile

define KM_IVM_BUS and KM_ENV_BUS macros
 KM_IVM_BUS is used to define the EEprom_ivm environment variable.
 These macros allow the reuse of these I2C addresses in other code
 locations.

remove unneeded code
  On first HW versions the BOCO FPGA was behind a MUX device. These
  HW versions are not supported anymore. And therefore this code can
  be removed.

added LED initialization for SUEN3
  The bootstat LED required to be initialized so to have a green
  colour after start-up.

define CONFIG_SYS_TEXT_BASE
  This is needed by the relocation code and is not the same for
  our ARM BEC and thus needs to be defined.

remove memsize variable
  An environment variable for memsize is not needed.
  this can be get via the board info struct.

remove unneeded double access to bi_dram[i].size field

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Luca Haab <luca.haab@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agokeymile, common; fix i2c deblocking support
Heiko Schocher [Tue, 8 Mar 2011 09:51:15 +0000 (10:51 +0100)]
keymile, common; fix i2c deblocking support

This patch fix the i2c deblocking facility with the i2c HW-Controller.
The required delays for byte reading, the enhanced criteria for stop
the dummy read and required 5 start/stop sequences are added.

Add i2c deblocking before ivm eeprom read.

Improve i2c deblocking sequence by respecting stop hold time.

Cleaned function for deblocking. Have now one function i2c_make_abort()
available for bitbang, mpc82xx and mpc83xx harware controller.

Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

13 years agoppc, 8321: cleanup tuxa1, tuda1 and suvd3 support
Heiko Schocher [Tue, 8 Mar 2011 09:47:39 +0000 (10:47 +0100)]
ppc, 8321: cleanup tuxa1, tuda1 and suvd3 support

For the kmsupx5 a new header file was introduced km8321-common.h.
Now the common stuff from tuxa1, tuda1 and suvd3 was removed and
the new header file included.

The defines CONFIG_SYS_PIGGY_BASE and CONFIG_SYS_PIGGY_SIZE are
confusing. Because they actually describe the KMBEC FPGA values.
The KMBEC FPGA can be PRIO on kmeter1 or upio on mgcoge. Therefore
all the defines were renamed.

remove unneeded variable CONFIG_KM_DEF_NETDEV, as it is
already declared in keymile-common.h

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

13 years agokm_arm: change some register values for SDRAM initialization
Heiko Schocher [Tue, 22 Feb 2011 08:34:33 +0000 (09:34 +0100)]
km_arm: change some register values for SDRAM initialization

These new values are:
- enables UART0 and UART1 pins in MPP
- define some L2 cache settings
- changes a SDRAM timing to better fit the hardware
- removed three writes that were the same as the reset values

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agokm-arm: i2c support for suenx based boards
Heiko Schocher [Tue, 22 Feb 2011 08:13:00 +0000 (09:13 +0100)]
km-arm: i2c support for suenx based boards

This patch renames the suen3 defines and functions to KM_KIRKWOOD
which is more generic and more precise, because these values
and functions where used by all suenX boards and not only suen3.

Signed-off-by: Lukas Roggli <lukas.roggli@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agopowerpc, 83xx: add kmsupx5 board support
Heiko Schocher [Tue, 22 Feb 2011 08:08:28 +0000 (09:08 +0100)]
powerpc, 83xx: add kmsupx5 board support

The Keymile SUPx5 board series is based on a PBEC8321 but
contains an additional PBUS FPGA (LPXF) on local bus CS2.

Signed-off-by: Thomas Reufer <thomas.reufer@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>

13 years agokeymile, 8321 boards: move common definitions to km8321-common.h
Thomas Reufer [Wed, 17 Nov 2010 15:08:18 +0000 (16:08 +0100)]
keymile, 8321 boards: move common definitions to km8321-common.h

First step for a cleanup of all header files for km8321 boards.

Signed-off-by: Thomas Reufer <thomas.reufer@keymile.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Heiko Schocher <hs@denx.de>

13 years agoppc: add support for ppc based board mgcoge2ne
Heiko Schocher [Tue, 22 Feb 2011 07:58:19 +0000 (08:58 +0100)]
ppc: add support for ppc based board mgcoge2ne

The mgcoge2 board from keymile deploys two different processors.
An ARM based Kirkwood for the "unit" part of the SW and a PPC for
the "ne" part of the SW. Therefore in Linux and U-Boot the names
for the board are mgcoge2un and mgcoge2ne. This patch adds the
mgcoge2ne part of the board. The ppc part of mgboge2 is quite
similar to mgcoge, therefore a generic header km82xx-common.h
was introduced to collect all similiarities. Currently the only
difference is that mgcoge2ne has a 64 MB numonyx NOR flash with
a single die. The mgcoge has a dual die flash 2*32MB from spansion.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

13 years agoarm: add support of Kirkwood based board SUEN8
Heiko Schocher [Tue, 22 Feb 2011 07:36:20 +0000 (08:36 +0100)]
arm: add support of Kirkwood based board SUEN8

The Kirwood based SUEN8 board from Keymile is at this stage
the same than the suen3 board. This patch adds the board
support for the suen8.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agoarm: add support for kirkwood based mgcoge2un board
Heiko Schocher [Tue, 22 Feb 2011 07:30:46 +0000 (08:30 +0100)]
arm: add support for kirkwood based mgcoge2un board

This board is similar to keymile suen3.

Signed-off-by: Clive Stubbings <clive.stubbings@xentech.co.uk>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agompc832x: add support for mpc8321 based tuda1 board
Heiko Schocher [Thu, 1 Apr 2010 10:10:30 +0000 (12:10 +0200)]
mpc832x: add support for mpc8321 based tuda1 board

This board is similar to suvd3 board. So most initialisation topics
are taken from suvd3 (UART1, Ethernet, piggy PHY, flash, ram) only the
application specific chip selects differ.

Signed-off-by: Lukas Roggli <lukas.roggli@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

13 years agompc832x: add support for mpc8321 based tuxa1 board
Heiko Schocher [Thu, 1 Apr 2010 10:07:25 +0000 (12:07 +0200)]
mpc832x: add support for mpc8321 based tuxa1 board

This board is similar to suvd3 board. So most initialisation topics
are taken from suvd3 (UART1, Ethernet, piggy PHY, flash, ram) only the
application specific chip selects differ.

Signed-off-by: Lukas Roggli <lukas.roggli@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

13 years agompc832x: add support for the mpc8321 based suvd3 board
Heiko Schocher [Thu, 18 Feb 2010 07:08:25 +0000 (08:08 +0100)]
mpc832x: add support for the mpc8321 based suvd3 board

- serial console on UART1
- Ethernet RMII over UCC4
- PHY SMSC LAN8700
- 64MB Flash
- 128 MB DDR2 RAM
- I2C
- bootcount

This board is similiar to the kmeter1 (8360) board,
so common config options are extracted into the
include/configs/km83xx-common.h file.

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

13 years agoarm, ppc: rework environment variables for keymile boards
Holger Brunck [Mon, 14 Mar 2011 15:01:04 +0000 (16:01 +0100)]
arm, ppc: rework environment variables for keymile boards

This patch reworks all headerfiles for keymile boards. Furthermore
the environment variables are refactored.

Changes:
  - introduce km-powerpc.h file and extract ppc specific parts to it
  - move ARM specific options and vaiables to km_arm.h
  - sort the environment variables to logical groups
  - enhance the description of the environment variables
  - remove KM specific HW key and board id from kernel command line

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

13 years agoppc, arm: adapt keymile header
Holger Brunck [Mon, 14 Mar 2011 14:49:05 +0000 (15:49 +0100)]
ppc, arm: adapt keymile header

- adapt copyright string
- change bootdelay to 2 seconds
- set max number of command args to 32
- set I/O buffer size to 512

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

13 years agokeymile: Fix Coding style issues for keymile boards.
Heiko Schocher [Tue, 15 Mar 2011 15:52:29 +0000 (16:52 +0100)]
keymile: Fix Coding style issues for keymile boards.

- use I/O accessors
  -> For accessing the FPGA therefore a struct km_bec_fpga
     is introduced.
- no longer externs needed
- to defines, that only select functions, don;t assign a
  numeric value
- Codingstyle changes to prevent checkpatch errors/warnings

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agoarm, keymile: rename MACH_SUEN3 to MACH_KM_KIRKWOOD
Holger Brunck [Mon, 14 Mar 2011 14:31:19 +0000 (15:31 +0100)]
arm, keymile: rename MACH_SUEN3 to MACH_KM_KIRKWOOD

The MACH_TYPE SUEN3 is now to specific for keymile boards, because
other boards similar to suen3 will follow. So the MACH_SUEN3 was renamed
to MACH_KM_KIRKWOOD.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agopowerpc, mpc83xx: add missing functions to include/common.h
Heiko Schocher [Tue, 15 Mar 2011 11:30:47 +0000 (12:30 +0100)]
powerpc, mpc83xx: add missing functions to include/common.h

add following functions to common.h, to prevent
extern declarations:

void disable_addr_trans(void);
void enable_addr_trans(void);
void ddr_enable_ecc(unsigned int dram_size);

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mmc
Wolfgang Denk [Fri, 29 Apr 2011 20:45:50 +0000 (22:45 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mmc

13 years agommc: coding style fix and tabify of mmc.h
Thomas Chou [Tue, 19 Apr 2011 03:48:31 +0000 (03:48 +0000)]
mmc: coding style fix and tabify of mmc.h

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
13 years agofsl_esdhc: Fix multi-block read restriction on i.MX53 eSDHCv2
Jason Liu [Tue, 22 Mar 2011 01:32:31 +0000 (01:32 +0000)]
fsl_esdhc: Fix multi-block read restriction on i.MX53 eSDHCv2

For freescale i.MX53 eSDHCv2, when using CMD12, cmdtype need
to be set to ABORT, otherwise, next read command will hang.

This is a software Software Restrictions in i.MX53 reference manual:

29.7.8 Multi-block Read
For pre-defined multi-block read operation, that is,the number of blocks
to read has been defined by previous CMD23 for MMC, or pre-defined number
of blocks in CMD53 for SDIO/SDCombo,or whatever multi-block read without
abort command at card side, an abort command, either automatic or manual
CMD12/CMD52, is still required by ESDHC after the pre-defined number of
blocks are done, to drive the internal state machine to idle mode. In this
case, the card may not respond to this extra abort command and ESDHC will
get Response Timeout.  It is recommended to manually send an abort command
with RSPTYP[1:0] both bits cleared.

Signed-off-by: Jason Liu <jason.hui@linaro.org>
13 years agoMMC: omap_hsmmc.c: disable multiblock rw on old rev omap34xx silicon
John Rigby [Tue, 19 Apr 2011 05:48:14 +0000 (05:48 +0000)]
MMC: omap_hsmmc.c: disable multiblock rw on old rev omap34xx silicon

Signed-off-by: John Rigby <john.rigby@linaro.org>
13 years agoMMC: make b_max unconditional
John Rigby [Mon, 18 Apr 2011 05:50:08 +0000 (05:50 +0000)]
MMC: make b_max unconditional

Make existing field b_max field in struct mmc unconditional
and use it instead of CONFIG_SYS_MMC_MAX_BLK_COUNT in mmc_bread
and mmc_bwrite.

Initialize b_max to CONFIG_SYS_MMC_MAX_BLK_COUNT in mmc_register
if it has not been initialized by the hw driver.

Initialize b_max to 0 in all callers to mmc_register.

Signed-off-by: John Rigby <john.rigby@linaro.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
13 years agommc_spi: add mmc_init call
Thomas Chou [Sun, 17 Apr 2011 21:00:46 +0000 (21:00 +0000)]
mmc_spi: add mmc_init call

As Andy Fleming suggested, we can call mmc_init() in mmc_spi command.
So that we don't need to run mmcinfo command next.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
13 years agoARMV7: Vexpress: Add MMC support
Matt Waddel [Sat, 16 Apr 2011 11:54:08 +0000 (11:54 +0000)]
ARMV7: Vexpress: Add MMC support

Added the board specific definitions to use the MMCI device.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
13 years agoMMC: Add support for PL180 ARM mmc device
Matt Waddel [Sat, 16 Apr 2011 11:54:07 +0000 (11:54 +0000)]
MMC: Add support for PL180 ARM mmc device

Add support for the ARM PrimeCell MultiMedia Interface - PL180.
Ported from original device driver written by ST-Ericsson.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Wolfgang Denk [Thu, 28 Apr 2011 21:45:16 +0000 (23:45 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-video

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-i2c
Wolfgang Denk [Thu, 28 Apr 2011 21:19:18 +0000 (23:19 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-i2c

13 years agopowerpc: use 'video-mode' environment variable to configure DIU
Timur Tabi [Mon, 11 Apr 2011 19:18:22 +0000 (14:18 -0500)]
powerpc: use 'video-mode' environment variable to configure DIU

Use the 'video-mode' environment variable (for Freescale chips that have a
DIU display controller) to designate the full video configuration.  Previously,
the DIU driver used the 'monitor' variable, and it was used only to determine
the output video port.

The old definition of the "monitor" environment variable only determines
which video port to use for output.  This variable was set to a number (0,
1, or sometimes 2) to specify a DVI, LVDS, or Dual-LVDS port.  The
resolution was hard-coded into board-specific code.  The Linux command-line
arguments needed to be hard-coded to the proper video definition string.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agovideo: parse the video-mode environment variable
Timur Tabi [Mon, 21 Mar 2011 21:38:49 +0000 (16:38 -0500)]
video: parse the video-mode environment variable

Add function video_get_video_mode(), which parses the "video-mode" environment
variable and returns each of its components.  The format matches the video=
command-line option used for Linux:

video-mode=<driver>:<xres>x<yres>-<depth>@<freq><,option=string>

<driver> The video driver, ignored by U-Boot
<xres> The X resolution (in pixels) to use.
<yres> The Y resolution (in pixels) to use.
<depth> The color depth (in bits) to use.
<freq> The frequency (in Hz) to use.
<options> A comma-separated list of device-specific options

Signed-off-by: Timur Tabi <timur@freescale.com>
13 years agocfb_console: fix RLE bitmap drawing code
Anatolij Gustschin [Mon, 21 Feb 2011 20:33:29 +0000 (21:33 +0100)]
cfb_console: fix RLE bitmap drawing code

There seems to be tools producing incorrect 'end of bitmap data'
markers '0100' in a RLE bitmap. Drawing such bitmaps can result
in overwriting memory above the frame buffer. E.g. on MPC5121e
based boards this memory can contain U-Boot environment.

We may not rely on the correct end of bitmap data marker 0001
only, but also have to check whether we are going to draw a
valid frame buffer scan line.

The patch provides a fix by maintaining a pixel counter
which is incremented by the amount of pixels we are going
to draw. If the counter exceeds frame buffer pixels limit
we stop the drawing with the error message.

Reported-by: Michael Weiss <michael.weiss@ifm.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Anatolij Gustschin <agust@denx.de>
13 years agoAdd CONFIG_OF_LIBFDT to more boards.
Grant Likely [Mon, 28 Mar 2011 09:59:07 +0000 (09:59 +0000)]
Add CONFIG_OF_LIBFDT to more boards.

The following boards gain device tree support with this patch:

ca9x4_ct_vxp - Versatile Express

i.mx5 boards:
efikamx
mx51evk
mx53evk

OMAP boards:
devkit8000
igep0020
igep0030
omap3_overo
omap3_pandora
omap4_sdp3430
omap3_zoom1
omap3_zoom2
omap4_panda
omap4_sdp4430

Tegra boards:
Harmony

Signed-off-by: Grant Likely <grant.likely@linaro.org>
13 years agoi2c, soft_i2c: deblock bus if switching to another i2c bus
Heiko Schocher [Fri, 8 Apr 2011 14:24:09 +0000 (16:24 +0200)]
i2c, soft_i2c: deblock bus if switching to another i2c bus

Deblock i2c bus when switching to another i2c bus, if using
i2c_set_bus_num().

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agoi2c: add i2c deblock sequence before and after every mux config
Stefan Bigler [Fri, 8 Apr 2011 14:24:08 +0000 (16:24 +0200)]
i2c: add i2c deblock sequence before and after every mux config

To make sure that the mux can be configured a deblocking sequence
is done before the mux configuration. After the mux switch the new leaf
of, the i2c tree must be again deblocked.

Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 years agoarm: a320: fix compile error caused by commit 00d10eb
Po-Yu Chuang [Wed, 27 Apr 2011 22:04:21 +0000 (22:04 +0000)]
arm: a320: fix compile error caused by commit 00d10eb

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
13 years agocommon: add a grepenv command
Kim Phillips [Tue, 5 Apr 2011 07:15:14 +0000 (07:15 +0000)]
common: add a grepenv command

u-boot environments, esp. when boards are shared across multiple
users, can get pretty large and time consuming to visually parse.
The grepenv command this patch adds can be used in lieu of printenv
to facilitate searching.  grepenv works like printenv but limits
its output only to environment strings (variable name and value
pairs) that match the user specified substring.

the following examples are on a board with a 5313 byte environment
that spans multiple screen pages:

Example 1:  summarize ethernet configuration:

=> grepenv eth TSEC
etact=FM1@DTSEC2
eth=FM1@DTSEC4
ethact=FM1@DTSEC2
eth1addr=00:E0:0C:00:8b:01
eth2addr=00:E0:0C:00:8b:02
eth3addr=00:E0:0C:00:8b:03
eth4addr=00:E0:0C:00:8b:04
eth5addr=00:E0:0C:00:8b:05
eth6addr=00:E0:0C:00:8b:06
eth7addr=00:E0:0C:00:8b:07
eth8addr=00:E0:0C:00:8b:08
eth9addr=00:E0:0C:00:8b:09
ethaddr=00:E0:0C:00:8b:00
netdev=eth0
uprcw=setenv ethact $eth;setenv filename p4080ds/R_PPSXX_0xe/rcw_0xe_2sgmii_rev2_high.bin;setenv start 0xe8000000;protect off all;run upimage;protect on all
upuboot=setenv ethact $eth;setenv filename u-boot.bin;setenv start eff80000;protect off all;run upimage;protect on all
upucode=setenv ethact $eth;setenv filename fsl_fman_ucode_P4080_101_6.bin;setenv start 0xef000000;protect off all;run upimage;protect on all
usdboot=setenv ethact $eth;tftp 1000000 $dir/$bootfile;tftp 2000000 $dir/initramfs.cpio.gz.uboot;tftp c00000 $dir/p4080ds-usdpaa.dtb;setenv bootargs root=/dev/ram rw console=ttyS0,115200 $othbootargs;bootm 1000000 2000000 c00000;
=>

Example 2: detect unused env vars:

=> grepenv etact
etact=FM1@DTSEC2
=>

Example 3: reveal hardcoded variables; e.g., for fdtaddr:

=> grepenv fdtaddr
fdtaddr=c00000
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
=> grep $fdtaddr
fdtaddr=c00000
my_boot=bootm 0x40000000 0x41000000 0x00c00000
my_dtb=tftp 0x00c00000 $prefix/p4080ds.dtb
nohvboot=tftp 1000000 $dir/$bootfile;tftp 2000000 $dir/$ramdiskfile;tftp c00000 $dir/$fdtfile;setenv bootargs root=/dev/ram rw ramdisk_size=0x10000000 console=ttyS0,115200;bootm 1000000 2000000 c00000;
=>

This patch also enables the grepenv command by default on
corenet_ds based boards (and repositions the DHCP command
entry to keep the list sorted).

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Cc: Kumar Gala <kumar.gala@freescale.com>
Cc: Andy Fleming <afleming@freescale.com>
13 years agopowerpc: fix implementation of out_8 to match the other out_XX functions
Timur Tabi [Fri, 3 Dec 2010 09:03:46 +0000 (09:03 +0000)]
powerpc: fix implementation of out_8 to match the other out_XX functions

Signed-off-by: Timur Tabi <timur@freescale.com>
13 years agoenv: fix env var autocompletion
Kim Phillips [Mon, 4 Apr 2011 15:17:45 +0000 (15:17 +0000)]
env: fix env var autocompletion

commit 560d424b6d7cd4205b062ad95f1b104bd4f8bcc3 "env: re-add
support for auto-completion" fell short of its description -
the 'used' logic in hmatch_r was reversed - 'used' is 0 if
the hash table entry is not used, or -1 if deleted.  This
patch makes hmatch_r actually match on valid ('used') entries,
instead of skipping them and failing to match anything.

typing 'printenv tft' and hitting 'tab' now displays valid
choices for variable names.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Tested-by: Mike Frysinger <vapier@gentoo.org>
13 years agompc52xx, digsy_mtc: protect default flash sectors
Heiko Schocher [Sun, 3 Apr 2011 20:10:22 +0000 (20:10 +0000)]
mpc52xx, digsy_mtc: protect default flash sectors

call flash_protect_default() to protect default sectors.

Signed-off-by: Heiko Schocher <hs@denx.de>
13 years agompc52xx, digsy_mtc: change phy addr for rev5 boards.
Heiko Schocher [Sun, 3 Apr 2011 20:10:20 +0000 (20:10 +0000)]
mpc52xx, digsy_mtc: change phy addr for rev5 boards.

- rev5 board has phy addr 1 -> adapt CONFIG_PHY_ADDR define
  in board config file.
- also fixup the phy addr entry in dts, before booting
  Linux.

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agoNET: Correct potential missing goto label in case statement.
Gray Remlin [Tue, 29 Mar 2011 10:21:32 +0000 (10:21 +0000)]
NET: Correct potential missing goto label in case statement.

If neither CONFIG_CMD_PING or CONFIG_CMD_SNTP are defined but
CONFIG_CMD_DNS is, a compile-time error will occur due to the
absence of a goto label.

Signed-off-by: Gray Remlin <gryrmln@gmail.com>
13 years agofix redundant environment for serial flash
thomas.langer@lantiq.com [Tue, 29 Mar 2011 02:35:14 +0000 (02:35 +0000)]
fix redundant environment for serial flash

This patch fixes problems in the handling of redundant environment in env_sf.c

The major problem are double calls of free() on the allocated buffers,
which damages the internal data of malloc and crashes on next call.

In addition, the selection of the active environment had errors and compiler
warnings, which are corrected by this patch.

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Wed, 27 Apr 2011 19:48:09 +0000 (21:48 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-fdt
Wolfgang Denk [Wed, 27 Apr 2011 19:45:31 +0000 (21:45 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-fdt

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Wed, 27 Apr 2011 19:43:42 +0000 (21:43 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

13 years agoMerge branch 'spi' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Wed, 27 Apr 2011 19:42:18 +0000 (21:42 +0200)]
Merge branch 'spi' of git://git.denx.de/u-boot-blackfin

13 years agoDon't grab memory for LCD if FB address is defined
Minkyu Kang [Sun, 24 Apr 2011 22:22:34 +0000 (22:22 +0000)]
Don't grab memory for LCD if FB address is defined

If FB address is defined specific address then don't grab memory for LCD

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Kumar Gala <kumar.gala@freescale.com>
13 years agonhk8815: move config targets from Makefile to boards.cfg
Alessandro Rubini [Sat, 16 Apr 2011 07:50:01 +0000 (07:50 +0000)]
nhk8815: move config targets from Makefile to boards.cfg

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
13 years agonhk8815: add support for relocation
Alessandro Rubini [Sat, 16 Apr 2011 13:00:12 +0000 (13:00 +0000)]
nhk8815: add support for relocation

This patch defines all the needed symbols in the header file
and removes the now-unused config.mk in board directory.
Changes to board C file as requested.

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
13 years agonhk8815: remove platform.S, which was unused at link time
Alessandro Rubini [Sat, 16 Apr 2011 07:49:40 +0000 (07:49 +0000)]
nhk8815: remove platform.S, which was unused at link time

This source file, which I got by the vendor in their own port,
was not actually executing because lib-based compilation
didn't call lowlevel_init (we have CONFIG_SKIP_LOWLEVEL_INIT).
With the change to object-based linking, an undefined symbol in
this file started hitting in the final link.

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
13 years agocpuat91: fix board support
Eric Benard [Sun, 3 Apr 2011 06:35:55 +0000 (06:35 +0000)]
cpuat91: fix board support

- fix board support following relocation changes
- switch to boards.cfg
- disable i2c to keep size under 128kiB (1 sector)

Signed-off-by: Eric Bénard <eric@eukrea.com>
13 years agoftsmc020: move ftsmc020 static mem controller to driver/mtd
Macpaul Lin [Fri, 15 Apr 2011 21:37:11 +0000 (21:37 +0000)]
ftsmc020: move ftsmc020 static mem controller to driver/mtd

Move the header file and definitions of ftsmc020
static memory control unit from a320 SoC folder to
"drivers/mtd" folder.

This change will let other SoC which also use ftsmc020
could share the same header file.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftsdmc020: move ftsdmc020.h to include/faraday
Macpaul Lin [Fri, 15 Apr 2011 21:37:10 +0000 (21:37 +0000)]
ftsdmc020: move ftsdmc020.h to include/faraday

Move the header file "ftsdmc020.h" (SDRAM Controller)
to "include/faraday" folder.

This change will let other SoC which also use ftsdmc020
could share the same header file.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agocpu9260: update board support
Eric Benard [Sun, 3 Apr 2011 06:35:54 +0000 (06:35 +0000)]
cpu9260: update board support

- update to new relocation code
- switch to boards.cfg
- get rid of LEGACY (still a little hack in .h to compile)
- add nand boot configuration
- boot tested for the following configurations :
9260 (64MB RAM & nor boot)
9260_nand (64MB RAM & nand boot)
9G20_128M (128MB RAM & nor boot)
9G20_nand_128M (128MB RAM & nand boot)
(nor boot is using lowlevel init)

Signed-off-by: Eric Bénard <eric@eukrea.com>
13 years agoFix the issue of _end symbol not being found while building
Sughosh Ganu [Sun, 10 Apr 2011 10:16:08 +0000 (10:16 +0000)]
Fix the issue of _end symbol not being found while building

Fix the nand_spl build for the hawkboard

Signed-off-by: Sughosh Ganu <urwithsughosh@gmail.com>
13 years agoARMV7: OMAP3: Add support for Comelit DIG297 board
Luca Ceresoli [Wed, 20 Apr 2011 15:02:08 +0000 (11:02 -0400)]
ARMV7: OMAP3: Add support for Comelit DIG297 board

Board support for the DIG297 board manufactured by Comelit Group SpA.
It is a custom board based on the BeagleBoard <http://beagleboard.org/> by
Texas Instruments.

The board support is based on the BeagleBoard implementation.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARMV7: OMAP3: Cleanup extern variables in mem.c
Luca Ceresoli [Wed, 20 Apr 2011 15:02:05 +0000 (11:02 -0400)]
ARMV7: OMAP3: Cleanup extern variables in mem.c

Removed boot_flash_* extern variables.
boot_flash_type was totally unused. The other ones were actually constants, so
they have been replaced with #defines in the board config files.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm: Tegra2: Move clk/mux init to board_early_init_f, add GPIO init
Tom Warren [Thu, 14 Apr 2011 12:09:41 +0000 (12:09 +0000)]
arm: Tegra2: Move clk/mux init to board_early_init_f, add GPIO init

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoarm: Tegra2: GPIO: Add basic GPIO definitions
Tom Warren [Thu, 14 Apr 2011 12:09:40 +0000 (12:09 +0000)]
arm: Tegra2: GPIO: Add basic GPIO definitions

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoarm: Tegra2: Add missing PLLX init
Tom Warren [Thu, 14 Apr 2011 12:09:39 +0000 (12:09 +0000)]
arm: Tegra2: Add missing PLLX init

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoARM: fix stack pointer adjustment in board_init_f()
Eric Cooper [Thu, 14 Apr 2011 12:32:37 +0000 (12:32 +0000)]
ARM: fix stack pointer adjustment in board_init_f()

Since addr_sp is a byte address, it should be adjusted by 12 here.

Signed-off-by: Eric Cooper <ecc@cmu.edu>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agoarm: Tegra2: add support for A9 CPU init
Tom Warren [Thu, 14 Apr 2011 12:18:06 +0000 (12:18 +0000)]
arm: Tegra2: add support for A9 CPU init

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoARMV7: OMAP3: Add GPMC_CONFIGx register value definitions
Luca Ceresoli [Tue, 19 Apr 2011 13:48:51 +0000 (09:48 -0400)]
ARMV7: OMAP3: Add GPMC_CONFIGx register value definitions

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX
Luca Ceresoli [Tue, 19 Apr 2011 13:47:21 +0000 (09:47 -0400)]
ARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX

CONFIG_OMAP34XX must be checked for existence, not value.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3_beagle: enable EHCI and USB storage.
Alexander Holler [Tue, 19 Apr 2011 13:30:35 +0000 (09:30 -0400)]
omap3_beagle: enable EHCI and USB storage.

The reset sequence/configuration for ehci is highly board specific,
so this will be done in the source for the board, instead of
introducing several CONFIG_* which would be needed to make those
few lines in beagle.c usable across different OMAP boards.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: Add support for DPLL5 (usbhost)
Alexander Holler [Tue, 19 Apr 2011 13:27:55 +0000 (09:27 -0400)]
OMAP3: Add support for DPLL5 (usbhost)

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: Change some USB related MUX values
Alexander Holler [Tue, 19 Apr 2011 13:27:23 +0000 (09:27 -0400)]
OMAP3: Change some USB related MUX values

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM: OMAP3: Revamp IGEP module default configuration
Enric Balletbo i Serra [Tue, 19 Apr 2011 13:17:11 +0000 (09:17 -0400)]
ARM: OMAP3: Revamp IGEP module default configuration

The default IGEP configuration doesn't do anything useful; using some
boot.scr search logic like BeagleBoard is much more useful.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM: OMAP3: Revamp IGEP v2 default
Enric Balletbo i Serra [Tue, 19 Apr 2011 13:16:36 +0000 (09:16 -0400)]
ARM: OMAP3: Revamp IGEP v2 default

configuration

The default IGEP configuration doesn't do anything useful; using some
boot.scr search logic like BeagleBoard is much more useful.

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoReplace obsolete e-mail address
Albert ARIBAUD [Fri, 22 Apr 2011 17:41:02 +0000 (19:41 +0200)]
Replace obsolete e-mail address

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agoa320evb: fix include path of timer fttmr010
Macpaul Lin [Mon, 21 Mar 2011 01:45:43 +0000 (01:45 +0000)]
a320evb: fix include path of timer fttmr010

Fix include path of timer fttmr010 in a320evb.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agofttmr010: move fttmr010 header to include/faraday
Macpaul Lin [Mon, 21 Mar 2011 01:45:42 +0000 (01:45 +0000)]
fttmr010: move fttmr010 header to include/faraday

Move the header file and definitions of fttmr010
power control unit from a320 SoC folder to
"include/faraday" folder.

This change will let other SoC which also use fttmr010
could share the same header file.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftpmu010.h: add asm support used by lowlevel_init
Macpaul Lin [Sun, 20 Mar 2011 23:44:07 +0000 (23:44 +0000)]
ftpmu010.h: add asm support used by lowlevel_init

Add asm support which is ususally used in lowlevel_init to set
power related parameters to sdram controller and static memory controller.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftpmu010: fix relocation and enhance features
Macpaul Lin [Sun, 20 Mar 2011 23:44:06 +0000 (23:44 +0000)]
ftpmu010: fix relocation and enhance features

1. ftpmu010.h: fix and add definitions
   Enhanced for more features and asm related support
   according to datasheet.

   Note:
    - FTPMU010_PDLLCR0_HCLKOUTDIS is "incorrect" in datasheet.
    - FTPMU010_PDLLCR0_DLLFRANG is only 1 bit at bit #19. (not 20-19)
    - FTPMU010_PDLLCR0_HCLKOUTDIS is 4 bits at bit #20. (not 24-21)

2. ftpmu010.c: enhance features and fix relocation
   - The following functions is added for pmu features.
     ftpmu010_mfpsr_select_dev()
     ftpmu010_sdramhtc_set()
   - This patch also fix the declare statement for relocation.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoOrion5x: Correct DRAM bank detection
Rogan Dawes [Wed, 13 Apr 2011 18:24:53 +0000 (23:54 +0530)]
Orion5x: Correct DRAM bank detection

13 years agoI2C: add i2c support for Armada100 platform
Lei Wen [Wed, 13 Apr 2011 18:18:44 +0000 (23:48 +0530)]
I2C: add i2c support for Armada100 platform

Add i2c support to aspenite board with Armada100 soc.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoI2C: mv_i2c: add multi bus support
Lei Wen [Wed, 13 Apr 2011 18:18:39 +0000 (23:48 +0530)]
I2C: mv_i2c: add multi bus support

Add the ability to support multiple i2c bus for mv_i2c

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoI2C: add i2c support for Pantheon platform
Lei Wen [Wed, 13 Apr 2011 18:18:34 +0000 (23:48 +0530)]
I2C: add i2c support for Pantheon platform

Add i2c support to dkb board with pantheon soc.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agomv_i2c: use structure to replace the direclty define
Lei Wen [Wed, 13 Apr 2011 18:18:31 +0000 (23:48 +0530)]
mv_i2c: use structure to replace the direclty define

Add i2c_clk_enable in the cpu specific code, since previous platform it,
while new platform don't need. In the pantheon and armada100 platform,
this function is defined as NULL one.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agomv_i2c: fix timeout value to be consistent with comments
Lei Wen [Wed, 13 Apr 2011 18:18:26 +0000 (23:48 +0530)]
mv_i2c: fix timeout value to be consistent with comments

The original 10000 value would be 100ms, which is not
the comments said.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agopxa: move i2c driver to the common place
Lei Wen [Wed, 13 Apr 2011 18:18:16 +0000 (23:48 +0530)]
pxa: move i2c driver to the common place

For better sharing with other platform other than pxa's,
it is more convenient to put the driver to the common place.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoMX25: tx25: Add _end section on nand_spl
Fabio Estevam [Sun, 3 Apr 2011 12:17:19 +0000 (12:17 +0000)]
MX25: tx25: Add _end section on nand_spl

Commit f326cbb (arm: fix incorrect monitor protection region in FLASH) missed to update
nand_spl/board/karo/tx25/u-boot.lds.

Add the _end section.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoMX31: mx31pdk: fix nand_spl
Stefano Babic [Sun, 3 Apr 2011 00:01:49 +0000 (00:01 +0000)]
MX31: mx31pdk: fix nand_spl

Commit f326cbba98bae21d41df8daac0bd78121d557af1 breaks mx31pdk,
as the _end section in u-boot.lds is missing for the nand_spl
production.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoARMV7: Vexpress: Remove config.mk
Matt Waddel [Thu, 3 Mar 2011 06:54:48 +0000 (06:54 +0000)]
ARMV7: Vexpress: Remove config.mk

Remove obsolete board config.mk.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
13 years agoarm: a320: use new ftpmu010 API
Po-Yu Chuang [Thu, 17 Feb 2011 19:35:23 +0000 (19:35 +0000)]
arm: a320: use new ftpmu010 API

ftpmu010 related code has been moved to drivers/power/.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
13 years agopower: ftpmu010: move drivers/power/ftpmu010.h to include/faraday
Po-Yu Chuang [Thu, 17 Feb 2011 19:34:07 +0000 (19:34 +0000)]
power: ftpmu010: move drivers/power/ftpmu010.h to include/faraday

Also add API declarations.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
13 years agoarm: Use optimized memcpy and memset from linux
Matthias Weisser [Thu, 10 Mar 2011 21:36:32 +0000 (21:36 +0000)]
arm: Use optimized memcpy and memset from linux

Using optimized versions of memset and memcpy from linux brings a quite
noticeable speed (x2 or better) improvement for these two functions.

Here are some numbers for test done with jadecpu

                           | HEAD(1)| HEAD(1)| HEAD(2)| HEAD(2)|
                           |        | +patch |        | +patch |
---------------------------+--------+--------+--------+--------+
Reset to prompt            |  438ms |  330ms |  228ms |  120ms |
                           |        |        |        |        |
TFTP a 3MB img             | 4782ms | 3428ms | 3245ms | 2820ms |
                           |        |        |        |        |
FATLOAD USB a 3MB img*     | 8515ms | 8510ms | ------ | ------ |
                           |        |        |        |        |
BOOTM LZO img in RAM       | 3473ms | 3168ms |  592ms |  592ms |
 where CRC is              |  615ms |  615ms |   54ms |   54ms |
 uncompress                | 2460ms | 2462ms |  450ms |  451ms |
 final boot_elf            |  376ms |   68ms |   65ms |   65ms |
                           |        |        |        |        |
BOOTM LZO img in FLASH     | 3207ms | 2902ms | 1050ms | 1050ms |
 where CRC is              |  600ms |  600ms |  135ms |  135ms |
 uncompress                | 2209ms | 2211ms |  828ms |  828ms |
                           |        |        |        |        |
Copy 1.4MB from NOR to RAM |  134ms |   72ms |  120ms |   70ms |

(1) No dcache
(2) dcache enabled in board_init
*Does not work when dcache is on

Size impact:

C version:
   text    data     bss     dec     hex filename
 202862   18912  266456  488230   77326 u-boot

ASM version:
   text    data     bss     dec     hex filename
 203798   18912  266288  488998   77626 u-boot
222712  u-boot.bin

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
13 years agoOMAP3: CM-T35: Add support for CM-T3730
Igor Grinberg [Mon, 18 Apr 2011 21:55:21 +0000 (17:55 -0400)]
OMAP3: CM-T35: Add support for CM-T3730

CM-T3730 is exactly the same board as CM-T35, but it has
TI DM3730 SoC onboard and therefore some changes have to take place

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: CM-T35: enable the green LED
Igor Grinberg [Mon, 18 Apr 2011 21:54:33 +0000 (17:54 -0400)]
OMAP3: CM-T35: enable the green LED

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: CM-T35: remove redundand i2c initialization
Igor Grinberg [Mon, 18 Apr 2011 21:53:33 +0000 (17:53 -0400)]
OMAP3: CM-T35: remove redundand i2c initialization

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: CM-T35: fix mmc
Igor Grinberg [Mon, 18 Apr 2011 21:52:31 +0000 (17:52 -0400)]
OMAP3: CM-T35: fix mmc

Use CONFIG_OMAP3_MMC in cm-t35 configuration file.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: CM-T35: add MMC1 pinmux
Igor Grinberg [Mon, 18 Apr 2011 21:50:07 +0000 (17:50 -0400)]
OMAP3: CM-T35: add MMC1 pinmux

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: CM-T35: update MAINTAINERS file
Igor Grinberg [Mon, 18 Apr 2011 21:49:26 +0000 (17:49 -0400)]
OMAP3: CM-T35: update MAINTAINERS file

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: CM-T35: update board files header information
Igor Grinberg [Mon, 18 Apr 2011 21:48:31 +0000 (17:48 -0400)]
OMAP3: CM-T35: update board files header information

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: CM-T35: update config
Igor Grinberg [Mon, 18 Apr 2011 21:48:28 +0000 (17:48 -0400)]
OMAP3: CM-T35: update config

update config for OMAP3 CM-T35

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: CM-T35: Move DECLARE_GLOBAL_DATA_PTR to file scope
Igor Grinberg [Mon, 18 Apr 2011 21:43:26 +0000 (17:43 -0400)]
OMAP3: CM-T35: Move DECLARE_GLOBAL_DATA_PTR to file scope

Move DECLARE_GLOBAL_DATA_PTR to file scop

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARMV7: AM3517/05: Add support for CraneBoard.
Srinath [Mon, 18 Apr 2011 21:40:35 +0000 (17:40 -0400)]
ARMV7: AM3517/05: Add support for CraneBoard.

It is a low cost reference design based on Sitara AM3517 SoC from Texas Instruments
Please refer to <www.craneboard.org> for more details.

Signed-off-by: Srinath <srinath@mistralsolutions.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: BeagleBoard: add more expansionboard IDs
Koen Kooi [Mon, 18 Apr 2011 21:29:35 +0000 (17:29 -0400)]
OMAP3: BeagleBoard: add more expansionboard IDs

Information on configurations pulled from
http://www.elinux.org/BeagleBoardPinMux#Vendor_and_Device_IDs

Boards added:
* Added BeagleBoardToys WiFi, VGA and LCD boards
* Added KBADC Beagle FPGA board
* Added Brainmux LCDog and LCDog Touch
* Added Liquidware BeagleTouch

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: BeagleBoard: add xM rev B to ID table
Koen Kooi [Mon, 18 Apr 2011 21:28:32 +0000 (17:28 -0400)]
OMAP3: BeagleBoard: add xM rev B to ID table

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

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: BeagleBoard: Enable pullups on i2c2.
Steve Kipisz [Mon, 18 Apr 2011 21:27:00 +0000 (17:27 -0400)]
OMAP3: BeagleBoard: Enable pullups on i2c2.

This allows the reading of EEPROMS on the expansion bus without adding
external pull-ups.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>