platform/kernel/u-boot.git
13 years agoARM: remove broken "ep7312" board.
Wolfgang Denk [Mon, 5 Sep 2011 12:37:27 +0000 (14:37 +0200)]
ARM: remove broken "ep7312" board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Marius Gröger <mag@sysgo.de>
13 years agoARM: remove broken "dnp1110" board.
Wolfgang Denk [Mon, 5 Sep 2011 12:37:26 +0000 (14:37 +0200)]
ARM: remove broken "dnp1110" board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Alex Züpke <azu@sysgo.de>
13 years agoARM: remove broken "SMN42" board.
Wolfgang Denk [Mon, 5 Sep 2011 02:37:25 +0000 (02:37 +0000)]
ARM: remove broken "SMN42" board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agodoc/README.scrapyard: Update commit IDs or board removals
Wolfgang Denk [Mon, 5 Sep 2011 12:33:34 +0000 (14:33 +0200)]
doc/README.scrapyard: Update commit IDs or board removals

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoMakefile : fix generation of cpu related asm-offsets.h
Stefano Babic [Mon, 5 Sep 2011 04:32:28 +0000 (04:32 +0000)]
Makefile : fix generation of cpu related asm-offsets.h

commit 0edf8b5b2fa0d210ebc4d6da0fd1aceeb7e44e47 breaks
building on a different directory with the O= parameter.
The patch wil fix this issue, generating always asm-offsets.h before
the other targets.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Matthias Weisser <weisserm@arcor.de>
CC: Wolfgang Denk <wd@denx.de>
13 years agoFlush cache after the OS image is loaded into the memory.
Diana CRACIUN [Wed, 31 Aug 2011 02:45:23 +0000 (02:45 +0000)]
Flush cache after the OS image is loaded into the memory.

Since we are loading an executable image into memory we need flush it
out of the cache to possible maintain coherence on CPUs with split
instruction and data caches.  We do this for other executable image
loading command.

On PowerPC once we do this we no longer need to explicitly flush the
dcache on multi-core systems in the BOOTM_STATE_OS_PREP phase.  We now
treat the BOOTM_STATE_OS_PREP as a no-op to maintain backwards
compatibility with the bootm subcommand.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Diana CRACIUN <Diana.Craciun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoCorrect call to eth_write_hwaddr()
Simon Glass [Tue, 30 Aug 2011 05:51:00 +0000 (05:51 +0000)]
Correct call to eth_write_hwaddr()

This fixes "Warning: failed to set MAC address" on platforms which rely on
an 'ethaddr' environment variable to set the MAC address.

This bug was introduced by this commit:

7616e785 Add Ethernet hardware MAC address framework to usbnet

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Kumar Gala <galak@kernel.crashing.org>
Tested-by: Michal Simek <monstr@monstr.eu>
Tested-by: Heiko Schocher <hs@denx.de>
13 years agosf: winbond: Add support for the Winbond W25X40
James Le Cuirot [Fri, 15 Jul 2011 06:12:51 +0000 (06:12 +0000)]
sf: winbond: Add support for the Winbond W25X40

The Winbond W25X40 is now being used in the IP02 (and possibly IP04).
Tested and working on the actual device.

13 years agoboard/prodrive/alpr/fpga.c: Coding style cleanup
Wolfgang Denk [Mon, 5 Sep 2011 10:52:21 +0000 (12:52 +0200)]
board/prodrive/alpr/fpga.c: Coding style cleanup

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
13 years agoPPC4xx: ALPR: constify FPGA code
Wolfgang Denk [Mon, 5 Sep 2011 09:39:04 +0000 (11:39 +0200)]
PPC4xx: ALPR: constify FPGA code

The ALPR custom FPGA code was missed by commit e6a857d "fpga:
constify to fix build warning" resulting in such warnings:

fpga.c:226: warning: initialization from incompatible pointer type

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
13 years agoFPGA: constify Lattice FPGA code
Wolfgang Denk [Fri, 5 Aug 2011 02:26:31 +0000 (02:26 +0000)]
FPGA: constify Lattice FPGA code

The Lattice code was missed by commit e6a857d "fpga: constify to fix
build warning" resulting in such warnings:

fpga.c: In function 'fpga_load':
fpga.c:238: warning: passing argument 2 of 'lattice_load' discards qualifiers from pointer target type
fpga.c: In function 'fpga_dump':
fpga.c:278: warning: passing argument 2 of 'lattice_dump' discards qualifiers from pointer target type

Signed-off-by: Wolfgang Denk <wd@denx.de>
cc: Stefano Babic <sbabic@denx.de>

13 years agoMPC8xx: fix build problem for ETX094 board
Wolfgang Denk [Sun, 4 Sep 2011 21:51:32 +0000 (21:51 +0000)]
MPC8xx: fix build problem for ETX094 board

Commit 58c583b "net: Check network device driver name" increased the
code size and broke building for the ETX094 board.

Adjust the linker script to make it build again.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agolinkstation: fix warning: "CONFIG_IDENT_STRING" redefined
Wolfgang Denk [Sun, 31 Jul 2011 00:35:13 +0000 (00:35 +0000)]
linkstation: fix warning: "CONFIG_IDENT_STRING" redefined

Commit 09c2e90 "unify version_string" defines a default value for
CONFIG_IDENT_STRING in version.h, so any private settings musty be
done before including this file.  Move the include for version.h after
the one for common.h to fix the build problem.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
13 years agodrivers/video/Makefile: include object files only once
Wolfgang Denk [Mon, 5 Sep 2011 07:19:08 +0000 (09:19 +0200)]
drivers/video/Makefile: include object files only once

Use "$(sort $(COBJS-y))" to prevent multiple inclusion of the same
object files.

Also sort driver list.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agovideo: Fix build error with global inclusion of videomodes
Kumar Gala [Sun, 4 Sep 2011 12:48:34 +0000 (12:48 +0000)]
video: Fix build error with global inclusion of videomodes

The following commit:

commit de701d118380de12a48c8a4fb345e9f909329432
Author: Syed Mohammed Khasim <khasim@ti.com>
Date:   Tue Apr 19 14:00:34 2011 -0500

   OMAP3: Add DSS driver for OMAP3

Added videomodes to the object list w/o any protection.  This causes
build issues like:

videomodes.o:(.rodata.res_mode_init+0x0): multiple definition of `res_mode_init'
videomodes.o:(.rodata.res_mode_init+0x0): first defined here
videomodes.o: In function `video_get_params':
/local/home/galak/git/u-boot/drivers/video/videomodes.c:160: multiple definition of `video_get_params'
videomodes.o:/local/home/galak/git/u-boot/drivers/video/videomodes.c:160: first defined here
videomodes.o: In function `video_get_video_mode':
/local/home/galak/git/u-boot/drivers/video/videomodes.c:229: multiple definition of `video_get_video_mode'
videomodes.o:/local/home/galak/git/u-boot/drivers/video/videomodes.c:229: first defined here
videomodes.o:(.rodata.vesa_modes+0x0): multiple definition of `vesa_modes'
videomodes.o:(.rodata.vesa_modes+0x0): first defined here
make[1]: *** [libvideo.o] Error 1

Remove the unconditional inclusion and move to adding to
CONFIG_VIDEO_OMAP3 case.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agonet: Check network device driver name
Michal Simek [Mon, 29 Aug 2011 23:30:13 +0000 (23:30 +0000)]
net: Check network device driver name

If name is longer than allocated space NAMESIZE
mac address is rewritten which show error
message like:

Error message:
Warning: Xlltemac.87000000 MAC addresses don't match:
Address in SROM is         30:00:00:00:00:00
Address in environment is  00:0a:35:00:6a:04

NAMESIZE contains Driver name + zero terminated character.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agostdio: Fix a possible buffer overflow
Bradley Bolen [Mon, 22 Aug 2011 11:48:05 +0000 (11:48 +0000)]
stdio: Fix a possible buffer overflow

Signed-off-by: Bradley Bolen <bradleybolen at yahoo.com>
13 years agoMAINTAINERS: fix integrator and versatile
Linus Walleij [Thu, 28 Jul 2011 12:54:14 +0000 (12:54 +0000)]
MAINTAINERS: fix integrator and versatile

- Take maintainership of the integratorcp board
- Remove the double entry for the versatile board
  it has two variants but only one board folder

Cc: Philippe Robin <philippe.robin@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-coldfire
Wolfgang Denk [Sun, 4 Sep 2011 20:53:04 +0000 (22:53 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-coldfire

* 'master' of git://git.denx.de/u-boot-coldfire:
  ColdFire:Clean up the CONFIG_STANDALONE_LOAD_ADDR usage
  ColdFire:Add mb for 5253 dram initialization
  ColdFire:Define the DM9000 byteswap for M5253 board.
  ColdFire:Update the env settings for several boards.
  ColdFire:disable the NFS define for 52277 board.
  ColdFire:Update the timer_init since it was unified.
  ColdFire: Cleanup for partial linking and --gc-sections
  ColdFire: Update compile flags for each CPUs
  ColdFire:Fix the configuration broken for some boards.

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Sun, 4 Sep 2011 19:12:18 +0000 (21:12 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

* 'master' of git://git.denx.de/u-boot-arm: (145 commits)
  beagleboard: enable HUB power on all variants of the BeagleBoard
  dm3730: enable dpll5
  ehci-hcd: Allow cleanups to happen gracefully on a timeout.
  OMAP3: Add DSS driver for OMAP3
  led: Remove state-saving of led for toggle functionality and add toggle option to led command
  led: Fixed setting of STATUS_LED_BIT1 when led_name is 'all'
  led: correct off/on locations in structure
  led: added cmd_led to Makefile
  BeagleBoard: fix LED 0/1 in driver
  Corrected LED name match finding avoiding extraneous Usage printouts
  BeagleBoard: config: updated default configuration
  BeagleBoard: config: Enabled multibus support for I2C in configuration
  BeagleBoard: config: add optargs/buddy/camera
  BeagleBoard: config: increase command-line functionality
  BeagleBoard: config: make mtest run
  BeagleBoard: config: enable DSS
  BeagleBoard: config: enable asix driver and dhcp
  BeagleBoard: config: enable networking
  BeagleBoard: config: decrease bootdelay to 2 seconds
  BeagleBoard: config: use uImage.beagle for tftp
  BeagleBoard: config: hardcode MAC for onboard SMSC
  BeagleBoard: config: load kernel from MMC ext, not FAT
  BeagleBoard: Configure DVI/S-video
  BeagleBoard: Added userbutton command
  BeagleBoard: turn off clocks in ehci_stop
  USB: Remove __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor
  beagleboard: add support for xM revision C
  beagle: pass expansionboard name in bootargs
  OMAP: Remove omapfb.debug=y from Beagle and Overo env settings
  OMAP3 Beagle Pin Mux initialization glitch fix
  da850: modifications for Logic PD Rev.3 AM18xx EVM
  da850: fix the channel number for EMAC teardown init
  da850: add support for Spectrum Digital AM18xx EVM
  da850: add support to wake up DSP during board init
  da850: modify the U-Boot prompt string
  da850: add NOR boot mode support
  da8xx: add support for multiple PLL controllers
  da850: indicate cache usage disable in config file
  dm365: modify boot prompt from dm365 to dm36x
  dm365: disable cache usage due to coherency issues
  dm6446: disable cache usage due to coherency issues
  OMAP3: Remove legacy mmc driver
  devkit8000: Use generic MMC driver
  TI OMAP3 SDP3430: Use generic MMC driver
  AM3517 CraneBoard: Use generic MMC driver
  OMAP3: pandora: Use generic MMC driver
  OMAP3: Zoom2: Use generic MMC driver
  OMAP3: Zoom1: Use generic MMC driver
  OMAP3: DIG297: Use generic MMC driver
  OMAP3: CM-T35: Use generic MMC driver
  am3517evm: Use generic MMC driver
  omap3evm: Use generic MMC driver
  omap3:clock: check cpu_family before enabling clks for IVA & CAM
  omap3:clock: configure GFX clock to 200MHz for AM/DM37x
  OMAP3/4: Increase console I/O buffer size
  PXA: vpac270: Remove re-defined CONFIG_SYS_TEXT_BASE
  PXA: Fix CSB226, fix monitor length
  PXA: Fix Lubbock, remove redundant parenthesis
  armv7: cache: remove flush on un-aligned invalidate
  armv7: stronger barrier for cache-maintenance operations
  omap: enable caches at system start-up
  arm: do not force d-cache enable on all boards
  ORIGEN: Add MMC SPL support
  ARMV7: Add support for Samsung ORIGEN board
  i2c:gpio:s5p: Enable I2C GPIO on the GONI target
  i2c:gpio:s5p: I2C GPIO Software implementation (via soft_i2c)
  Tegra2: Use clock and pinmux functions to simplify code
  Tegra2: Add additional pin multiplexing features
  Tegra2: Add more clock support
  Tegra2: Add microsecond timer function
  ARM: remove broken "at91rm9200dk" board
  ARM: remove broken "m501sk" board
  ARM: remove broken "kb9202" board
  ARM: remove broken "csb637" board
  ARM: remove broken "cmc_pu2" board
  ARM: remove broken "at91cap9adk" board
  ARM: remove broken "voiceblue" board
  ARM: remove broken "smdk2400" board
  ARM: remove broken "sbc2410x" board
  ARM: remove broken "netstar" board
  ARM: remove broken "mx1fs2" board
  ARM: remove broken "lpd7a40x" boards
  ARM: remove broken "edb93xx" boards
  ARM: remove broken "B2" board
  ARM: remove broken "armadillo" board
  ARM: remove broken "assabet" board
  ARM: versatile: drop warnings
  IMX: scb9328: drop warnings
  MX31: imx31_litekit: make use of GPIO framework
  MX31: mx31ads: make use of GPIO framework
  MX5: mx51evk: make use of GPIO framework
  MX35: mx35pdk: make use of GPIO framework
  MX5: mx53loco: make use of GPIO framework
  MX5: mx53evk: make use of GPIO framework
  MX5: vision2: make use of GPIO framework
  MX5: mx53smd: make use of GPIO framework
  MX5: mx53ard: make use of GPIO framework
  MX25: zmx25: make use of GPIO framework
  MX5: efikamx: make use of GPIO framework
  MX31: QONG: make use of GPIO framework
  MX35: make use of GPIO framework for MX35 processor
  MX5: make use of GPIO framework for MX5 processor
  MX31: make use of GPIO framework for MX31 processor
  MX25: make use of GPIO framework for MX25 processor
  IMX: uniform GPIO interface using GPIO framework
  MX: MX35 / MX5: uniform clock command with powerpc
  MX35: MX35PDK: support additional RAM on CSD1
  mx53: ddr3: Update DD3 initialization
  ARM: MX51: PLL errata workaround
  ARM: versatilepb : drop warnings due to double definitions
  omap4: increase SRAM budget to fix build error
  omap4: fix build warning due to signed unsigned comparison
  mkimage: Fix 'Unknown OMAP image type - 5'
  omap: fix gpio related build breaks
  gpio:samsung: s5p_ suffix add for GPIO functions (C210_universal)
  SMDKV310: MMC SPL: Remove unwanted dummy functions
  SMDKV310: Fix undefined reference error
  SMDKV310: Fix build error for smdkv310 board
  gpio:samsung s5p_ suffix add for GPIO functions
  mmc: S5P: Support DMA restarts at buffer boundaries
  SMDKV310: Fix host compilation of mkv310_image
  arm: fix bd pointer dereference prior initialization
  arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize
  mx5: Remove CONFIG_L2_OFF and CONFIG_SYS_L2CACHE_OFF
  MX31: removed warnings due to clock.h
  integrator: convert to new build system
  integratorcp: make the board compile
  integratorap: remove hardcoded 32MB memory cmdline
  ...

13 years agoColdFire:Clean up the CONFIG_STANDALONE_LOAD_ADDR usage
Jason Jin [Mon, 22 Aug 2011 08:26:50 +0000 (16:26 +0800)]
ColdFire:Clean up the CONFIG_STANDALONE_LOAD_ADDR usage

Remove the additional linker options for CONFIG_STANDALONE_LOAD_ADDR

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agoColdFire:Add mb for 5253 dram initialization
Jason Jin [Mon, 18 Apr 2011 09:54:04 +0000 (17:54 +0800)]
ColdFire:Add mb for 5253 dram initialization

The dram initialization sequence should be in order.
This patch add mb for the dram intialization code to make
sure the compiler do not disorder the code.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agoColdFire:Define the DM9000 byteswap for M5253 board.
Jason Jin [Fri, 19 Aug 2011 02:18:15 +0000 (10:18 +0800)]
ColdFire:Define the DM9000 byteswap for M5253 board.

The M5253DEMO board swapped the io pins which make
the standard IO function did not work for dm9000.
Define the byte swap to use raw io for dm9000.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agoColdFire:Update the env settings for several boards.
Jason Jin [Fri, 19 Aug 2011 02:10:40 +0000 (10:10 +0800)]
ColdFire:Update the env settings for several boards.

Move the environment outside the u-boot for some boards
and enlarge the u-boot size in some env settings.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agoColdFire:disable the NFS define for 52277 board.
Jason Jin [Fri, 19 Aug 2011 02:09:57 +0000 (10:09 +0800)]
ColdFire:disable the NFS define for 52277 board.

There is no network device on ColdFire 52277EVB board.But the default
cmd include NFS define which make the build error.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agoColdFire:Update the timer_init since it was unified.
Jason Jin [Fri, 19 Aug 2011 02:02:32 +0000 (10:02 +0800)]
ColdFire:Update the timer_init since it was unified.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agoColdFire: Cleanup for partial linking and --gc-sections
Jason Jin [Mon, 22 Aug 2011 09:24:45 +0000 (17:24 +0800)]
ColdFire: Cleanup for partial linking and --gc-sections

Introduce the --gc-sections for ColdFire platform and clean up the
corresponding lds file.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agoColdFire: Update compile flags for each CPUs
Jason Jin [Thu, 18 Aug 2011 06:41:14 +0000 (14:41 +0800)]
ColdFire: Update compile flags for each CPUs

Remove compiler version check for gcc 4.1 in config.mk.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agoColdFire:Fix the configuration broken for some boards.
Jason Jin [Fri, 19 Aug 2011 01:52:34 +0000 (09:52 +0800)]
ColdFire:Fix the configuration broken for some boards.

Some typoes in Makefile and boards.cfg make the M54455 board
and M53017 board configuration broken.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agobeagleboard: enable HUB power on all variants of the BeagleBoard
Christian Spielberger [Wed, 24 Aug 2011 22:17:31 +0000 (17:17 -0500)]
beagleboard: enable HUB power on all variants of the BeagleBoard

Changes made by Jason Kridner with inputs from Eric Benard to special case xM Rev A and xM Rev B

Relevant discussions:
http://www.mail-archive.com/u-boot@lists.denx.de/msg59361.html
http://www.mail-archive.com/u-boot@lists.denx.de/msg59589.html

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Cc: Eric Benard <eric@eukrea.com>
Cc: Christian Spielberger <c.spielberger@bct-electronic.com>
Cc: Jason Kridner <jdk@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodm3730: enable dpll5
Eric Benard [Fri, 10 Jun 2011 12:21:52 +0000 (12:21 +0000)]
dm3730: enable dpll5

which is used to provide 120MHz to USB EHCI
This allows EHCI to work on BeagleBoard XM

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoehci-hcd: Allow cleanups to happen gracefully on a timeout.
Joel Fernandes [Sat, 25 Jun 2011 18:42:47 +0000 (13:42 -0500)]
ehci-hcd: Allow cleanups to happen gracefully on a timeout.

With this, the EHCI seems to "recover" from a timeout. This is particularly
observable if you were to ping the wrong IP Address and then ping the correct
one or if there was a temporary failure during tftp sessions.

All it takes is one timeout to disable it. If you have a noisy network (lot
of traffic), even if the traffic is not for the board, the timeouts don't occur.

Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: Add DSS driver for OMAP3
Syed Mohammed Khasim [Tue, 19 Apr 2011 19:00:34 +0000 (14:00 -0500)]
OMAP3: Add DSS driver for OMAP3

* Supports dynamic panel configuration
* Supports dynamic tv standard selection
* Adds support for DSS register access through generic APIs
* Incorporated DSS register access using structures.
* DSS makefile update

Previous discussions are here:
http://www.mail-archive.com/u-boot@lists.denx.de/msg27150.html

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoled: Remove state-saving of led for toggle functionality and add toggle option to...
Joel A Fernandes [Fri, 12 Aug 2011 04:16:53 +0000 (23:16 -0500)]
led: Remove state-saving of led for toggle functionality and add toggle option to led command

* Read the led output state from GPIO instead saving state in memory when it is [re]set
* Added a toggle option to the led command

Previous discussion:
http://lists.denx.de/pipermail/u-boot/2011-May/093068.html

Changes since v1:
Fixed checkpatch errors

Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoled: Fixed setting of STATUS_LED_BIT1 when led_name is 'all'
Joel A Fernandes [Fri, 12 Aug 2011 00:10:19 +0000 (19:10 -0500)]
led: Fixed setting of STATUS_LED_BIT1 when led_name is 'all'

Fix for only one led getting set or reset when the led_name is 'all'

Previous discussion:
http://lists.denx.de/pipermail/u-boot/2011-May/093068.html

Changes since v1:
Fixed checkpatch if statement error noticed by Sergei.

Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoled: correct off/on locations in structure
Jason Kridner [Wed, 20 Apr 2011 23:13:49 +0000 (18:13 -0500)]
led: correct off/on locations in structure

Although the initialization should probably be done with names, the
existing implementation has these structures filled in the opposite
order.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoled: added cmd_led to Makefile
Jason Kridner [Wed, 20 Apr 2011 23:11:38 +0000 (18:11 -0500)]
led: added cmd_led to Makefile

Addition of cmd_led into the Makefile wasn't included in the patch
applied to u-boot-ti.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: fix LED 0/1 in driver
Jason Kridner [Tue, 19 Apr 2011 15:55:26 +0000 (10:55 -0500)]
BeagleBoard: fix LED 0/1 in driver

Fixed USR0/USR1 to be LED 0/1 respectively

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoCorrected LED name match finding avoiding extraneous Usage printouts
Jason Kridner [Wed, 9 Mar 2011 02:42:01 +0000 (20:42 -0600)]
Corrected LED name match finding avoiding extraneous Usage printouts

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: updated default configuration
Jason Kridner [Sat, 23 Jul 2011 05:01:14 +0000 (00:01 -0500)]
BeagleBoard: config: updated default configuration

* Improved boot env var setting
    * Made room for a 64MB ramdisk by moving from 0x81600000 to 0x81000000
    * Added ramarg, ramroot and ramboot env variables

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: Enabled multibus support for I2C in configuration
Jason Kridner [Sat, 23 Jul 2011 04:42:44 +0000 (23:42 -0500)]
BeagleBoard: config: Enabled multibus support for I2C in configuration

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: add optargs/buddy/camera
Jason Kridner [Sun, 4 Sep 2011 03:37:24 +0000 (23:37 -0400)]
BeagleBoard: config: add optargs/buddy/camera

buddy and camera are used to configure peripherals in the kernel at boot
time that cannot easily be detected by the kernel.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: increase command-line functionality
Jason Kridner [Sun, 4 Sep 2011 03:30:34 +0000 (23:30 -0400)]
BeagleBoard: config: increase command-line functionality

Enable the expression evaluator.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: make mtest run
Jason Kridner [Tue, 19 Apr 2011 16:58:54 +0000 (11:58 -0500)]
BeagleBoard: config: make mtest run

Utilize the alternate mtest and define a valid region.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: enable DSS
Koen Kooi [Tue, 21 Jun 2011 20:18:01 +0000 (22:18 +0200)]
BeagleBoard: config: enable DSS

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: enable asix driver and dhcp
Koen Kooi [Fri, 17 Jun 2011 07:47:08 +0000 (09:47 +0200)]
BeagleBoard: config: enable asix driver and dhcp

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: enable networking
Koen Kooi [Fri, 17 Jun 2011 07:31:09 +0000 (09:31 +0200)]
BeagleBoard: config: enable networking

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: decrease bootdelay to 2 seconds
Koen Kooi [Fri, 17 Jun 2011 08:03:06 +0000 (10:03 +0200)]
BeagleBoard: config: decrease bootdelay to 2 seconds

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: use uImage.beagle for tftp
Joel A Fernandes [Sun, 4 Sep 2011 03:24:41 +0000 (23:24 -0400)]
BeagleBoard: config: use uImage.beagle for tftp

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: hardcode MAC for onboard SMSC
Joel A Fernandes [Sun, 4 Sep 2011 03:22:58 +0000 (23:22 -0400)]
BeagleBoard: config: hardcode MAC for onboard SMSC

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: config: load kernel from MMC ext, not FAT
Koen Kooi [Fri, 17 Jun 2011 07:33:03 +0000 (09:33 +0200)]
BeagleBoard: config: load kernel from MMC ext, not FAT

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: Configure DVI/S-video
Jason Kridner [Tue, 19 Apr 2011 19:01:13 +0000 (14:01 -0500)]
BeagleBoard: Configure DVI/S-video

Based on patches from Syed Mohammed Khasim (khasim@ti.com).

Configures the output of the BeagleBoard DVI to be orange.
Configures the output of the BeagleBoard S-Video to be a colorbar.

Changed display_init to beagle_display_init as suggested by Igor Grinberg:
http://www.mail-archive.com/u-boot@lists.denx.de/msg51446.html

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: Added userbutton command
Jason Kridner [Wed, 21 Jul 2010 12:41:25 +0000 (07:41 -0500)]
BeagleBoard: Added userbutton command

Based on commit f1099c7c43caf5bac3bf6a65aa266fade4747072
    Author: Greg Turner <gregturner@ti.com>
    Date:   Tue May 25 09:19:06 2010 -0500

    New u-boot command for status of USER button on BeagleBoard-xM

         Modified bootcmd to check the staus at boot time and set
 filename of the boot script.

* Moved to a BeagleBoard specific file.
* Removed changes to default boot command from adding userbutton
  command.
* Made to handle pre-xM boards.
* Flipped polarity of the return value to avoid confusion.  Success (0)
  is when the button is pressed.  Failure (1) is when the button is NOT
  pressed.
* Used latest revision getting function.
* Used latest macros for board revision.
* Added xM-C revision definition (optional, since it was default)
* updated default configuration with UserButton functionality
  * Added a separate bootenv variable to load a user defined .txt file
  * Added an example, showing how a different environment file can be loaded with
    the user button pressed

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Cc: Greg Turner <gregturner@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoBeagleBoard: turn off clocks in ehci_stop
Koen Kooi [Fri, 17 Jun 2011 07:26:17 +0000 (09:26 +0200)]
BeagleBoard: turn off clocks in ehci_stop

This fixes display problems in linux

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoUSB: Remove __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor
Jason Kridner [Wed, 20 Apr 2011 13:54:16 +0000 (08:54 -0500)]
USB: Remove __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor

Remove __attribute__ ((packed)) to prevent byte access to soc
registers in some gcc versions.

Having patches to enable ehci for the BeagleBoard lying around for
several months, this one was the show-stopper.

Switched to align(4), rather than remove the attribute, per suggestion
from Alexander.

Credits have to go to Laine Walker-Avina <lwalkera@ieee.org> for
finding the problem.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Cc: Alexander Holler <holler@ahsoftware.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agobeagleboard: add support for xM revision C
Koen Kooi [Fri, 17 Jun 2011 07:37:37 +0000 (09:37 +0200)]
beagleboard: add support for xM revision C

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agobeagle: pass expansionboard name in bootargs
Koen Kooi [Thu, 11 Aug 2011 05:39:28 +0000 (00:39 -0500)]
beagle: pass expansionboard name in bootargs

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP: Remove omapfb.debug=y from Beagle and Overo env settings
Steve Sakoman [Thu, 30 Dec 2010 07:19:44 +0000 (07:19 +0000)]
OMAP: Remove omapfb.debug=y from Beagle and Overo env settings

The kernel DSS2 code is mature now, and keeping this setting hurts performance

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3 Beagle Pin Mux initialization glitch fix
Bob Feretich [Thu, 24 Feb 2011 13:16:44 +0000 (13:16 +0000)]
OMAP3 Beagle Pin Mux initialization glitch fix

The below patch reverses the order of two segments in the board file.
Output pins need to have their values initialized, before they are
exposed to the logic outside the chip.

Signed-off-by: Bob Feretich <bob.feretich@rafresearch.com>
Cc: Wolfgang Denk <wd@denx.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda850: modifications for Logic PD Rev.3 AM18xx EVM
Nagabhushana Netagunte [Sun, 4 Sep 2011 02:21:04 +0000 (22:21 -0400)]
da850: modifications for Logic PD Rev.3 AM18xx EVM

AHCLKR/UART1_RTS/GP0[11] pin needs to be configured for
NOR to work on Rev.3 EVM. When GP0[11] is low,
the SD0 interface will not work, but NOR flash will.

Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda850: fix the channel number for EMAC teardown init
Nagabhushana Netagunte [Sun, 4 Sep 2011 02:20:33 +0000 (22:20 -0400)]
da850: fix the channel number for EMAC teardown init

TX and RX channel numbers programmed as '1' during EMAC
teardown initialization is wrong. This patch fixes the
same by setting channel number to '0' which is used by U-boot.

Signed-off-by: Sugumar Natarajan <sugumar@ti.com>
Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda850: add support for Spectrum Digital AM18xx EVM
Manjunathappa, Prakash [Sun, 4 Sep 2011 02:19:56 +0000 (22:19 -0400)]
da850: add support for Spectrum Digital AM18xx EVM

The AM18xx EVM contains winbond SPI flash instead of ST SPI flash in
comparison with logic PD da850/omap-l138 EVM. So enable configuration
to look for winbond flash.

Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda850: add support to wake up DSP during board init
Nagabhushana Netagunte [Sun, 4 Sep 2011 02:19:28 +0000 (22:19 -0400)]
da850: add support to wake up DSP during board init

add support for DSP wake-up by default on DA850/OMAP-L138
during board initialization. Enable hwconfig environment and added
extra env setting through CONFIG_EXTRA_ENV_SETTINGS.
To prevent DSP from being woken up,set the environment variable as,
set hwconfig "dsp:wake=no"

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda850: modify the U-Boot prompt string
Nagabhushana Netagunte [Sun, 4 Sep 2011 02:18:59 +0000 (22:18 -0400)]
da850: modify the U-Boot prompt string

Modify U-Boot prompt string from "DA850-evm >" to "U-Boot >".

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda850: add NOR boot mode support
Nagabhushana Netagunte [Sun, 4 Sep 2011 02:18:32 +0000 (22:18 -0400)]
da850: add NOR boot mode support

Add pin-mux support for NOR in board file and correspanding
macros to use NOR boot mode in configuration file.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda8xx: add support for multiple PLL controllers
Sudhakar Rajashekhara [Sun, 4 Sep 2011 02:18:04 +0000 (22:18 -0400)]
da8xx: add support for multiple PLL controllers

Modify clk_get() function in cpu file to work for
multiple PLL controllers.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda850: indicate cache usage disable in config file
Nagabhushana Netagunte [Sun, 4 Sep 2011 02:17:37 +0000 (22:17 -0400)]
da850: indicate cache usage disable in config file

there are cache coherency issues when using the DAVINCI Ethernet driver,
hence caches cant be used for da850 u-boot. As per new cache management
framework,if the caches are not used in u-boot, it needs to be explicitly
indicated through macros in config file. CACHE disable is  indicated by
the following macro definitions in config file,

1. CONFIG_SYS_ICACHE_OFF
2. CONFIG_SYS_DCACHE_OFF
3. CONFIG_SYS_L2CACHE_OFF

Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodm365: modify boot prompt from dm365 to dm36x
Rajashekhara, Sudhakar [Sun, 4 Sep 2011 02:13:04 +0000 (22:13 -0400)]
dm365: modify boot prompt from dm365 to dm36x

Newer version for DM365 silicon support higher speeds
and is called DM368. Modify the bootprompt string DM365
to DM36x.

Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodm365: disable cache usage due to coherency issues
Nagabhushana Netagunte [Sun, 4 Sep 2011 02:13:02 +0000 (22:13 -0400)]
dm365: disable cache usage due to coherency issues

there are cache coherency issues when using the DAVINCI Ethernet driver,
hence caches cant be used for d365 u-boot. As per new cache management
framework,if the caches are not used in u-boot, it needs to be explicitly
indicated through macros in config file. CACHE disable is  indicated by
the following macro definitions in config file,

1. CONFIG_SYS_ICACHE_OFF
2. CONFIG_SYS_DCACHE_OFF
3. CONFIG_SYS_L2CACHE_OFF

Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodm6446: disable cache usage due to coherency issues
Nagabhushana Netagunte [Sun, 4 Sep 2011 02:12:56 +0000 (22:12 -0400)]
dm6446: disable cache usage due to coherency issues

there are cache coherency issues when using the DAVINCI Ethernet driver,
hence caches cant be used for dm6446 u-boot. As per new cache management
framework,if the caches are not used in u-boot, it needs to be explicitly
indicated through macros in config file. CACHE disable is  indicated by
the following macro definitions in config file,

1. CONFIG_SYS_ICACHE_OFF
2. CONFIG_SYS_DCACHE_OFF
3. CONFIG_SYS_L2CACHE_OFF

Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: Remove legacy mmc driver
Tom Rini [Sun, 4 Sep 2011 01:53:20 +0000 (21:53 -0400)]
OMAP3: Remove legacy mmc driver

Now that all platforms have been migrated to the new MMC driver, remove
the old one.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodevkit8000: Use generic MMC driver
Tom Rini [Sun, 4 Sep 2011 01:52:45 +0000 (21:52 -0400)]
devkit8000: Use generic MMC driver

Switch from the legacy omap3 mmc driver to the new generic omap hsmmc
driver.  This patch is based on the work done for Beagle, etc.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoTI OMAP3 SDP3430: Use generic MMC driver
Tom Rini [Sun, 4 Sep 2011 01:52:21 +0000 (21:52 -0400)]
TI OMAP3 SDP3430: Use generic MMC driver

Switch from the legacy omap3 mmc driver to the new generic omap hsmmc
driver.  This patch is based on the work done for Beagle, etc.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoAM3517 CraneBoard: Use generic MMC driver
Tom Rini [Sun, 4 Sep 2011 01:51:50 +0000 (21:51 -0400)]
AM3517 CraneBoard: Use generic MMC driver

Switch from the legacy omap3 mmc driver to the new generic omap hsmmc
driver.  This patch is based on the work done for Beagle, etc.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: pandora: Use generic MMC driver
Tom Rini [Sun, 4 Sep 2011 01:51:25 +0000 (21:51 -0400)]
OMAP3: pandora: Use generic MMC driver

Switch from the legacy omap3 mmc driver to the new generic omap hsmmc
driver.  This patch is based on the work done for Beagle, etc.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: Zoom2: Use generic MMC driver
Tom Rini [Sun, 4 Sep 2011 01:51:00 +0000 (21:51 -0400)]
OMAP3: Zoom2: Use generic MMC driver

Switch from the legacy omap3 mmc driver to the new generic omap hsmmc
driver.  This patch is based on the work done for Beagle, etc.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: Zoom1: Use generic MMC driver
Tom Rini [Sun, 4 Sep 2011 01:50:35 +0000 (21:50 -0400)]
OMAP3: Zoom1: Use generic MMC driver

Switch from the legacy omap3 mmc driver to the new generic omap hsmmc
driver.  This patch is based on the work done for Beagle, etc.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: DIG297: Use generic MMC driver
Tom Rini [Sun, 4 Sep 2011 01:50:05 +0000 (21:50 -0400)]
OMAP3: DIG297: Use generic MMC driver

Switch from the legacy omap3 mmc driver to the new generic omap hsmmc
driver.  This patch is based on the work done for Beagle, etc.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3: CM-T35: Use generic MMC driver
Tom Rini [Sun, 4 Sep 2011 01:49:24 +0000 (21:49 -0400)]
OMAP3: CM-T35: Use generic MMC driver

Switch from the legacy omap3 mmc driver to the new generic omap hsmmc
driver.  This patch is based on the work done for Beagle, etc.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoam3517evm: Use generic MMC driver
Vaibhav Hiremath [Sun, 4 Sep 2011 01:47:44 +0000 (21:47 -0400)]
am3517evm: Use generic MMC driver

Switch from the legacy mmc driver to the
new generic mmc driver.

This patch is based on similar patch for beagle[1].

 [1] http://git.denx.de/?p=u-boot.git;a=commitdiff_plain;h=0cd31144240

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: Use generic MMC driver
Vaibhav Hiremath [Sun, 4 Sep 2011 01:42:35 +0000 (21:42 -0400)]
omap3evm: Use generic MMC driver

Switch from the legacy mmc driver to the
new generic mmc driver.

This patch is based on similar patch for beagle[1].

 [1] http://git.denx.de/?p=u-boot.git;a=commitdiff_plain;h=0cd31144240

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3:clock: check cpu_family before enabling clks for IVA & CAM
Vaibhav Hiremath [Sun, 4 Sep 2011 01:35:31 +0000 (21:35 -0400)]
omap3:clock: check cpu_family before enabling clks for IVA & CAM

In case of AM3517 and AM3505 (which is OMAP3 varients), IVA2 and
ISP-CAMERA modules have been removed. So add check for cpu_family before
enabling clocks for these modules, else this impacts subsequent
power consumption and system suspend/resume functionality.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Ranjith Lohithakshan <ranjithl@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3:clock: configure GFX clock to 200MHz for AM/DM37x
Vaibhav Hiremath [Sun, 4 Sep 2011 01:29:59 +0000 (21:29 -0400)]
omap3:clock: configure GFX clock to 200MHz for AM/DM37x

AM/DM37x is another OMAP3 variant, where the GFX clock has been
boosted to 192MHz/200MHz. So fix the GFX_DIV value for this change.

HW Errata: Due to dependency of TV out clock of 54MHz, it is not
possible to configure GFX to 192MHz. So as per HW errats, the
recommended GFX clock is 200MHz (=CORE_CLK/2).

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoOMAP3/4: Increase console I/O buffer size
Vaibhav Hiremath [Sun, 4 Sep 2011 01:24:19 +0000 (21:24 -0400)]
OMAP3/4: Increase console I/O buffer size

Increase the console I/O buffer size (SYS_CBSIZE) to 512 (from 256)
required especially for bootargs string, as multiple options
(e.g Video settings) are passed to the kernel through bootargs.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoPXA: vpac270: Remove re-defined CONFIG_SYS_TEXT_BASE
Marek Vasut [Sun, 28 Aug 2011 01:37:48 +0000 (03:37 +0200)]
PXA: vpac270: Remove re-defined CONFIG_SYS_TEXT_BASE

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
13 years agoPXA: Fix CSB226, fix monitor length
Marek Vasut [Sat, 20 Aug 2011 12:26:11 +0000 (14:26 +0200)]
PXA: Fix CSB226, fix monitor length

This is what was probably intended by the original author.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
13 years agoPXA: Fix Lubbock, remove redundant parenthesis
Marek Vasut [Sat, 20 Aug 2011 12:24:49 +0000 (14:24 +0200)]
PXA: Fix Lubbock, remove redundant parenthesis

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
13 years agoarmv7: cache: remove flush on un-aligned invalidate
Aneesh V [Thu, 11 Aug 2011 04:35:45 +0000 (04:35 +0000)]
armv7: cache: remove flush on un-aligned invalidate

Remove the flush of boundary cache-lines done as part
of invalidate on a non cache-line boundary aligned
buffer

Also, print a warning when this situation is recognized.

Signed-off-by: Aneesh V <aneesh@ti.com>
13 years agoarmv7: stronger barrier for cache-maintenance operations
Aneesh V [Thu, 11 Aug 2011 04:35:44 +0000 (04:35 +0000)]
armv7: stronger barrier for cache-maintenance operations

set-way operations need a DSB after them to ensure the
operation is complete. DMB may not be enough. Use DSB
after all operations instead of DMB.

Signed-off-by: Aneesh V <aneesh@ti.com>
13 years agoomap: enable caches at system start-up
Aneesh V [Thu, 11 Aug 2011 04:35:43 +0000 (04:35 +0000)]
omap: enable caches at system start-up

Signed-off-by: Aneesh V <aneesh@ti.com>
13 years agoarm: do not force d-cache enable on all boards
Aneesh V [Tue, 16 Aug 2011 04:33:05 +0000 (04:33 +0000)]
arm: do not force d-cache enable on all boards

c2dd0d45540397704de9b13287417d21049d34c6 added dcache_enable()
to board_init_r(). This enables d-cache for all ARM boards.
As a result some of the arm boards that are not cache-ready
are broken. Revert this change and allow platform code to
take the decision on d-cache enabling.

Also add some documentation for cache usage in ARM.

Signed-off-by: Aneesh V <aneesh@ti.com>
13 years agoORIGEN: Add MMC SPL support
Chander Kashyap [Thu, 18 Aug 2011 22:37:20 +0000 (22:37 +0000)]
ORIGEN: Add MMC SPL support

Adds mmc boot support.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agoARMV7: Add support for Samsung ORIGEN board
Chander Kashyap [Thu, 18 Aug 2011 22:37:19 +0000 (22:37 +0000)]
ARMV7: Add support for Samsung ORIGEN board

Origen board is based upon S5PV310 SoC which is similiar to
S5PC210 SoC.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agoi2c:gpio:s5p: Enable I2C GPIO on the GONI target
Łukasz Majewski [Mon, 22 Aug 2011 22:34:59 +0000 (22:34 +0000)]
i2c:gpio:s5p: Enable I2C GPIO on the GONI target

This patch enables the software I2C for GONI reference target.

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>
Cc: Heiko Schocher <hs@denx.de>
13 years agoi2c:gpio:s5p: I2C GPIO Software implementation (via soft_i2c)
Łukasz Majewski [Mon, 22 Aug 2011 22:34:58 +0000 (22:34 +0000)]
i2c:gpio:s5p: I2C GPIO Software implementation (via soft_i2c)

This patch adds support for software I2C for GONI and Universal C210 reference targets.
It adds support for access to GPIOs by number, not as it is present,
by bank and offset.

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>
Cc: Heiko Schocher <hs@denx.de>
13 years agoTegra2: Use clock and pinmux functions to simplify code
Simon Glass [Tue, 30 Aug 2011 06:23:15 +0000 (06:23 +0000)]
Tegra2: Use clock and pinmux functions to simplify code

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoTegra2: Add additional pin multiplexing features
Simon Glass [Tue, 30 Aug 2011 06:23:14 +0000 (06:23 +0000)]
Tegra2: Add additional pin multiplexing features

This adds an enum for each pin and some functions for changing the pin
muxing setup.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoTegra2: Add more clock support
Simon Glass [Tue, 30 Aug 2011 06:23:13 +0000 (06:23 +0000)]
Tegra2: Add more clock support

This adds functions to enable/disable clocks and reset to on-chip peripherals.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoTegra2: Add microsecond timer function
Simon Glass [Tue, 30 Aug 2011 06:23:12 +0000 (06:23 +0000)]
Tegra2: Add microsecond timer function

These functions provide access to the high resolution microsecond timer
and tidy up a global variable in the code.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoARM: remove broken "at91rm9200dk" board
Wolfgang Denk [Fri, 26 Aug 2011 02:25:48 +0000 (02:25 +0000)]
ARM: remove broken "at91rm9200dk" board

Signed-off-by: Wolfgang Denk <wd@denx.de>