platform/kernel/u-boot.git
13 years agoYAFFS2: fs/yaffs2/yaffs_guts.c - fix build warnings
Wolfgang Denk [Thu, 8 Sep 2011 02:10:21 +0000 (02:10 +0000)]
YAFFS2: fs/yaffs2/yaffs_guts.c - fix build warnings

Fix these:
yaffs_guts.c: At top level:
yaffs_guts.c:400: warning: 'yaffs_SkipFullVerification' defined but not used

Testing shows no changes of the image sizes.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoYAFFS2: fs/yaffs2/yaffs_nand.[hc] - fix build warnings
Wolfgang Denk [Thu, 8 Sep 2011 02:10:20 +0000 (02:10 +0000)]
YAFFS2: fs/yaffs2/yaffs_nand.[hc] - fix build warnings

Fix these:
yaffs_guts.c: In function 'yaffs_Scan':
yaffs_guts.c:5436: warning: pointer targets in passing argument 4 of 'yaffs_QueryInitialBlockState' differ in signedness
yaffs_guts.c: In function 'yaffs_ScanBackwards':
yaffs_guts.c:6017: warning: pointer targets in passing argument 4 of 'yaffs_QueryInitialBlockState' differ in signedness
yaffs_nand.c: In function 'yaffs_QueryInitialBlockState':
yaffs_nand.c:109: warning: pointer targets in passing argument 4 of 'dev->queryNANDBlock' differ in signedness
yaffs_nand.c:113: warning: pointer targets in passing argument 4 of 'yaffs_TagsCompatabilityQueryNANDBlock' differ in signedness

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoYAFFS2: fs/yaffs2/Makefile - fix build warnings
Wolfgang Denk [Thu, 8 Sep 2011 02:10:19 +0000 (02:10 +0000)]
YAFFS2: fs/yaffs2/Makefile - fix build warnings

Drop the "-DNO_Y_INLINE" setting to fix these:
yaffs_guts.h:806: warning: 'yaffs_GetBlockInfo' defined but not used

Impact on image size is negligible - for the VCMA9 board the text
segment size grew from 496353 to 496357 bytes (i. e. 0.0008%);
total image size even remained constant.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoYAFFS2: fs/yaffs2/yaffscfg.c - fix build warnings
Wolfgang Denk [Thu, 8 Sep 2011 02:10:18 +0000 (02:10 +0000)]
YAFFS2: fs/yaffs2/yaffscfg.c - fix build warnings

Fix these:
yaffscfg.c: In function 'cmd_yaffs_mread_file':
yaffscfg.c:316: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'char *'
yaffscfg.c: In function 'cmd_yaffs_ls': yaffscfg.c:371: warning: format '%7d' expects type 'int', but argument 3 has type 'off_t'

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoYAFFS2: cmd_yaffs2.c - fix build warnings
Wolfgang Denk [Thu, 8 Sep 2011 02:10:17 +0000 (02:10 +0000)]
YAFFS2: cmd_yaffs2.c - fix build warnings

Fix these:
cmd_yaffs2.c: In function 'do_ywr':
cmd_yaffs2.c:69: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'ulong'
cmd_yaffs2.c:69: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'ulong'

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agonet/eth.c: throw BUG for eth_get_dev_by_name(NULL)
Helmut Raiger [Mon, 22 Aug 2011 00:17:17 +0000 (00:17 +0000)]
net/eth.c: throw BUG for eth_get_dev_by_name(NULL)

eth_get_dev_by_name() is not safe to use for devname being NULL
as it uses strcmp. This patch makes it fail with a BUG().

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agosmc911x: Fix build warnings
Wolfgang Denk [Thu, 8 Sep 2011 01:04:27 +0000 (01:04 +0000)]
smc911x: Fix build warnings

Commit 6af1d41 "smc911x MII made available" was missing a few "const"
qualifiers.  Fix the resulting in build warnings:

smc911x.c: In function 'smc911x_initialize':
smc911x.c:297: warning: passing argument 2 of 'miiphy_register' from incompatible pointer type
smc911x.c:297: warning: passing argument 3 of 'miiphy_register' from incompatible pointer type

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Helmut Raiger <helmut.raiger@hale.at>
13 years agoMX31: mx31pdk: make use of GPIO framework
Stefano Babic [Wed, 7 Sep 2011 10:51:43 +0000 (10:51 +0000)]
MX31: mx31pdk: make use of GPIO framework

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoPXA: FIX: Deep-sleep return address in stored in PSPR
Marek Vasut [Wed, 7 Sep 2011 03:25:45 +0000 (03:25 +0000)]
PXA: FIX: Deep-sleep return address in stored in PSPR

FIX for a typo-bug: The address is stored in PSPR, not PSSR.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
13 years agosmc911x MII made available
Helmut Raiger [Wed, 29 Jun 2011 00:12:14 +0000 (00:12 +0000)]
smc911x MII made available

The driver already had the MII functions, but they have not been
registered using miiphy_register().

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
13 years agocommon: fix behavior of ROUND macro when input is already rounded
Anton Staaf [Fri, 2 Sep 2011 13:45:28 +0000 (13:45 +0000)]
common: fix behavior of ROUND macro when input is already rounded

Currently when you call ROUND with a value that is already a
multiple of the second parameter it will return a value that is
one multiple larger, instead of returning the value passed in.

There are only two types of usage of ROUND currently, one in
various config files to round CONFIG_SYS_MALLOC_LEN to a multiple
of 4096 bytes.  The other in cmd_sf.c where the incorrect behavior
of ROUND is worked around be subtracting one from the length argument
before passing it to ROUND.

This patch fixes ROUND and removes the workaround from cmd_sf.  It
also results in all of the malloc pools that use ROUND to compute
their size shrinking by 4KB.

Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Mike Frysinger <vapier@gentoo.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mmc
Wolfgang Denk [Wed, 7 Sep 2011 20:22:38 +0000 (22:22 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mmc

* 'master' of git://git.denx.de/u-boot-mmc:
  ftsdc010: add support of ftsdc010 mmc controller
  mmc: Fix mmc_send_status()

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Wolfgang Denk [Wed, 7 Sep 2011 20:20:38 +0000 (22:20 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-video

* 'master' of git://git.denx.de/u-boot-video:
  VIDEO: mb86r0xgdc.c: fix warning: unused variable 'i'

13 years agoI2C: mxc: fix compilation for MX31
Stefano Babic [Tue, 30 Aug 2011 00:51:14 +0000 (00:51 +0000)]
I2C: mxc: fix compilation for MX31

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agoMX31: fix missing mxc_get_clk() call
Stefano Babic [Tue, 30 Aug 2011 00:51:13 +0000 (00:51 +0000)]
MX31: fix missing mxc_get_clk() call

Add missing case to be used in common MXC code.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoarm: tegra2: fix out-of-tree build
Che-liang Chiou [Tue, 23 Aug 2011 00:03:12 +0000 (00:03 +0000)]
arm: tegra2: fix out-of-tree build

The out-of-tree build fails because the Makefiles in question depend on
source files of another directory but do not explicitly mkdir that
directory.

As a matter of fact, other Makefiles under board/*/ directory that refer
to source files under another directory explicitly call mkdir.

This patch adds explicit mkdir's to the Makefiles in question, and
verifies that out-of-tree build is working.

Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
13 years agoomap24xx: fix 'reset_timer_masked' declaration error
Wolfgang Denk [Mon, 5 Sep 2011 05:55:59 +0000 (05:55 +0000)]
omap24xx: fix 'reset_timer_masked' declaration error

Commit 17659d7 "Timer: Remove reset_timer_masked()" introduced a
static declaration for reset_timer_masked() which causes build errors:

timer.c:45: error: static declaration of 'reset_timer_masked' follows non-static declaration
include/asm/u-boot-arm.h:70: error: previous declaration of 'reset_timer_masked' was here

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Graeme Russ <graeme.russ@gmail.com>
Cc: Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoda8xxevm: Fix warning: unused variable 'val'
Wolfgang Denk [Mon, 5 Sep 2011 05:26:27 +0000 (05:26 +0000)]
da8xxevm: Fix warning: unused variable 'val'

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
13 years agoARM: PXA: remove broken "zylonite" board.
Wolfgang Denk [Mon, 5 Sep 2011 10:00:30 +0000 (10:00 +0000)]
ARM: PXA: remove broken "zylonite" board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
13 years agoARM: remove broken "shannon" board.
Wolfgang Denk [Mon, 5 Sep 2011 12:37:34 +0000 (14:37 +0200)]
ARM: remove broken "shannon" board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Rolf Offermanns <rof@sysgo.de>
13 years agoARM: remove broken "modnet50" board.
Wolfgang Denk [Mon, 5 Sep 2011 12:37:33 +0000 (14:37 +0200)]
ARM: remove broken "modnet50" board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Thomas Elste <info@elste.org>
13 years agoARM: remove broken "lpc2292sodimm" board.
Wolfgang Denk [Mon, 5 Sep 2011 12:37:32 +0000 (14:37 +0200)]
ARM: remove broken "lpc2292sodimm" board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agoARM: remove broken "lart" board.
Wolfgang Denk [Mon, 5 Sep 2011 12:37:31 +0000 (14:37 +0200)]
ARM: remove broken "lart" 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 "impa7" board.
Wolfgang Denk [Mon, 5 Sep 2011 12:37:30 +0000 (14:37 +0200)]
ARM: remove broken "impa7" 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 "gcplus" board.
Wolfgang Denk [Mon, 5 Sep 2011 12:37:29 +0000 (14:37 +0200)]
ARM: remove broken "gcplus" board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: George G. Davis <gdavis@mvista.com>
13 years agoARM: remove broken "evb4510" board.
Wolfgang Denk [Mon, 5 Sep 2011 12:37:28 +0000 (14:37 +0200)]
ARM: remove broken "evb4510" board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Curt Brune <curt@cucy.com>
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 agoVIDEO: mb86r0xgdc.c: fix warning: unused variable 'i'
Wolfgang Denk [Mon, 5 Sep 2011 19:51:33 +0000 (21:51 +0200)]
VIDEO: mb86r0xgdc.c: fix warning: unused variable 'i'

Fix build warning:

Configuring for jadecpu board...
mb86r0xgdc.c: In function 'dsp_init':
mb86r0xgdc.c:60: warning: unused variable 'i'

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Anatolij Gustschin <agust@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 agoftsdc010: add support of ftsdc010 mmc controller
Macpaul Lin [Wed, 20 Jul 2011 21:29:58 +0000 (21:29 +0000)]
ftsdc010: add support of ftsdc010 mmc controller

Faraday FTSDC010 controller is a SD/MMC controller for SoC chip.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agommc: Fix mmc_send_status()
Marek Vasut [Wed, 10 Aug 2011 07:24:48 +0000 (09:24 +0200)]
mmc: Fix mmc_send_status()

The mmc_send_status() function sets cmd.arg = 0. That's incorrect, so fix it.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Tested-by: Lei Wen <adrian.wenl@gmail.com>
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>