kernel/u-boot.git
12 years agoenv: fix crash using default -f -a
Gerlando Falauto [Fri, 5 Oct 2012 00:46:10 +0000 (00:46 +0000)]
env: fix crash using default -f -a

env default -a -f calls env_check_apply on all existing environment
variables with a NULL value for "newval" as a way of cleaning up.
This causes string manipulation functions to crash on most architectures.
So replace a NULL argument with an empty string.

Reported-By: Stefano Babic <sbabic@denx.de>
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Tested-by: Stefano Babic <sbabic@denx.de>
12 years agoImprove license declaration for cmd_ini.h
Joe Hershberger [Thu, 4 Oct 2012 09:54:07 +0000 (09:54 +0000)]
Improve license declaration for cmd_ini.h

Instead of referenceing the source webpage (which can change) include
the license in the source file.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reported-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Wolfgang Denk <wd@denx.de>
12 years agoMPC85xx: remove support for TQM85xx boards
Wolfgang Denk [Wed, 3 Oct 2012 23:36:18 +0000 (23:36 +0000)]
MPC85xx: remove support for TQM85xx boards

Due to grown code sizes the TQM85xx boards don't build any more with
some older tool chains (like ELDK 4.2).  As these boards have long
reached EOL it seems a waste of effort trying to fix them.  The vendor
has agreed to drop support for them, too.  So let's get rid of them.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
cc: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Stefan Roese <sr@denx.de>
12 years agosh: ap_sh4a_4a: Fixed initialization value of DDR memory
Nobuhiro Iwamatsu [Thu, 6 Sep 2012 00:35:10 +0000 (09:35 +0900)]
sh: ap_sh4a_4a: Fixed initialization value of DDR memory

The wrong value was set as value of column of DDR memory for ap_sh4a_4a.
10 is the right value. This fixed this problem.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Tom Rini [Thu, 4 Oct 2012 17:00:42 +0000 (10:00 -0700)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

12 years agoARM: Add Altera SOCFPGA Cyclone5
Dinh Nguyen [Thu, 4 Oct 2012 06:46:02 +0000 (06:46 +0000)]
ARM: Add Altera SOCFPGA Cyclone5

Add minimal support for Altera's SOCFPGA Cyclone 5 hardware.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Chin Liang See <clsee@altera.com>
Signed-off-by: Pavel Machek <pavel@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Tom Trini <trini@ti.com>
Cc: Wolfgang Denx <wd@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Stefan Roese <sr@denx.de>
----
v8: Remove no_return attribute for reset_cpu

Based on v2012.10-rc2

12 years agosnowball: Clear UART RX FIFO
Ramesh Chandrasekaran [Mon, 10 Sep 2012 20:28:27 +0000 (20:28 +0000)]
snowball: Clear UART RX FIFO

Without usb-serial cable plugged at this stage, some
garbage is seen in UART RX FIFO, which blocks autoboot
progress. The fix makes sure to empty the RX FIFO,
before we wait for user input to interrupt autoboot.

Signed-off-by: Ramesh Chandrasekaran <ramesh.chandrasekaran@stericsson.com>
12 years agoxilinx: Add new Zynq board
Michal Simek [Fri, 28 Sep 2012 09:56:37 +0000 (09:56 +0000)]
xilinx: Add new Zynq board

Add support for Xilinx Zynq board.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Marek Vasut <marex@denx.de>
CC: Joe Hershberger <joe.hershberger@gmail.com>
12 years agoarm: Support new Xilinx Zynq platform
Michal Simek [Thu, 13 Sep 2012 20:23:35 +0000 (20:23 +0000)]
arm: Support new Xilinx Zynq platform

Add timer driver.

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Joe Hershberger <joe.hershberger@gmail.com>
CC: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
12 years agoserial: Add Zynq serial driver
Michal Simek [Fri, 14 Sep 2012 00:55:24 +0000 (00:55 +0000)]
serial: Add Zynq serial driver

The driver is used on Xilinx Zynq platform.

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Joe Hershberger <joe.hershberger@gmail.com>
CC: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
12 years agoarm: Fixed the offset for the no relocation.
Zhong Hongbo [Sat, 1 Sep 2012 20:49:52 +0000 (20:49 +0000)]
arm: Fixed the offset for the no relocation.

When the u-boot address of destination equal to  __start,
no relocation. relocation offset(r9) = 0.

Signed-off-by: Zhong Hongbo <bocui107@gmail.com>
Tested-by: Stefano Babic <sbabic@denx.de>
12 years agoarm: Add CONFIG_OF_BOARD_SETUP support to bootm
Joe Hershberger [Fri, 17 Aug 2012 10:28:50 +0000 (10:28 +0000)]
arm: Add CONFIG_OF_BOARD_SETUP support to bootm

ARM boards need to change device tree settings as well

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoarm: Remove additional config flags
Michal Simek [Tue, 14 Aug 2012 01:15:17 +0000 (01:15 +0000)]
arm: Remove additional config flags

These options are just duplicated from arch/arm/cpu/armv7/config.mk

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agoarmv7 cpu_init_crit: Simplify code
Benoît Thébaudeau [Fri, 10 Aug 2012 12:05:16 +0000 (12:05 +0000)]
armv7 cpu_init_crit: Simplify code

We don't need to return to cpu_init_crit after calling lowlevel_init, so
lowlevel_init can directly return to the caller of cpu_init_crit.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
12 years agoarm: work around assembler bug
Allen Martin [Wed, 18 Jul 2012 13:45:53 +0000 (13:45 +0000)]
arm: work around assembler bug

Disable sibling call optimization based on binutils version.  This is
to work around a bug in the assember in binutils versions < 2.22.
Branches to weak symbols can be incorrectly optimized in thumb mode to
a short branch (b.n instruction) that won't reach when the symbol gets
preempted.

http://sourceware.org/bugzilla/show_bug.cgi?id=12532

Signed-off-by: Allen Martin <amartin@nvidia.com>
Acked-by: Tom Rini <trini@ti.com>
12 years agotools, config.mk: add binutils-version
Allen Martin [Wed, 15 Aug 2012 11:38:53 +0000 (11:38 +0000)]
tools, config.mk: add binutils-version

Modeled after gcc-version, add function to get binutils version.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Acked-by: Wolfgang Denk <wd@denx.de>
12 years agoARM: increase lmb stack space reservation to 4KB
Rob Herring [Thu, 28 Jun 2012 03:54:11 +0000 (03:54 +0000)]
ARM: increase lmb stack space reservation to 4KB

The bootm initrd image copy to ram can collide with the stack in cases
where the print buffer size is large (i.e. 1K). The result is intermittent
initrd decompression errors depending on the initrd size MOD 4KB since
the initrd start address is 4KB aligned.

Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoARM: Add X600 board support (SPEAr600 based)
Stefan Roese [Wed, 30 May 2012 22:59:08 +0000 (22:59 +0000)]
ARM: Add X600 board support (SPEAr600 based)

This patch adds support for the X600 SPEAr600 based board. Its also
the first SPEAr600 board that uses the newly introduced SPEAr600
SPL support. Xloader is not necessary any more. By using the new
"u-boot.spr" make target, one image will generated containing both,
U-Boot SPL (with mkimage header as needed by the SPEAr BootROM, and
the main U-Boot with mkimage header.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Amit Virdi <amit.virdi@st.com>
Cc: Vipin Kumar <vipin.kumar@st.com>
12 years agoext4: Rename block group descriptor table from gd to bgd
Simon Glass [Wed, 3 Oct 2012 11:37:49 +0000 (11:37 +0000)]
ext4: Rename block group descriptor table from gd to bgd

On x86 machines gd is unfortunately a #define, so we should avoid using
gd for anything. This patch changes uses of gd to bgd so that ext4fs
can be used on x86.

A better fix would be to remove the #define in x86, but I'm not sure
how to do that.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoOutput strings from echo with puts where easy
Joe Hershberger [Wed, 3 Oct 2012 13:09:15 +0000 (13:09 +0000)]
Output strings from echo with puts where easy

Change echo to puts characters together where it knows about them
together.  This improves netconsole performance by greatly reducing
the number of packets that are sent.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoAdd a command to access the system timer
Joe Hershberger [Wed, 3 Oct 2012 12:14:57 +0000 (12:14 +0000)]
Add a command to access the system timer

Two sub-commands... start and get.
 * start sets the reference.
 * get prints out the time since the last start (in "<sec>.<msec>" format).
If get is called without start, returns time since boot.
Simple way to benchmark an operation: "timer start;<commands-to-measure>;timer get"

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoAdd a new "ini" command
Joe Hershberger [Wed, 3 Oct 2012 11:15:51 +0000 (11:15 +0000)]
Add a new "ini" command

This allows you to read ini-formatted data from anywhere and then
import one of the sections into the environment

This is based on rev 16 at http://code.google.com/p/inih/

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoCleanup cache command prints
Joe Hershberger [Wed, 3 Oct 2012 10:56:17 +0000 (10:56 +0000)]
Cleanup cache command prints

Only print when queried, not every time the setting is changed.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoFix checkpatch.pl complaints in cmd_cache.c
Joe Hershberger [Wed, 3 Oct 2012 10:56:16 +0000 (10:56 +0000)]
Fix checkpatch.pl complaints in cmd_cache.c

Old code that is not compliant.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agonet: fix netconsole filtering
Joe Hershberger [Wed, 3 Oct 2012 09:14:03 +0000 (09:14 +0000)]
net: fix netconsole filtering

Adjustment of Michael Walle's fix patch

Commit 8a0eccb1056b313b45ab62e3aac400f339aa71b4 breaks netconsole. src_ip
must not be converted to host byte order, because nc_ip is already stored
in network byte order (see string_to_ip(), called by getenv_IPaddr()).

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoAdd parameter to md5sum to save the md5 sum
Joe Hershberger [Fri, 17 Aug 2012 11:00:48 +0000 (11:00 +0000)]
Add parameter to md5sum to save the md5 sum

Add a parameter that allows you to store the md5 sum to either a
memory location or a variable.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoImplement verify option for md5sum command
Joe Hershberger [Fri, 17 Aug 2012 11:00:47 +0000 (11:00 +0000)]
Implement verify option for md5sum command

Loosely based on CONFIG_CRC32_VERIFY.

The sum to verify against can be in memory, in a variable, or the last
parameter to the function directly.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoAdd parameter to sha1sum to save the SHA1 sum
Joe Hershberger [Fri, 17 Aug 2012 11:00:46 +0000 (11:00 +0000)]
Add parameter to sha1sum to save the SHA1 sum

Add a parameter that allows you to store the SHA1 sum to either a
memory location or a variable.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoImplement verify option for sha1sum command
Joe Hershberger [Fri, 17 Aug 2012 11:00:45 +0000 (11:00 +0000)]
Implement verify option for sha1sum command

Loosely based on CONFIG_CRC32_VERIFY.

The sum to verify against can be in memory, in a variable, or the last
parameter to the function directly.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoChange dead code in "test" cmd to debug output
Joe Hershberger [Fri, 17 Aug 2012 10:56:12 +0000 (10:56 +0000)]
Change dead code in "test" cmd to debug output

Improve debug output for test by indicating the number of parameters
and quoting the parameters to make it clear exactly what each contains

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoAllow runtime configuration of "zero-delay" check
Joe Hershberger [Fri, 17 Aug 2012 10:53:12 +0000 (10:53 +0000)]
Allow runtime configuration of "zero-delay" check

Define the new "-2" value for bootdelay to mean autoboot with no delay
and don't check for an abort key (while "0" value means do check).

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agoMerge remote-tracking branch 'u-boot-marvell/master'
Albert ARIBAUD [Wed, 3 Oct 2012 14:44:29 +0000 (16:44 +0200)]
Merge remote-tracking branch 'u-boot-marvell/master'

12 years agolsxl: also turn off fan in power down mode
Michael Walle [Sun, 30 Sep 2012 03:11:05 +0000 (03:11 +0000)]
lsxl: also turn off fan in power down mode

If while booting the power switch is in OFF position, turn off the fan,
too.

Signed-off-by: Michael Walle <michael@walle.cc>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
12 years agokm_kirkwood: enable MV88E6352_SWITCH support for kmnusa
Valentin Longchamp [Thu, 16 Aug 2012 01:25:20 +0000 (01:25 +0000)]
km_kirkwood: enable MV88E6352_SWITCH support for kmnusa

This is required to configure the external 88e6352 switch on nusa.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
Acked-by: Prafulla Wadaskar <Prafulla@marvell.com>
12 years agoarm/km: add mv88e6352 configuration for kmnusa
Valentin Longchamp [Thu, 16 Aug 2012 23:35:03 +0000 (23:35 +0000)]
arm/km: add mv88e6352 configuration for kmnusa

The kmnusa board uses a mv88e6352 switch that is connected to the main
eth interface of the kirkwood. Therefore the switch must be configured
so that the kirkwood's egiga eth inferface can be used.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Cc: Holger Brunck <holger.brunck@keymile.com>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Acked-By: Prafulla Wadaskar <prafulla@marvell.com>
12 years agoedminiv2: increase malloc len to 256K
Albert ARIBAUD [Fri, 21 Sep 2012 14:57:12 +0000 (14:57 +0000)]
edminiv2: increase malloc len to 256K

Malloc len of 128K caused a warning from
ehci_hcd asking for more.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
12 years agoARM: kirkwood/orion5x: Use reset_cpu definition in include/common.h
Dinh Nguyen [Fri, 14 Sep 2012 11:08:28 +0000 (11:08 +0000)]
ARM: kirkwood/orion5x: Use reset_cpu definition in include/common.h

include/common.h has the reset_cpu defined already. No need to
re-define here.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Pavel Machek <pavel@denx.de>
Acked-By: Prafulla Wadaskar <Prafulla@marvell.com>
12 years agokirkwood: ib62x0: Invert SATA activity LEDs
Simon Baatz [Fri, 20 Jul 2012 09:59:14 +0000 (09:59 +0000)]
kirkwood: ib62x0: Invert SATA activity LEDs

The hardware design of the IB-NAS62x0 causes the SATA activity
LEDs to be on when idle by default.  Reverse the polarity of the
activity LEDs in early init.

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Cc: Luka Perkov <uboot@lukaperkov.net>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Acked-by: Luka Perkov <uboot@lukaperkov.net>
12 years agoarm/km: use kw_sdram_size_adjust to adjust SDRAM size
Holger Brunck [Wed, 25 Jul 2012 06:26:03 +0000 (06:26 +0000)]
arm/km: use kw_sdram_size_adjust to adjust SDRAM size

Some boards may differ only in the SDRAM size. This function allows to
fix the size accordingly and we can use the same u-boot binary for both
boards.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

12 years agokirkwood: implement kw_sdram_size_adjust
Gerlando Falauto [Wed, 25 Jul 2012 06:23:48 +0000 (06:23 +0000)]
kirkwood: implement kw_sdram_size_adjust

Size of the SDRAM chips might differ between any two (otherwise
identical) instances of the same board.

So add a function kw_sdram_size_adjust() which reads out the current
ram size for a given bank, and adjusts the Kirkwood's SDRAM window size
register accordingly.

Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>

12 years agokirkwood: implement kw_sdram_bs_set()
Gerlando Falauto [Fri, 20 Jul 2012 02:34:25 +0000 (02:34 +0000)]
kirkwood: implement kw_sdram_bs_set()

Some boards might be equipped with different SDRAM configurations.
When that is the case, CPU CS Window Size Register (CS[0]n Size)
should be set to the biggest value through board.cfg file; then its
value can be fixed at runtime according to the detected SDRAM size.

Therefore, implement kw_sdram_bs_set().

Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Marek Vasut <marex@denx.de>
Acked-by: Prafulla Wadaskar <Prafulla@marvell.com>
12 years agokirkwood: use c-struct for access to SDRAM addr decode registers
Holger Brunck [Fri, 20 Jul 2012 02:34:24 +0000 (02:34 +0000)]
kirkwood: use c-struct for access to SDRAM addr decode registers

Remove the defines and do this with a C-struct.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Gerlando Falauto <gerlando.falauto@keymile.com>
cc: Marek Vasut <marex@denx.de>
Acked-By: Prafulla Wadaskar <Prafulla@marvell.com>
12 years agokirkwood: add support for Iomega iConnect board
Luka Perkov [Wed, 5 Sep 2012 08:01:25 +0000 (08:01 +0000)]
kirkwood: add support for Iomega iConnect board

Add support for new board iConnect from Iomega.

More information about the device can be found here:

http://go.iomega.com/en/products/network-storage-desktop/wireless-data-station/network-hard-drive-iconnect/?partner=4735

Signed-off-by: Luka Perkov <uboot@lukaperkov.net>
Tested-by: Wojciech Dubowik <wojciech.dubowik@neratec.com>
Tested-by: Tim Fletcher <tim@night-shade.org.uk>
12 years agokirkwood: fix mpp.h coding style
Luka Perkov [Wed, 5 Sep 2012 08:08:16 +0000 (08:08 +0000)]
kirkwood: fix mpp.h coding style

Signed-off-by: Luka Perkov <uboot@lukaperkov.net>
12 years agoARM: add support for d2 Network v2
Simon Guinot [Thu, 6 Sep 2012 10:51:43 +0000 (10:51 +0000)]
ARM: add support for d2 Network v2

This patch adds support for the LaCie board d2 Network v2 which share
a lot of hardware caracteristics with the 2Big Network v2.

- CPU: Marvell 88F6281 1200Mhz
- SDRAM memory: 256MB DDR2 400Mhz
- 2 SATA ports: internal and eSATA
- Gigabit ethernet: PHY Marvell 88E1116R
- Flash memory: SPI NOR 512KB (Macronix MX25L4005A)
- i2c EEPROM: 512 bytes (24C04 type)
- 2 USB2 ports: host and host/device
- 1 push button
- 1 power switch
- 1 SATA LED (bi-color, blue and red)

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
12 years agoARM: add support for Network Space v2 Lite and Mini
Simon Guinot [Thu, 6 Sep 2012 10:51:42 +0000 (10:51 +0000)]
ARM: add support for Network Space v2 Lite and Mini

This patch adds support for the LaCie boards Network Space v2 (Lite and
Mini). This two boards are derived from the Network Space v2 and a lot
of hardware caracteristics are shared.

- CPU: Marvell 88F6192 800Mhz
- SDRAM memory: 128MB DDR2 200Mhz
- 1 SATA port: internal
- Gigabit ethernet: PHY Marvell 88E1318
- Flash memory: SPI NOR 512KB (Macronix MX25L4005A)
- i2c EEPROM: 512 bytes (24C04 type)
- 2 USB2 ports (Lite only): host and host/device
- 1 push button
- 1 SATA LED (bi-color, blue and red)

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
12 years agolacie_kw: add support for EFI partitions
Simon Guinot [Thu, 6 Sep 2012 10:51:41 +0000 (10:51 +0000)]
lacie_kw: add support for EFI partitions

Defines CONFIG_EFI_PARTITION for LaCie boards.

Additionally this patch defines CONFIG_DOS_PARTITION. Note that this
definition is implicit in mv_common.h when CONFIG_CMD_USB is enabled.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
12 years agoARM : Add support for MINI2440 (s3c2440).
Gabriel Huau [Wed, 2 May 2012 10:48:37 +0000 (10:48 +0000)]
ARM : Add support for MINI2440 (s3c2440).

Support of the MINI2440 board from FriendlyARM from
an old version of u-boot :
http://repo.or.cz/r/u-boot-openmoko/mini2440.git

Currently, supporting only boot from NOR.

Signed-off-by: Gabriel Huau <contact@huau-gabriel.fr>
12 years agoARM : Add GPIO Driver and IOMUX definition for S3C2440
Gabriel Huau [Wed, 2 May 2012 10:49:55 +0000 (10:49 +0000)]
ARM : Add GPIO Driver and IOMUX definition for S3C2440

It's now possible to use the gpio driver interface
for s3c2440. This patch add iomux definitions too.

Signed-off-by: Gabriel Huau <contact@huau-gabriel.fr>
12 years agormobile: Fix build timer driver with BUILD_DIR
Nobuhiro Iwamatsu [Tue, 2 Oct 2012 16:40:39 +0000 (16:40 +0000)]
rmobile: Fix build timer driver with BUILD_DIR

Rmobile common timer driver  diverts the same driver as SH architecture.
When it builds at the same place with source, it is no problem, but when
it builds out of source, it cannot build.
This patch revises this problem.

Reported-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
12 years agoi2c: sh: Remove irq_wait function
Nobuhiro Iwamatsu [Tue, 2 Oct 2012 16:49:18 +0000 (16:49 +0000)]
i2c: sh: Remove irq_wait function

irq_wait function is not referred to from anywhere.

Reported-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
12 years agodoc/git-mailrc: Add 'rmobile' alias
Nobuhiro Iwamatsu [Thu, 9 Aug 2012 15:47:07 +0000 (15:47 +0000)]
doc/git-mailrc: Add 'rmobile' alias

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agormobile: Add README
Nobuhiro Iwamatsu [Thu, 9 Aug 2012 08:00:10 +0000 (17:00 +0900)]
rmobile: Add README

This add README of Renesas RMOBILE.
Based doc/README.omap3.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: Tom Rini <trini@ti.com>
12 years agormobile: armadillo-800eva: Remove CONFIG_SYS_NO_L2CACHE
Nobuhiro Iwamatsu [Thu, 9 Aug 2012 06:41:49 +0000 (15:41 +0900)]
rmobile: armadillo-800eva: Remove CONFIG_SYS_NO_L2CACHE

armadillo-800eva needs this config.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agormobile: armadillo-800eva: Add Support NFS and BOOTZ command
Nobuhiro Iwamatsu [Thu, 9 Aug 2012 06:39:33 +0000 (15:39 +0900)]
rmobile: armadillo-800eva: Add Support NFS and BOOTZ command

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agormobile: armadillo-800eva: Add Support CONFIG_OF_LIBFDT
Nobuhiro Iwamatsu [Thu, 9 Aug 2012 06:38:47 +0000 (15:38 +0900)]
rmobile: armadillo-800eva: Add Support CONFIG_OF_LIBFDT

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agormobile: armadillo-800eva: Change init function of SCIFA1
Nobuhiro Iwamatsu [Thu, 9 Aug 2012 06:32:28 +0000 (15:32 +0900)]
rmobile: armadillo-800eva: Change init function of SCIFA1

This initializes GPIO, without using PFC framework in
board_early_init_f function. It is because it cannot initialize
normally when PFC is used.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Add cpu_eth_init function
Nobuhiro Iwamatsu [Sun, 5 Aug 2012 22:26:09 +0000 (07:26 +0900)]
arm: rmobile: Add cpu_eth_init function

This supports ethernet driver of RMOBILE R8A7740.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: armadillo-800eva Remove board_eth_init
Nobuhiro Iwamatsu [Sun, 5 Aug 2012 22:25:33 +0000 (07:25 +0900)]
arm: rmobile: armadillo-800eva Remove board_eth_init

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Add support for ATMARK-TECHNO Armadillo-800EVA board
Hideyuki Sano [Wed, 27 Jun 2012 01:35:35 +0000 (10:35 +0900)]
arm: rmobile: Add support for ATMARK-TECHNO Armadillo-800EVA board

The Armadillo-800EVA board has Renesas R-Mobile R8A7740, 512MB DDR3-SDRAM,
Ethernet, and more.

This patch supports the following functions:
 - 512MB DDR3-SDRAM
 - Serial console (SCIF)
 - Ethernet MAC(MII) & PHY(SMSC)

Signed-off-by: Hideyuki Sano <hideyuki.sano.dn@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Add support PFC of Renesas R8A7740
Nobuhiro Iwamatsu [Fri, 20 Jul 2012 04:07:43 +0000 (13:07 +0900)]
arm: rmobile: Add support PFC of Renesas R8A7740

Renesas R8A7740 has GPIO based PFC. This privode framework of PFC.
The code included in this base from linux kernel.

Signed-off-by: Hideyuki Sano <hideyuki.sano.dn@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Add support Renesas R8A7740
Nobuhiro Iwamatsu [Fri, 20 Jul 2012 04:06:54 +0000 (13:06 +0900)]
arm: rmobile: Add support Renesas R8A7740

Renesas R8A7740 is CPU with Cortex-A9.
This supports the basic register definition and GPIO.

Signed-off-by: Hideyuki Sano <hideyuki.sano.dn@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: Add CONFIG_GLOBAL_TIMER to board config file
Nobuhiro Iwamatsu [Fri, 3 Aug 2012 04:56:52 +0000 (13:56 +0900)]
arm: rmobile: kzm9g: Add CONFIG_GLOBAL_TIMER to board config file

kzm9g board use global timer. But by commit 813ffda31, timer function of
rmobile was changed that global timer might be used, when CONFIG_GLOBAL_TIMER
was defined.
This add CONFIG_GLOBAL_TIMER to board config file.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Add support TMU base timer function
Nobuhiro Iwamatsu [Fri, 3 Aug 2012 05:21:05 +0000 (14:21 +0900)]
arm: rmobile: Add support TMU base timer function

Some rmobile SoC has TMU base timer function. This supports TMU.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Change initializing ICCICR register
Nobuhiro Iwamatsu [Wed, 25 Jul 2012 06:48:27 +0000 (15:48 +0900)]
arm: rmobile: Change initializing ICCICR register

There is rmobile without ICCICR.
ICCICR is initialized only when ICCICR is defined.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: remove unrelated config
Nobuhiro Iwamatsu [Fri, 27 Jul 2012 02:45:14 +0000 (11:45 +0900)]
arm: rmobile: kzm9g: remove unrelated config

Remove CONFIG_ARM_CORTEXA9.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: Add LIBFDT support
Nobuhiro Iwamatsu [Fri, 27 Jul 2012 02:40:13 +0000 (11:40 +0900)]
arm: rmobile: kzm9g: Add LIBFDT support

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: separate cpu_rev to integer and fraction
Tetsuyuki Kobayashi [Wed, 25 Jul 2012 18:24:21 +0000 (18:24 +0000)]
arm: rmobile: kzm9g: separate cpu_rev to integer and fraction

According to SoC document, revision info is separated to integer part and
fracton part.
So I separete rmobile_get_cpu_rev() to rmobile_get_cpu_rev_integer() and
rmobile_get_cpu_rev_fraction().

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: fix CPU info
Tetsuyuki Kobayashi [Wed, 25 Jul 2012 18:24:20 +0000 (18:24 +0000)]
arm: rmobile: kzm9g: fix CPU info

CPU info register was read wrongly by mistake. And function rmobile_get_cpu_rev() was not called properly.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: remove unrelated config
Tetsuyuki Kobayashi [Wed, 25 Jul 2012 18:24:19 +0000 (18:24 +0000)]
arm: rmobile: kzm9g: remove unrelated config

Remove CONFIG_INTEGRATOR and CONFIG_ARCH_CINTEGRATOR. These are not for kzm9g.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: add NFS_TIMEOUT in config file
Tetsuyuki Kobayashi [Wed, 25 Jul 2012 18:24:18 +0000 (18:24 +0000)]
arm: rmobile: kzm9g: add NFS_TIMEOUT in config file

Set NFS_TIMEOUT to 10,000 msec.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: Fix CONFIG_BAUDRATE setting
Tetsuyuki Kobayashi [Thu, 19 Jul 2012 16:16:08 +0000 (16:16 +0000)]
arm: rmobile: kzm9g: Fix CONFIG_BAUDRATE setting

The value of CONFIG_BAUDRATE is treated as string and put as initial value of
environment variable. If it begin with '(', it is wrongly parsed to 0 in number.
So I removed '(' and ')'.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt
Tetsuyuki Kobayashi [Thu, 19 Jul 2012 23:27:56 +0000 (23:27 +0000)]
arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt

Add dummy member to struct sh73a0_rwdt in sh73a0.h.
Without this, initializing watch dog timer goes wrong.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Support build with gcc-4.6 or later
Nobuhiro Iwamatsu [Thu, 5 Jul 2012 23:53:02 +0000 (08:53 +0900)]
arm: rmobile: Support build with gcc-4.6 or later

Latest rmobile code was tested by using old gcc (gcc-4.4).
When we use gcc-4.6 (or later), the build is made, but does not work.
This solves a problem not to work by add -march=armv5 to compiple option
when we built in gcc-4.6 (or later).
I tested by linaro's compiler version 2012.04-20120426.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: enable reset command
Tetsuyuki Kobayashi [Mon, 16 Jul 2012 19:13:12 +0000 (19:13 +0000)]
arm: rmobile: kzm9g: enable reset command

Do soft power on reset in U-Boot reset command.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: Modify bus controller setting for CS4
Tetsuyuki Kobayashi [Mon, 16 Jul 2012 19:13:11 +0000 (19:13 +0000)]
arm: rmobile: kzm9g: Modify bus controller setting for CS4

Problem:
Linux kernel hangs up when it write a file to NFS mounted directory.
Solution:
Modify bus controller setting for CS4, which connected smsc9221 ethernet
controller.

Detail:
Modify CS4BCR bit[29:28] (IWW[1:0]) from 00 to 01.
Modify CS4BCR bit[20:19] (IWRRD[1:0]) from 00 to 01.
Modify CS4BCR bit[17:16] (IWRRS[1:0]) from 00 to 01.
Modify CS4WCR bit[27:26] (WSW[1:0]) from 10 to 11
Modify CS4WCR bit[25:24] (WHW[1:0]) from 01 to 10
Modify CS4WCR bit[18:16] (WW[2:0]) from 101 to 111
Modify CS4WCR bit[13:11] (SW[2:0]) from 010 to 011
Modify CS4WCR bit[10:7] (WR[3:0]) from 1000 to 1011

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: change prompt to board specific
Tetsuyuki Kobayashi [Thu, 5 Jul 2012 01:43:52 +0000 (01:43 +0000)]
arm: rmobile: kzm9g: change prompt to board specific

Change U-Boot prompt to board specific one.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: Adjust low level hardware setting
Tetsuyuki Kobayashi [Thu, 5 Jul 2012 01:43:48 +0000 (01:43 +0000)]
arm: rmobile: kzm9g: Adjust low level hardware setting

Adjust low level hardware setting in s_init.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: kzm9g: Modify sdram area
Tetsuyuki Kobayashi [Thu, 5 Jul 2012 01:43:44 +0000 (01:43 +0000)]
arm: rmobile: kzm9g: Modify sdram area

Reserve first 16MB for RT-CPU (as same as kernel config).

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Add supoprt for KMC KZM-A9-GT board
Nobuhiro Iwamatsu [Thu, 21 Jun 2012 05:55:07 +0000 (14:55 +0900)]
arm: rmobile: Add supoprt for KMC KZM-A9-GT board

The KZM-A9-GT board has Renesas R-Mobile SH73A0, 512MB DDR2-SDRAM,
USB, Ethernet, and more.

This patch supports the following functions:
- 512MB DDR2-SDRAM
- 16MB NOR Flash memory
- Serial console (SCIF)
- Ethernet (SMSC)
- I2C

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Add support PFC of Renesas SH73A0
Nobuhiro Iwamatsu [Fri, 20 Jul 2012 00:29:19 +0000 (09:29 +0900)]
arm: rmobile: Add support PFC of Renesas SH73A0

Renesas SH73A0 has GPIO based PFC. This privode framework of PFC.
The code included in this base from linux kernel.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Add support Renesas SH73A0
Nobuhiro Iwamatsu [Sun, 19 Aug 2012 04:40:05 +0000 (04:40 +0000)]
arm: rmobile: Add support Renesas SH73A0

Renesas SH73A0 is CPU with Cortex-A9.
This supports the basic register definition and GPIO.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoarm: rmobile: Add basic support for Renesas R-Mobile
Nobuhiro Iwamatsu [Wed, 13 Jun 2012 07:29:47 +0000 (16:29 +0900)]
arm: rmobile: Add basic support for Renesas R-Mobile

This patch adds minimum support for R-Mobile. Only minimal support with timer.
This CPU can uses the peripheral of Renesas SuperH.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoARMv7: Add register definition of global timer
Nobuhiro Iwamatsu [Wed, 13 Jun 2012 07:13:24 +0000 (16:13 +0900)]
ARMv7: Add register definition of global timer

ARMv7 has global timer. This provides the register definition of this timer.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
12 years agoREADME: Add handy kermit primer
Karl O. Pinc [Mon, 1 Oct 2012 05:11:56 +0000 (05:11 +0000)]
README: Add handy kermit primer

Signed-off-by: Karl O. Pinc <kop@meme.com>
12 years agoTNETV107X: Change tnetv107x_evm maintainer
Chan-Taek Park [Tue, 2 Oct 2012 05:21:28 +0000 (05:21 +0000)]
TNETV107X: Change tnetv107x_evm maintainer

12 years agoMAINTAINERS: New maintainer for Samsung's Trats development board.
Łukasz Majewski [Tue, 2 Oct 2012 06:32:07 +0000 (06:32 +0000)]
MAINTAINERS: New maintainer for Samsung's Trats development board.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
12 years agoTQM8xx: adjust linker script to grown code size
Wolfgang Denk [Wed, 26 Sep 2012 22:30:08 +0000 (22:30 +0000)]
TQM8xx: adjust linker script to grown code size

Some of the previous changes caused the code to grow, which causes
errors like

u-boot.lds:76 cannot move location counter backwards (from 4000828c to 40008000)

when building with some older tool chains (like ELDK 4.2).
Adjust the linker script to make fit again.

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agompc52xx/motionpro: fix monitor size and update default environment
Wolfgang Grandegger [Sat, 29 Sep 2012 09:27:00 +0000 (09:27 +0000)]
mpc52xx/motionpro: fix monitor size and update default environment

Since a while, the size of the u-boot.bin image is larger than
256kB. This requires moving the environment sectors by one. As
we are at it, we also update a few other custom settings.

Signed-off-by: Wolfgang Grandegger <wg@denx.de>
12 years agoopenrisc/bitops: add hweightX defines
Stefan Kristiansson [Wed, 22 Feb 2012 07:10:09 +0000 (07:10 +0000)]
openrisc/bitops: add hweightX defines

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
12 years agoopenrisc: implement get_ticks and get_tbclk
Stefan Kristiansson [Wed, 22 Feb 2012 07:10:10 +0000 (07:10 +0000)]
openrisc: implement get_ticks and get_tbclk

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
12 years agoomap4_panda: remove CONFIG_PANDA, not used
Peter Meerwald [Thu, 27 Sep 2012 23:19:14 +0000 (23:19 +0000)]
omap4_panda: remove CONFIG_PANDA, not used

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
12 years agoam335x-evm config: decrease bootdelay to 1s and mount rootfs RO
Koen Kooi [Wed, 26 Sep 2012 07:19:43 +0000 (07:19 +0000)]
am335x-evm config: decrease bootdelay to 1s and mount rootfs RO

A fast boot is important to the beaglebone, so save 2 seconds here by
decreasing bootdelay. This is still plenty time to break into the prompt,
I do that at least once a day.

Mount the rootfs RO by default, this is needed to make fsck succeed
without resorting to an initramfs.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
12 years agoam33xx: Fix fetching of mmc1 bootmode from bootrom for AM33XX
Joel A Fernandes [Tue, 18 Sep 2012 04:30:51 +0000 (04:30 +0000)]
am33xx: Fix fetching of mmc1 bootmode from bootrom for AM33XX

U-boot should not ignore getting the bootmode passed on from the bootrom.
With this, U-boot SPL knows it was loaded from MMC1 and use this info to
read full U-boot from MMC1 as well.

Cc: pprakash@ti.com
Cc: trini@ti.com
Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
12 years agoOMAP: networking support for SPL
Ilya Yanok [Tue, 18 Sep 2012 00:22:50 +0000 (00:22 +0000)]
OMAP: networking support for SPL

This patch adds support for networking in SPL. Some devices are
capable of loading SPL via network so it makes sense to load the
main U-Boot binary via network too. This patch tries to use
existing network code as much as possible. Unfortunately, it depends
on environment which in turn depends on other code so SPL size
is increased significantly. No effort was done to decouple network
code and environment so far.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Tom Rini <trini@ti.com>
12 years agoam335x_evm: enable networking in SPL
Ilya Yanok [Mon, 17 Sep 2012 10:26:28 +0000 (10:26 +0000)]
am335x_evm: enable networking in SPL

This patch adds support for networking in SPL on TI AM335x based
boards. Vendor Class Identifier used by SPL during BOOTP is
"AM335x U-Boot SPL".

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
12 years agoOMAP: spl: call timer_init() from SPL
Ilya Yanok [Mon, 17 Sep 2012 10:26:26 +0000 (10:26 +0000)]
OMAP: spl: call timer_init() from SPL

We need to initialize timer properly, otherwise all delays
inside SPL will be wrong.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
12 years agonet/bootp: add VCI support for BOOTP also
Ilya Yanok [Mon, 17 Sep 2012 10:26:25 +0000 (10:26 +0000)]
net/bootp: add VCI support for BOOTP also

Vendor Class Identifier option is common to BOOTP and DHCP and
can be useful without PXE. So send VCI in both BOOTP and DHCP
requests if CONFIG_BOOTP_VCI_STRING is defined.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
Signed-off-by: Tom Rini <trini@ti.com>
12 years agodavinci: ea20: add some configs and default environmet variables
Bastian Ruppert [Thu, 13 Sep 2012 22:29:04 +0000 (22:29 +0000)]
davinci: ea20: add some configs and default environmet variables

Signed-off-by: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
CC: Tom Rini <trini@ti.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agoda850/omap-l138: davinci_emac: Suppress auto negotiation if needed
Bastian Ruppert [Thu, 13 Sep 2012 22:29:03 +0000 (22:29 +0000)]
da850/omap-l138: davinci_emac: Suppress auto negotiation if needed

negotiation is enabled in RMII mode. Some boards based on da850 need
to suppress this procedure.

CC: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
CC: Lad, Prabhakar <prabhakar.lad@ti.com>
CC: Hadli, Manjunath <manjunath.hadli@ti.com>
CC: sbabic@denx.de
Acked-by: Stefano Babic <sbabic@denx.de>
CC: Tom Rini <trini@ti.com>
Signed-off-by: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
Acked-by: Prabhakar Lad <prabhakar.lad@ti.com>