platform/kernel/u-boot.git
13 years agogpio:samsung s5p_ suffix add for GPIO functions
Łukasz Majewski [Fri, 15 Jul 2011 00:16:22 +0000 (00:16 +0000)]
gpio:samsung s5p_ suffix add for GPIO functions

This change is driven by need of general gpio_* functions,
which as their parameter are accepting the GPIO pin number, NOT
block and pin.

This makes the code alike to omap, and allows for using more
generic frameworks (e.g. software I2C).

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agommc: S5P: Support DMA restarts at buffer boundaries
Anton Staaf [Thu, 30 Jun 2011 09:55:08 +0000 (09:55 +0000)]
mmc: S5P: Support DMA restarts at buffer boundaries

Currently if a DMA buffer straddles a buffer alignment boundary
(512KiB) then the DMA engine will pause and generate a DMA
interrupt.  Since the DMA interrupt is not enabled it will hang
the MMC driver.

This patch adds support for restarting the DMA transfer.  The
SYSTEM_ADDRESS register contains the next address that would have
been read/written when a boundary is hit.  So we can read that
and write it back.  The write triggers the resumption of the
transfer.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Tested-by : Jaehoon Chung <jh80.chung@samsung.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agoSMDKV310: Fix host compilation of mkv310_image
Dirk Behme [Mon, 11 Jul 2011 08:49:18 +0000 (08:49 +0000)]
SMDKV310: Fix host compilation of mkv310_image

Fix compilation of mkv310_image host tool

tools/mkv310_image.c: In function 'main':
tools/mkv310_image.c:67: error: 'S_IRUSR' undeclared (first use in this function)
tools/mkv310_image.c:67: error: (Each undeclared identifier is reported only once
tools/mkv310_image.c:67: error: for each function it appears in.)
tools/mkv310_image.c:67: error: 'S_IWUSR' undeclared (first use in this function)
tools/mkv310_image.c:67: error: 'S_IRGRP' undeclared (first use in this function)
tools/mkv310_image.c:67: error: 'S_IWGRP' undeclared (first use in this function)
tools/mkv310_image.c:67: error: 'S_IROTH' undeclared (first use in this function)
tools/mkv310_image.c:67: error: 'S_IWOTH' undeclared (first use in this function)

resulting from a 'make smdkv310_config'.

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agoarm: fix bd pointer dereference prior initialization
Igor Grinberg [Tue, 16 Aug 2011 23:48:23 +0000 (23:48 +0000)]
arm: fix bd pointer dereference prior initialization

gd->bd pointer has been used prior been initialized.
Move the relevant code after the initialization.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoarm, lib/board.c: use gd->ram_size instead of bd->bi_memsize
Heiko Schocher [Thu, 2 Jun 2011 22:11:37 +0000 (22:11 +0000)]
arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Albert Aribaud <albert.u.boot@aribaud.net>

13 years agomx5: Remove CONFIG_L2_OFF and CONFIG_SYS_L2CACHE_OFF
Jason Liu [Wed, 3 Aug 2011 00:05:47 +0000 (00:05 +0000)]
mx5: Remove CONFIG_L2_OFF and CONFIG_SYS_L2CACHE_OFF

CONFIG_L2_OFF is obsolete after the following commit:

e47f2db5371047eb9bcd115fee084e6a8a92a239
armv7: rename cache related CONFIG flags
Replace the cache related CONFIG flags with more meaningful
names. Following are the changes:
CONFIG_L2_OFF      -> CONFIG_SYS_L2CACHE_OFF

Since imx5 does not provide L2 cache operations(Enable/Disable)
Simply remove CONFIG_L2_OFF and CONFIG_SYS_L2CACHE_OFF

Signed-off-by: Jason Liu <jason.hui@linaro.org>
Cc:Stefano Babic <sbabic@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agoMX31: removed warnings due to clock.h
Stefano Babic [Thu, 28 Jul 2011 17:28:13 +0000 (19:28 +0200)]
MX31: removed warnings due to clock.h

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agointegrator: convert to new build system
Linus Walleij [Fri, 12 Aug 2011 00:28:57 +0000 (00:28 +0000)]
integrator: convert to new build system

This deletes the integrator split_by_variant.sh script and
defines a number of unique board types for the core modules
that are meaningful to support for the Integrator AP/CP, i.e.
the ones that did not just say "unsupported core module" in
split_by_variant.sh. If more core modules need to be supported
they are easy to add.

We delete all the old cruft in Makefile and MAKEALL that was
working around the old way of building boards. We create a
unique config file per board to satisfy the build system, but
they are just oneliners that include the existing
integratorap.h and integratorcp.h configs.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agointegratorcp: make the board compile
Linus Walleij [Mon, 25 Jul 2011 01:52:00 +0000 (01:52 +0000)]
integratorcp: make the board compile

This defines the requires CONFIG_SYS_* variables to make the
Integrator CP board compile.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agointegratorap: remove hardcoded 32MB memory cmdline
Linus Walleij [Mon, 25 Jul 2011 01:51:37 +0000 (01:51 +0000)]
integratorap: remove hardcoded 32MB memory cmdline

The default configuration for the Integrator AP forces memory to be
32 MB on the command line to the kernel, while we have perfect
information and detection of the actual memory size in the ATAGs.
Delete the confusion.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agointegratorap: support some rudimentary commands
Linus Walleij [Mon, 25 Jul 2011 01:51:08 +0000 (01:51 +0000)]
integratorap: support some rudimentary commands

This adds support for a subset of the default commands for the
Integrator, however since the card does not have Ethernet (unless
you plug in a PCI card) we can not use the default command set.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agointegratorap: support the hush shell
Linus Walleij [Mon, 25 Jul 2011 01:50:47 +0000 (01:50 +0000)]
integratorap: support the hush shell

Give us some kind of sane shell environment so the bootloader can
be used.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agointegratorap: support relocation
Linus Walleij [Mon, 25 Jul 2011 01:50:08 +0000 (01:50 +0000)]
integratorap: support relocation

The integrator board was apparently never converted over to support
relocation until now. After this the integrator u-boot both compiles
and boots on the Integrator AP.

This also fixes the SDRAM memory size detection.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agointegratorap: make the compile work again
Linus Walleij [Mon, 25 Jul 2011 01:49:36 +0000 (01:49 +0000)]
integratorap: make the compile work again

The integratorap/cp config for u-boot was outdated and would not
even compile, so fix the obvious missing bits for it to start
building. After this "make ap920t_config/make all" starts working
again.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoarm: lib: memcpy: Do not copy to same address
Matthias Weisser [Sun, 22 May 2011 23:06:50 +0000 (23:06 +0000)]
arm: lib: memcpy: Do not copy to same address

In some cases (e.g. bootm with a elf payload which is already at the right
position) there is a in place copy of data to the same address. Catching this
saves some ms while booting.

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
13 years agoarm: omap: innovator: use common code for machine type
Igor Grinberg [Sun, 3 Jul 2011 23:00:21 +0000 (23:00 +0000)]
arm: omap: innovator: use common code for machine type

Innovator and H2 boards used machine_is_* macros for setting the machine
type. These macros are expanded in compile time and thus leaves
unreachable code (though gcc might optimize it).
Switch them to use common code for machine type setting.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoarm: nvidia and smdk6400: use common code for machine type
Igor Grinberg [Sun, 3 Jul 2011 23:00:20 +0000 (23:00 +0000)]
arm: nvidia and smdk6400: use common code for machine type

NVIDIA boards and Samsung SMDK6400 already use a local variant of
CONFIG_MACH_TYPE option.
Switch to use the new common code.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoMAKEALL ARMv7: Use boards.cfg
Dirk Behme [Fri, 5 Aug 2011 20:48:32 +0000 (20:48 +0000)]
MAKEALL ARMv7: Use boards.cfg

Use the boards from boards.cfg for building ./MAKEALL ARMV7.

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
13 years agoatmel: Update support of board AT91SAM9M10G45-EK to new style
Thomas Petazzoni [Thu, 4 Aug 2011 11:08:50 +0000 (11:08 +0000)]
atmel: Update support of board AT91SAM9M10G45-EK to new style

Based on earlier work by Alex Waterman <awaterman@dawning.com>.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agoAT91: fix at91sam9g45.h to include USB Host defines
Reinhard Meyer [Thu, 4 Aug 2011 20:56:11 +0000 (20:56 +0000)]
AT91: fix at91sam9g45.h to include USB Host defines

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agomake pm9g45 buildable for v2011.06 release
Asen Dimov [Wed, 8 Jun 2011 22:01:37 +0000 (22:01 +0000)]
make pm9g45 buildable for v2011.06 release

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
changed at91_serial_hw_init to at91_seriald_hw_init

13 years agomake pm9263 buildable for v2011.06 release
Asen Dimov [Wed, 8 Jun 2011 22:01:16 +0000 (22:01 +0000)]
make pm9263 buildable for v2011.06 release

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
13 years agoatmel: update at91sam9m10g45 SoC support to new style
Thomas Petazzoni [Thu, 4 Aug 2011 08:53:29 +0000 (08:53 +0000)]
atmel: update at91sam9m10g45 SoC support to new style

Based on earlier work by Alex Waterman <awaterman@dawning.com>.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agopm9261: compiles with the AT91 reworked scheme
Asen Dimov [Tue, 26 Jul 2011 04:48:41 +0000 (04:48 +0000)]
pm9261: compiles with the AT91 reworked scheme

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
13 years agotny_a9260/tny_a9g20: update board to the new AT91 organization
Thomas Petazzoni [Thu, 4 Aug 2011 02:48:56 +0000 (02:48 +0000)]
tny_a9260/tny_a9g20: update board to the new AT91 organization

Cc: Albin Tonnerre <tonnerrealbin@gmail.com>
CC: Gregory Hermant <gregory.hermant@calao-systems.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agosbc35_a9g20: update board to the new AT91 organization
Thomas Petazzoni [Thu, 4 Aug 2011 02:22:20 +0000 (02:22 +0000)]
sbc35_a9g20: update board to the new AT91 organization

Cc: Albin Tonnerre <tonnerrealbin@gmail.com>
Cc: Gregory Hermant <gregory.hermant@calao-systems.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
Removed SBC35 from MAKEALL

13 years agoat91: reworked support for meesc board
Matthias Fuchs [Tue, 19 Jul 2011 01:56:06 +0000 (01:56 +0000)]
at91: reworked support for meesc board

The meesc board support was broken. Within this opportunity, I completely
reworked the board files.

Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
Signed-off-by: Matthias Fuchs <Matthias.Fuchs@esd.eu>
13 years agoMPC8xx: fix build problem for ETX094 board
Wolfgang Denk [Fri, 26 Aug 2011 10:27:58 +0000 (10:27 +0000)]
MPC8xx: fix build problem for ETX094 board

Commit 7616e78 "Add Ethernet hardware MAC address framework to usbnet"
increased the code size and broke building for the ETX094 board.
Adjust the linker script to make it build again.

While we are at it, remove unused u-boot.lds.debug

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agophy.c: make less verbose - turn printf() into debug()
Wolfgang Denk [Sun, 24 Jul 2011 21:39:10 +0000 (21:39 +0000)]
phy.c: make less verbose - turn printf() into debug()

The PHY driver was too verbose and corrupted the boot message display
like this:

...
Net:   TSEC0 connected to Marvell 88E1111S
TSEC1 connected to Marvell 88E1111S
TSEC0, TSEC1
...

Turn printf() into debug() so we het the expected output again:

...
Net:   TSEC0, TSEC1
...

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Kumar Gala <galak@kernel.crashing.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Wolfgang Denk [Fri, 26 Aug 2011 13:55:03 +0000 (15:55 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-sh

* 'master' of git://git.denx.de/u-boot-sh:
  sh: add calling mmc_initialize in board.c
  sh: sh7757lcr: Add KEEP order to start.o section
  usb: r8a66597: Fix argument mistake of inl
  sh: Clean up rsk7264 board settings
  sh: sh2a: Add sh2a optimize to config.mk
  sh: Fix rsk7203 alignment problem
  sh: Add support for SH2A freestanding build
  sh: Add Renesas rsk7264 board

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-ubi
Wolfgang Denk [Fri, 26 Aug 2011 13:54:14 +0000 (15:54 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ubi

* 'master' of git://git.denx.de/u-boot-ubi:
  ubifs: Fix bad free() sequence in ubifs_finddir()

13 years agosh: add calling mmc_initialize in board.c
Yoshihiro Shimoda [Tue, 5 Jul 2011 08:18:38 +0000 (17:18 +0900)]
sh: add calling mmc_initialize in board.c

Some SH have MMC controller. So, if we need it, we have to call
the mmc_initialize().

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: sh7757lcr: Add KEEP order to start.o section
Yoshihiro Shimoda [Tue, 5 Jul 2011 08:15:16 +0000 (17:15 +0900)]
sh: sh7757lcr: Add KEEP order to start.o section

The sh7757lcr has a local u-boot.lds because the sh7757lcr is only
supported the SPI booting.
This patch refers from the commit "sh: Add KEEP order to start.o section"
(commit ID: b52da2aed8c2c388661f369052a97d5b5c9ed00a).

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agousb: r8a66597: Fix argument mistake of inl
Nobuhiro Iwamatsu [Mon, 27 Jun 2011 07:07:37 +0000 (16:07 +0900)]
usb: r8a66597: Fix argument mistake of inl

Fail in build, because argument of inl used in r8a66597_read_fifo is wrong.

r8a66597.h:441:35: error: macro "inl" passed 2 arguments, but takes just 1
In file included from r8a66597-hcd.c:25:
r8a66597.h: In function ‘r8a66597_read_fifo’:
r8a66597.h:441: error: ‘inl’ undeclared (first use in this function)
r8a66597.h:441: error: (Each undeclared identifier is reported only once
r8a66597.h:441: error: for each function it appears in.)

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Clean up rsk7264 board settings
Phil Edworthy [Thu, 9 Jun 2011 15:22:43 +0000 (16:22 +0100)]
sh: Clean up rsk7264 board settings

Adjusted default settings so that we can boot zImages and uImages.
Removed unused settings, use default commands and where possible
calculate all other settings.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: sh2a: Add sh2a optimize to config.mk
Nobuhiro Iwamatsu [Thu, 9 Jun 2011 06:03:34 +0000 (15:03 +0900)]
sh: sh2a: Add sh2a optimize to config.mk

Only the optimization of sh2 had been supported up.
This adds the optimization of sh2a.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Fix rsk7203 alignment problem
Phil Edworthy [Tue, 31 May 2011 08:51:42 +0000 (01:51 -0700)]
sh: Fix rsk7203 alignment problem

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Add support for SH2A freestanding build
Phil Edworthy [Thu, 2 Jun 2011 22:15:27 +0000 (22:15 +0000)]
sh: Add support for SH2A freestanding build

SH2A toolchains often only provide an fdpic version of libgcc. This
can't be used with bare-metal software like U-Boot, so this patch
provides the necessary functions extracted from libgcc.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Add Renesas rsk7264 board
Phil Edworthy [Wed, 1 Jun 2011 06:35:13 +0000 (07:35 +0100)]
sh: Add Renesas rsk7264 board

The rsk7264 (also know as rsk2+sh7264) is an SH2A based board
with 64MB NAND flash and 64MB SDRAM. It is very similar to the
rsk7203 board.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agoubifs: Fix bad free() sequence in ubifs_finddir()
Wolfgang Denk [Thu, 28 Jul 2011 13:27:22 +0000 (15:27 +0200)]
ubifs: Fix bad free() sequence in ubifs_finddir()

Free private_data member element before freeing file structure.
This was causing malloc to crash. Also remove unnecessary variable
assigments as file structure gets free'd as well.

Signed-off-by: Rod Boyce <uboot@teamboyce.co.uk>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
13 years agousb: increase non-bulk timeout for slow chipsets.
Jason Cooper [Sun, 31 Jul 2011 20:09:58 +0000 (20:09 +0000)]
usb: increase non-bulk timeout for slow chipsets.

If you take a look at 96820a35, you'll see the original timeout was
CONFIG_SYS_HZ.  Which is 1000.  After the mentioned change, non-bulk timeout
was changed to 100.  This causes timeout failures on the dreamplug platform
when trying to initialize the usb microsd reader.

Signed-off-by: Jason Cooper <u-boot@lakedaemon.net>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoUSB: Move USB_PRINTF() out of ifdef in usb_scan_devices()
Marek Vasut [Tue, 12 Jul 2011 00:16:46 +0000 (02:16 +0200)]
USB: Move USB_PRINTF() out of ifdef in usb_scan_devices()

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
13 years agoUSB: Set portnr so USB1.1 and 1.0 devices work on EHCI controllers
Marek Vasut [Tue, 12 Jul 2011 00:16:47 +0000 (02:16 +0200)]
USB: Set portnr so USB1.1 and 1.0 devices work on EHCI controllers

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
13 years agousb: r8a66597: Fix argument mistake of inl
Nobuhiro Iwamatsu [Mon, 11 Jul 2011 02:03:47 +0000 (11:03 +0900)]
usb: r8a66597: Fix argument mistake of inl

Fail in build, because argument of inl used in r8a66597_read_fifo is wrong.

r8a66597.h:441:35: error: macro "inl" passed 2 arguments, but takes just 1
In file included from r8a66597-hcd.c:25:
r8a66597.h: In function ‘r8a66597_read_fifo’:
r8a66597.h:441: error: ‘inl’ undeclared (first use in this function)
r8a66597.h:441: error: (Each undeclared identifier is reported only once
r8a66597.h:441: error: for each function it appears in.)

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agoPut common autoload code into auto_load() function
Simon Glass [Mon, 13 Jun 2011 23:13:12 +0000 (16:13 -0700)]
Put common autoload code into auto_load() function

This is a small clean-up patch.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Eric Bénard <eric@eukrea.com>
13 years agoAdd documentation for USB Host Networking
Simon Glass [Mon, 13 Jun 2011 23:13:11 +0000 (16:13 -0700)]
Add documentation for USB Host Networking

This describes what it is for, devices supported, how to enable for your
board in U-Boot, setting up the server, and notes about MAC addresses.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Eric Bénard <eric@eukrea.com>
13 years agoAdd Ethernet hardware MAC address framework to usbnet
Simon Glass [Mon, 13 Jun 2011 23:13:10 +0000 (16:13 -0700)]
Add Ethernet hardware MAC address framework to usbnet

Built-in Ethernet adapters support setting the mac address by means of a
ethaddr environment variable for each interface (ethaddr, eth1addr, eth2addr).

This adds similar support to the USB network side, using the names
usbethaddr, usbeth1addr, etc. They are kept separate since we don't want
a USB device taking the MAC address of a built-in device or vice versa.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Eric Bénard <eric@eukrea.com>
13 years agoAdd support for SMSC95XX USB 2.0 10/100MBit Ethernet Adapter
Simon Glass [Mon, 13 Jun 2011 23:13:09 +0000 (16:13 -0700)]
Add support for SMSC95XX USB 2.0 10/100MBit Ethernet Adapter

The SMSC95XX is a USB hub with a built-in Ethernet adapter. This adds support
for this, using the USB host network framework.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Eric Bénard <eric@eukrea.com>
13 years agoConvert ISO-8859 files to UTF-8
Albert ARIBAUD [Thu, 4 Aug 2011 16:45:45 +0000 (18:45 +0200)]
Convert ISO-8859 files to UTF-8

There was a mix of UTF-8 and ISO-8859 files in the U-Boot source
tree, which could cause issues with the patchwork review system.
This commit converts all ISO-8859 files to UTF-8.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agompc5200: digsy_mtc: fix extension board EEPROM I2C address for rev5
Anatolij Gustschin [Mon, 1 Aug 2011 04:16:29 +0000 (04:16 +0000)]
mpc5200: digsy_mtc: fix extension board EEPROM I2C address for rev5

On newer rev5 hardware the extension board EEPROM I2C address
has been changed to 0x54. Make this I2C address configurable
depending on CONFIG_DIGSY_REV5 so that extention board presence
detection works correctly on newer hardware.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agohwmon: do not init sensors on startup
Heiko Schocher [Mon, 1 Aug 2011 04:01:43 +0000 (04:01 +0000)]
hwmon: do not init sensors on startup

The U-Boot Design Principles[1] clearly say:

  Initialize devices only when they are needed within U-Boot, i.e. don't
  initialize the Ethernet interface(s) unless U-Boot performs a download
  over Ethernet; don't initialize any IDE or USB devices unless U-Boot
  actually tries to load files from these, etc. (and don't forget to
  shut down these devices after using them - otherwise nasty things may
  happen when you try to boot your OS).

So, do not initialize and read the sensors on startup.

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

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Thu, 4 Aug 2011 21:05:07 +0000 (23:05 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

* 'master' of git://git.denx.de/u-boot-arm:
  drivers/rtc: add Marvell Integrated RTC
  Armada100: Add Board Support for Marvell GuruPlug-Display
  Armada100: MFP macro naming correction
  arm: auto gen asm-offsets.h for mb86r0x
  spear: fix build errors for spear3xx/spear600 platforms
  cosmetic: arm: lib/board.c: Coding Style cleanup
  ARM: versatile: fix board support
  SMDKV310: Enable device tree support
  SMDKV310: MMC_SPL: Fix building when using "make O="
  arm: a320: enable tagged list support
  arm: a320: fix multiline comment style
  ARMv7: u8500_href: Add missing header to fix compiler warning
  Removed unused define, CONFIG_ARMV7.
  avr32: add grasshopper (ICnova AP7000) board
  AT91/SPI: fix atmel_dataflash_spi.c to allow building without warnings
  MAKEALL: remove AT91 boards that are in boards.cfg
  AT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master
  AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
  AT91: Board fix for AT91SAM9261-EK
  AT91: SoC fix at91sam9261_matrix.h
  AT91: Makes AT91SAM9RL-EK build correctly against u-boot-atmel/master
  AT91: Makes AT91SAM9RL SoC build correctly against u-boot-atmel/master
  AT91: change common at91sam9261 files to compile with new scheme
  AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)
  a/a/c/arm920t/at91/reset.c: drop obsolete CONFIG_AT91RM9200_USART
  README: fix arm920t/at91 path
  net/eth.c: drop obsolete at91rm9200 support
  README.at91-soc: remove AT91(RM9200) joining notice
  a/a/c/arm920t/cpu.c: remove CONFIG_AT91_LEGACY warning
  MAKEALL: remove obsolete at91rm9200 soc
  ARM: remove obsolete at91rm9200
  omap4: clock init support for omap4460
  omap4: support TPS programming
  omap: reuse omap3 gpio support in omap4
  omap4: sdram init changes for omap4460
  omap4: add omap4460 revision detection
  mkimage: Add OMAP boot image support
  omap: add MMC and FAT support to SPL
  omap: add basic SPL support
  armv7: start.S: fixes and enhancements for SPL
  omap4: automatic sdram detection
  omap4: calculate EMIF register values
  omap4: add sdram init support
  omap4: add clock support
  omap4: add OMAP4430 revision check
  omap4: cleanup pin mux data
  omap4: utility function to identify the context of hw init
  DA8xx: fix LPSC constants
  DA8xx: switch an enum to defines for consistency
  DA8xx: add MMC/SD controller addresses
  DaVinci EMAC: declare function for all DA8xx CPUs
  DA8xx: add generic GPIO driver
  DaVinci: rename gpio_defs.h to gpio.h
  omap3evm: eth: Include functions only when necessary
  omap3evm: Update ethernet reset sequence for Rev.G board
  omap3evm: eth: split function setup_net_chip
  omap3: Include array definition only when it is used
  omap730p2: fix build breaks
  omap2420h4: fix build breaks
  omap1610inn: fix build breaks
  omap1510inn: fix build breaks
  omap5912osk: fix build breaks
  omap1610h2: fix build breaks

13 years agovideo: mb862xx: change controller detection message
Anatolij Gustschin [Sat, 16 Jul 2011 20:28:23 +0000 (22:28 +0200)]
video: mb862xx: change controller detection message

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agovideo: mb862xx: support Coral-PA controller
Anatolij Gustschin [Fri, 27 May 2011 14:08:20 +0000 (16:08 +0200)]
video: mb862xx: support Coral-PA controller

Add detection of Coral-PA and configure Coral CCF an MMR parameters
using CONFIG_SYS_MB862xx_CCF and CONFIG_SYS_MB862xx_MMR macros.
Use CCF and MMR parameters for Coral-P Eval. Board if the appropriate
macros weren't defined.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agovideo: Add SHARP LQ084S3LG01 LCD support on P1022DS
Timur Tabi [Thu, 26 May 2011 14:02:17 +0000 (09:02 -0500)]
video: Add SHARP LQ084S3LG01 LCD support on P1022DS

The SHARP LQ084S3LG01 is a TFT LCD used on the P1022DS (revision "C") board.
This device only supports 800x600 resolution, so if that resolution is selected,
assume that this is the device.  The device is attached to the LVDS port
on the P1022DS board.

The existing 800x600 entry (for the PDM360NG board) is actually 800x480,
so we fix that.  To support two different 800x resolutions, the Y-resolution
is now passed to fsl_diu_init() and both values are used to pick the proper
fb_videomode structure.

The data for the 800x600 video mode is originally from Jiang Yutang.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Jiang Yutang <b14898@freescale.com>
13 years agodrivers/rtc: add Marvell Integrated RTC
Jason Cooper [Thu, 4 Aug 2011 15:56:16 +0000 (21:26 +0530)]
drivers/rtc: add Marvell Integrated RTC

This driver can be used for kirkwood SoCs by enabling CONFIG_RTC_MV.  Tested on
Global Scale Technologies Dreamplug.

Signed-off-by: Jason Cooper <u-boot@lakedaemon.net>
13 years agoArmada100: Add Board Support for Marvell GuruPlug-Display
Ajay Bhargav [Thu, 4 Aug 2011 15:56:02 +0000 (21:26 +0530)]
Armada100: Add Board Support for Marvell GuruPlug-Display

This patch adds basic board support with DRAM and UART functionality

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
Acked-by: Tanmay Upadhyay <tanmay.upadhyay@einfochips.com>
13 years agoArmada100: MFP macro naming correction
Ajay Bhargav [Thu, 4 Aug 2011 15:36:44 +0000 (21:06 +0530)]
Armada100: MFP macro naming correction

MFP macros for UART3 updated.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
13 years agoMerge commit '7b2fac7654f7420c2787f74ec3b1540fa3b343e9'
Albert ARIBAUD [Thu, 4 Aug 2011 16:59:59 +0000 (18:59 +0200)]
Merge commit '7b2fac7654f7420c2787f74ec3b1540fa3b343e9'

13 years agoarm: auto gen asm-offsets.h for mb86r0x
Matthias Weisser [Mon, 1 Aug 2011 05:11:52 +0000 (05:11 +0000)]
arm: auto gen asm-offsets.h for mb86r0x

auto gen asm-offsets.h for mb86r0x

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
13 years agospear: fix build errors for spear3xx/spear600 platforms
Shiraz Hashim [Sat, 11 Jun 2011 21:32:57 +0000 (21:32 +0000)]
spear: fix build errors for spear3xx/spear600 platforms

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Acked-by: Vipin Kumar <vipin.kumar@st.com>
13 years agocosmetic: arm: lib/board.c: Coding Style cleanup
Heiko Schocher [Fri, 15 Jul 2011 19:36:36 +0000 (19:36 +0000)]
cosmetic: arm: lib/board.c: Coding Style cleanup

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
cc: Albert Aribaud <albert.u.boot@aribaud.net>
cc: <macpaul@gmail.com>
cc: Wolfgang Denk <wd@denx.de>

13 years agoARM: versatile: fix board support
Stefano Babic [Fri, 24 Jun 2011 03:04:38 +0000 (03:04 +0000)]
ARM: versatile: fix board support

Versatile board is used as example to run u-boot under qemu.
The patch fixes relocation for all versatile boards and adds
a versatileqemu target to be used under qemu.

Patch tested only under qemu, not on real boards.
Tested with QEMU emulator version 0.14.50.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Alessandro Rubini <rubini-list@gnudd.com>
CC: Loïc Minier <loic.minier@linaro.org>
13 years agoSMDKV310: Enable device tree support
Thomas Abraham [Fri, 3 Jun 2011 22:52:17 +0000 (22:52 +0000)]
SMDKV310: Enable device tree support

Enable passing a flattened device tree to the kernel.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
13 years agoSMDKV310: MMC_SPL: Fix building when using "make O="
Chander Kashyap [Thu, 2 Jun 2011 18:07:32 +0000 (18:07 +0000)]
SMDKV310: MMC_SPL: Fix building when using "make O="

Fixes dependency build error with "make O=" option.
"make O=" option is used to specify output directory.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
13 years agoarm: a320: enable tagged list support
Po-Yu Chuang [Mon, 18 Jul 2011 16:56:53 +0000 (16:56 +0000)]
arm: a320: enable tagged list support

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
13 years agoarm: a320: fix multiline comment style
Po-Yu Chuang [Mon, 18 Jul 2011 16:55:39 +0000 (16:55 +0000)]
arm: a320: fix multiline comment style

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
13 years agoARMv7: u8500_href: Add missing header to fix compiler warning
Dirk Behme [Sat, 9 Jul 2011 20:52:17 +0000 (20:52 +0000)]
ARMv7: u8500_href: Add missing header to fix compiler warning

Fix the compiler warning

u8500_href.c: In function 'hrefplus_mmc_power_init':
u8500_href.c:258: warning: implicit declaration of function 'prcmu_i2c_read'
u8500_href.c:265: warning: implicit declaration of function 'prcmu_i2c_write'

by adding the missing header file.

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
13 years agoRemoved unused define, CONFIG_ARMV7.
Christopher Harvey [Thu, 7 Jul 2011 04:37:55 +0000 (04:37 +0000)]
Removed unused define, CONFIG_ARMV7.

Signed-off-by: Christopher Harvey <charvey@matrox.com>
13 years agoavr32: add grasshopper (ICnova AP7000) board
Andreas Bießmann [Thu, 30 Jun 2011 22:03:20 +0000 (22:03 +0000)]
avr32: add grasshopper (ICnova AP7000) board

The grasshopper board is a neat avr32 evaluation kit produced by In-Circuit
GmbH.
See http://www.ic-board.de/product_info.php?info=p75_ICnova-AP7000-Base.html
for detailed information about this device.

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91/SPI: fix atmel_dataflash_spi.c to allow building without warnings
Reinhard Meyer [Tue, 2 Aug 2011 15:09:55 +0000 (15:09 +0000)]
AT91/SPI: fix atmel_dataflash_spi.c to allow building without warnings

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoMAKEALL: remove AT91 boards that are in boards.cfg
Reinhard Meyer [Tue, 2 Aug 2011 13:31:11 +0000 (13:31 +0000)]
MAKEALL: remove AT91 boards that are in boards.cfg

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master
Xu, Hong [Fri, 10 Jun 2011 21:31:26 +0000 (21:31 +0000)]
AT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master

Rework for AT91SAM9263-EK, makes it build again.
Based on the work for AT91SAM9260-EK.

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <uboot@emk-elektronik.de>
13 years agoAT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
Xu, Hong [Fri, 10 Jun 2011 21:31:25 +0000 (21:31 +0000)]
AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master

Rework for AT91SAM9263 SoC, makes it build again.
Based on the work for AT91SAM9260-EK.

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <uboot@emk-elektronik.de>
13 years agoAT91: Board fix for AT91SAM9261-EK
Xu, Hong [Sun, 31 Jul 2011 22:49:00 +0000 (22:49 +0000)]
AT91: Board fix for AT91SAM9261-EK

Fix board part of AT91SAM9261-EK according to the new scheme

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: SoC fix at91sam9261_matrix.h
Xu, Hong [Sun, 31 Jul 2011 22:37:06 +0000 (22:37 +0000)]
AT91: SoC fix at91sam9261_matrix.h

Fix at91sam9261_matrix.h according to the new scheme.

Signed-off-by: Hong Xu <hong.xu@atmel.com>
13 years agoAT91: Makes AT91SAM9RL-EK build correctly against u-boot-atmel/master
Xu, Hong [Mon, 1 Aug 2011 03:56:53 +0000 (03:56 +0000)]
AT91: Makes AT91SAM9RL-EK build correctly against u-boot-atmel/master

Rework for AT91SAM9RL-EK, makes it build again.
Based on the work for AT91SAM9260-EK.
V4: added changes to MAKEALL

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: Makes AT91SAM9RL SoC build correctly against u-boot-atmel/master
Xu, Hong [Mon, 1 Aug 2011 03:56:32 +0000 (03:56 +0000)]
AT91: Makes AT91SAM9RL SoC build correctly against u-boot-atmel/master

Rework for AT91SAM9RL SoC, makes it build again.
Based on the work for AT91SAM9260-EK.
V4: US->USART, cosmetics

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: change common at91sam9261 files to compile with new scheme
Asen Dimov [Tue, 26 Jul 2011 01:23:39 +0000 (01:23 +0000)]
AT91: change common at91sam9261 files to compile with new scheme

Signed-off-by: Asen Dimov <dimov@ronetix.at>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)
Reinhard Meyer [Mon, 25 Jul 2011 21:56:04 +0000 (21:56 +0000)]
AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)

Bits 0..3 in cs_mask = CS0..CS3 in SPI mode require it to be peripheral
Bits 4..7 in cs_mask = CS0..CS3 in GPIO mode require it to be output

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoa/a/c/arm920t/at91/reset.c: drop obsolete CONFIG_AT91RM9200_USART
Andreas Bießmann [Mon, 18 Jul 2011 09:57:45 +0000 (09:57 +0000)]
a/a/c/arm920t/at91/reset.c: drop obsolete CONFIG_AT91RM9200_USART

The CONFIG_AT91RM9200_USART is an remnant of
18ed5e9550810e2fc5bf2c757aee47774609651c which deleted the
at91rm9200_usart driver.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoREADME: fix arm920t/at91 path
Andreas Bießmann [Mon, 18 Jul 2011 09:41:08 +0000 (09:41 +0000)]
README: fix arm920t/at91 path

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agonet/eth.c: drop obsolete at91rm9200 support
Andreas Bießmann [Mon, 18 Jul 2011 09:41:07 +0000 (09:41 +0000)]
net/eth.c: drop obsolete at91rm9200 support

All available at91rm9200 boards have migrated to ar920t/at91 and
therefore to CONFIG_NET_MULTI.
The obsolete at91rm9200_miiphy_initialize() was removed in "ARM: remove
obsolete at91rm9200".

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoREADME.at91-soc: remove AT91(RM9200) joining notice
Andreas Bießmann [Mon, 18 Jul 2011 09:41:06 +0000 (09:41 +0000)]
README.at91-soc: remove AT91(RM9200) joining notice

Since all currently supported at91rm9200 boards are migrated to at91
support the joining notice can be removed.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoa/a/c/arm920t/cpu.c: remove CONFIG_AT91_LEGACY warning
Andreas Bießmann [Mon, 18 Jul 2011 09:41:05 +0000 (09:41 +0000)]
a/a/c/arm920t/cpu.c: remove CONFIG_AT91_LEGACY warning

The CONFIG_AT91_LEGACY warning became obsolete due to complete removal of
at91rm9200 arch code in arm920t.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoMAKEALL: remove obsolete at91rm9200 soc
Andreas Bießmann [Mon, 18 Jul 2011 09:41:04 +0000 (09:41 +0000)]
MAKEALL: remove obsolete at91rm9200 soc

Since complete at91rm9200 SoC device was droped (due to replacement with
common at91 code) this parameter can safely be removed.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoARM: remove obsolete at91rm9200
Andreas Bießmann [Mon, 18 Jul 2011 09:41:03 +0000 (09:41 +0000)]
ARM: remove obsolete at91rm9200

The big "ARM: remove broken boards" series deletes all boards using
obsolete arm920t/at91rm9200 arch code. Therefore we can safely remove
this code now.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoomap4: clock init support for omap4460
Aneesh V [Thu, 21 Jul 2011 13:29:36 +0000 (09:29 -0400)]
omap4: clock init support for omap4460

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: support TPS programming
Aneesh V [Thu, 21 Jul 2011 13:29:32 +0000 (09:29 -0400)]
omap4: support TPS programming

TPS62361 is the new power supply used in OMAP4460 that
supplies vdd_mpu.

VCORE1 from Phoenix supplies vdd_core and VCORE2 supplies
vdd_iva. VCORE3 is not used in OMAP4460.

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: reuse omap3 gpio support in omap4
Aneesh V [Thu, 21 Jul 2011 13:29:29 +0000 (09:29 -0400)]
omap: reuse omap3 gpio support in omap4

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: sdram init changes for omap4460
Aneesh V [Thu, 21 Jul 2011 13:29:26 +0000 (09:29 -0400)]
omap4: sdram init changes for omap4460

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: add omap4460 revision detection
Aneesh V [Thu, 21 Jul 2011 13:29:23 +0000 (09:29 -0400)]
omap4: add omap4460 revision detection

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agomkimage: Add OMAP boot image support
John Rigby [Thu, 21 Jul 2011 13:10:30 +0000 (09:10 -0400)]
mkimage: Add OMAP boot image support

- Add mkimage support for OMAP boot image
- Add support for OMAP boot image(MLO) generation in the new
  SPL framework

Signed-off-by: John Rigby <john.rigby@linaro.org>
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: add MMC and FAT support to SPL
Aneesh V [Thu, 21 Jul 2011 13:10:27 +0000 (09:10 -0400)]
omap: add MMC and FAT support to SPL

- Add MMC raw and FAT mode boot support for OMAP
- Provide a means by which parameters passed by ROM-code
  can be saved in u-boot.
- Save boot mode related information passed by OMAP4 ROM-code
  and use it to determine where to load the u-boot from
- Assumes that the image has a mkimage header. Gets the
  payload size and load address from this header. If the
  header is not detected assume u-boot.bin as payload

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: add basic SPL support
Aneesh V [Thu, 21 Jul 2011 13:10:21 +0000 (09:10 -0400)]
omap: add basic SPL support

- Provide alternate implementations of board_init_f()
  board_init_r() for OMAP spl.
- Provide linker script
- Initialize global data
- Add serial console support
- Update CONFIG_SYS_TEXT_BASE to allow for SPL's bss and move
  it to board config header from config.mk

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarmv7: start.S: fixes and enhancements for SPL
Aneesh V [Thu, 21 Jul 2011 13:10:18 +0000 (09:10 -0400)]
armv7: start.S: fixes and enhancements for SPL

- Allow SPL to have .bss disjoint from rest of the image
- Allow for .bss setup in CONFIG_SPL_BUILD case too.
- Take care of the special case where relocation offset = 0.
- Compile out exception handling code and install a simpler
  vector

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: automatic sdram detection
Aneesh V [Thu, 21 Jul 2011 13:10:15 +0000 (09:10 -0400)]
omap4: automatic sdram detection

Identify SDRAM devices connected to EMIF automatically:
LPDDR2 devices have some Mode Registers that provide details
about the device such as the type, density, bus width
etc. EMIF has the capability to read these registers. If there
are no devices connected to a given chip-select reading mode
registers will return junk values. After reading as many such
registers as possible and matching with expected ranges of
values the driver can identify if there is a device connected
to the respective CS. If we identify that a device is connected
the values read give us complete details about the device.

This along with the base AC timings specified by JESD209-2
allows us to do a complete automatic initialization of
SDRAM that works on all boards.

Please note that the default AC timings specified by JESD209-2
will be safe for all devices but not necessarily optimal. However,
for the Elpida devices used on Panda and SDP the default timings
are both safe and optimal.

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: calculate EMIF register values
Aneesh V [Thu, 21 Jul 2011 13:10:12 +0000 (09:10 -0400)]
omap4: calculate EMIF register values

Calculate EMIF register values based on AC timing parameters
from the SDRAM datasheet and the DDR frequency rather than
using the hard-coded values.

For a new board the user doen't have to go through the tedious
process of calculating the register values. Instead, just
provide the AC timings from the device data sheet as input
and the driver will automatically calculate the register values.

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: add sdram init support
Aneesh V [Thu, 21 Jul 2011 13:10:09 +0000 (09:10 -0400)]
omap4: add sdram init support

Add support for the SDRAM controller (EMIF).

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: add clock support
Aneesh V [Thu, 21 Jul 2011 13:10:07 +0000 (09:10 -0400)]
omap4: add clock support

Add support for:
1. DPLL locking
2. Initialization of clock domains and clock modules
3. Setting up the right voltage on voltage rails

This work draws upon previous work done for x-loader by:
Santosh Shilimkar <santosh.shilimkar@ti.com>
Rajendra Nayak <rnayak@ti.com>

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>