kernel/u-boot.git
15 years agoxpedite1k: Move to X-ES vendor directory
Peter Tyser [Sat, 18 Jul 2009 00:01:16 +0000 (19:01 -0500)]
xpedite1k: Move to X-ES vendor directory

The XPedite1000 is an X-ES product thus it can be put in board/xes along
with other X-ES boards.  Along with the move, the board was renamed to
XPedite1000 from XPedite1K to fit X-ES's standard naming convention.
Maintainership was also transfered to Peter Tyser.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Sync checkboard() with other X-ES boards
Peter Tyser [Sat, 18 Jul 2009 00:01:15 +0000 (19:01 -0500)]
xpedite1k: Sync checkboard() with other X-ES boards

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Sync up board config options with other X-ES boards
Peter Tyser [Sat, 18 Jul 2009 00:01:14 +0000 (19:01 -0500)]
xpedite1k: Sync up board config options with other X-ES boards

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Sync organization of board config with other X-ES boards
Peter Tyser [Sat, 18 Jul 2009 00:01:13 +0000 (19:01 -0500)]
xpedite1k: Sync organization of board config with other X-ES boards

This change should have no functional effect

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Sync up commands and environment with other X-ES boards
Peter Tyser [Sat, 18 Jul 2009 00:01:12 +0000 (19:01 -0500)]
xpedite1k: Sync up commands and environment with other X-ES boards

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Disable unused ethernet port 1
Peter Tyser [Sat, 18 Jul 2009 00:01:11 +0000 (19:01 -0500)]
xpedite1k: Disable unused ethernet port 1

The XPedite1000 only has 2 available ethernet ports:
ppc_4xx_eth2 (EMAC2) and ppc_4xx_eth3 (EMAC3)

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Store environment in flash
Peter Tyser [Sat, 18 Jul 2009 00:01:10 +0000 (19:01 -0500)]
xpedite1k: Store environment in flash

Previously an I2C EEPROM was used.  The EEPROM had size, reliability,
and access issues which are resolved by storing the environment in
flash.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Add support for additional GPIO pins
Peter Tyser [Sat, 18 Jul 2009 00:01:09 +0000 (19:01 -0500)]
xpedite1k: Add support for additional GPIO pins

Enable GPIO pins for an I2C EEPROM write protect, a system reset pin,
and a PMC #MONARCH pin.  These pins are not currently used in U-Boot,
but are used in OSes and may be used in U-Boot in the future.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Add support for optional flashes
Peter Tyser [Sat, 18 Jul 2009 00:01:08 +0000 (19:01 -0500)]
xpedite1k: Add support for optional flashes

The XPedite1000 can be built with 4 total flashes:
- 512KB AMD socketed
- 16MB Intel soldered
- 2 x 32MB AMD MirrorBit flashes

Add support for the optional 2 32MB CFI-compliant AMD flashes

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Cleanup coding style
Peter Tyser [Sat, 18 Jul 2009 00:01:07 +0000 (19:01 -0500)]
xpedite1k: Cleanup coding style

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Remove support for reading MACs from EEPROM
Peter Tyser [Sat, 18 Jul 2009 00:01:06 +0000 (19:01 -0500)]
xpedite1k: Remove support for reading MACs from EEPROM

By default, the XPedite1000 comes installed with xMon, a proprietary
bootloader.  xMon stores its MAC address in an onboard EEPROM.  Rather
than requiring a non-standard location in the EEPROM to be reserved for
MAC addresses, store the MAC addresses in U-Boot's standard environment.
A U-Boot application or OS application can be used to migrate xMon MAC
addresses to U-Boot's environment if necessary.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Remove support for fixed SDRAM configuration
Peter Tyser [Sat, 18 Jul 2009 00:01:05 +0000 (19:01 -0500)]
xpedite1k: Remove support for fixed SDRAM configuration

All XPedite1000's have SPD EEPROMs present and no fixed configuration
parameters are currently defined or used

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Remove CONFIG_SYS_DRAM_TEST support
Peter Tyser [Sat, 18 Jul 2009 00:01:04 +0000 (19:01 -0500)]
xpedite1k: Remove CONFIG_SYS_DRAM_TEST support

POST or command line tests provide similar functionality

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoxpedite1k: Use standard CFI flash driver
Peter Tyser [Sat, 18 Jul 2009 00:01:03 +0000 (19:01 -0500)]
xpedite1k: Use standard CFI flash driver

Using the CFI flash driver will allow write access to the 16MB Intel
StrataFlash present on the XPedite1000.  The 512KB socketed (non
CFI-compliant flash) will no longer be writable.

The mapping of the 16MB Strata flash was moved to 0xff000000 and the
512KB AMD socketed flash was moved to 0xfe000000.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoppc4xx: Cleanup PLU405 board code
Matthias Fuchs [Thu, 16 Jul 2009 20:13:57 +0000 (22:13 +0200)]
ppc4xx: Cleanup PLU405 board code

Some Coding style cleanup (braces, whitespaces, long lines)

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoppc4xx: Add DL-Vision 405EP board support
Dirk Eibach [Fri, 17 Jul 2009 12:16:40 +0000 (14:16 +0200)]
ppc4xx: Add DL-Vision 405EP board support

Board support for the Guntermann & Drunck DL-Vision.

Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoppc4xx: Fix missing freqOPB for 405EP
Dirk Eibach [Fri, 10 Jul 2009 12:47:32 +0000 (14:47 +0200)]
ppc4xx: Fix missing freqOPB for 405EP

In cpu/ppc4xx/speed.c initialization of sysInfo->freqOPB for 405EP was
left out for no obvious reason.

Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoppc4xx: Fix TLB reset problem with recent 44x images
Stefan Roese [Tue, 14 Jul 2009 13:53:08 +0000 (15:53 +0200)]
ppc4xx: Fix TLB reset problem with recent 44x images

Patch d873133f [ppc4xx: Add Sequoia RAM-booting target] broke "normal"
booting on some 44x platforms. This breakage is only noticed in some
cases while powercycling. As it seems, the code in question in start.S
didn't invalidate TLB #0. This makes sense since this TLB is used for
the bootrom mapping. With the patch mentioned above even TLB #0 got
invalidated resulting in an error later on.

This patch now fixes this issue by only invalidating TLB #0 in the RAM-
booting case.

Tested succesfully on Sequoia and Canyonlands.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Dirk Eibach <Eibach@gdsys.de>
15 years agoCoding Style cleanup; update CHANGELOG.
Wolfgang Denk [Thu, 23 Jul 2009 20:23:23 +0000 (22:23 +0200)]
Coding Style cleanup; update CHANGELOG.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoautoconf.mk: include before config.mk for top level files
Mike Frysinger [Wed, 22 Jul 2009 02:59:36 +0000 (22:59 -0400)]
autoconf.mk: include before config.mk for top level files

By including autoconf.mk before config.mk, all top level files can use any
config options it sets up (like <arch>_config.mk) or the Makefile itself
without being forced to use lazy evaluation.

15 years agoRemove static declaration from gunzip_bmp()
Mark Jackson [Tue, 21 Jul 2009 10:30:53 +0000 (11:30 +0100)]
Remove static declaration from gunzip_bmp()

This patch removes the static declaration from gunzip_bmp()

Without it, the gunzip_bmp() function is not visible to
common/lcd.c and fails to compile with an error.

Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
15 years agocmd_tsi148: General cleanup
Peter Tyser [Tue, 21 Jul 2009 02:51:38 +0000 (21:51 -0500)]
cmd_tsi148: General cleanup

- Fix command help message
- Disable DEBUG by default
- Fix whitespace issues
- Fix lines > 80 characters

Signed-off-by: Peter Tyser <ptyser@gmail.com>
Acked-by: Stefan Roese <sr@denx.de>
15 years agounify HOST_CFLAGS and HOSTCFLAGS
Mike Frysinger [Sun, 19 Jul 2009 19:17:03 +0000 (15:17 -0400)]
unify HOST_CFLAGS and HOSTCFLAGS

The top build system sets up HOSTCFLAGS a bit and exports it, but other
places use HOST_CFLAGS instead.  Unify the two as HOSTCFLAGS so that the
values stay in sync.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoUpdate CHANGELOG
Wolfgang Denk [Thu, 23 Jul 2009 19:16:59 +0000 (21:16 +0200)]
Update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoupdate config for mvBC-P (MPC5200)
André Schwarz [Fri, 17 Jul 2009 12:50:24 +0000 (14:50 +0200)]
update config for mvBC-P (MPC5200)

This patch adds I2C support for mvBC-P and defines flash layout
matching the shipped product.

Signed-off-by: André Schwarz <andre.schwarz@matrix-vision.de>
15 years agoahci: Fix gcc 4.4 compiler warning
Kumar Gala [Mon, 13 Jul 2009 14:24:00 +0000 (09:24 -0500)]
ahci: Fix gcc 4.4 compiler warning

ahci.c: In function 'ata_scsiop_read_capacity10':
ahci.c:616: warning: dereferencing type-punned pointer will break strict-aliasing rules

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agodrivers/bios_emulator: Fix gcc 4.4 compiler warning
Kumar Gala [Mon, 13 Jul 2009 14:23:59 +0000 (09:23 -0500)]
drivers/bios_emulator: Fix gcc 4.4 compiler warning

biosemu.c: In function 'BE_setVGA':
biosemu.c:147: warning: dereferencing type-punned pointer will break strict-aliasing rules

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agoRe-add support for image type 'Standalone Program'
Detlev Zundel [Mon, 13 Jul 2009 14:01:19 +0000 (16:01 +0200)]
Re-add support for image type 'Standalone Program'

Support for this type was lost during the bootm refactoring.

Signed-off-by: Detlev Zundel <dzu@denx.de>
15 years agoAdd error checking for unsupported OS types.
Detlev Zundel [Mon, 13 Jul 2009 14:01:18 +0000 (16:01 +0200)]
Add error checking for unsupported OS types.

Signed-off-by: Detlev Zundel <dzu@denx.de>
15 years agoppc: Unlock cache-as-ram in a consistent manner
Peter Tyser [Fri, 10 Jul 2009 23:46:10 +0000 (18:46 -0500)]
ppc: Unlock cache-as-ram in a consistent manner

Previously, non-e500 architectures only unlocked their data cache which
was used as early RAM when booting to Linux using the "bootm" command.
This change causes all PPC boards with CONFIG_SYS_INIT_RAM_LOCK defined
to unlock their data cache during U-Boot's initialization.  This
improves U-Boot performance and provides a common cache state when
booting to different OSes.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-net
Wolfgang Denk [Thu, 23 Jul 2009 17:20:26 +0000 (19:20 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-net

15 years agozlib: updated to v.1.2.3
Giuseppe CONDORELLI [Thu, 23 Jul 2009 08:54:45 +0000 (04:54 -0400)]
zlib: updated to v.1.2.3

This patch updates zlib to the latest stable version.

Only relevant zlib parts were ported to u-boot tree, as was done for
the previously used version of zlib (0.95). New zlib gives faster
inflate performance and other improvements, see www.zlib.net

Signed-off-by: Giuseppe Condorelli <giuseppe.condorelli@st.com>
Reviewed-by: Angelo Castello <angelo.castello@st.com>
Edited commit message

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoSave server's MAC address in environment
Robin Getz [Tue, 21 Jul 2009 16:15:28 +0000 (12:15 -0400)]
Save server's MAC address in environment

Linux's netconsole works much better when you can pass it the MAC address of
the server. (otherwise it just uses broadcast, which everyone else on my
network complains about :)

This sets the env var "serveraddr" (to match ethaddr), so that you can pass
it to linux with whatever bootargs you want to....

addnetconsole=set bootargs $(bootargs) netconsole=@$(ipaddr)/eth0,@$(serverip)/$(serveraddr)

Signed-of-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agofec_mxc: driver for FEC ethernet controller on i.MX27
Ilya Yanok [Tue, 21 Jul 2009 15:32:21 +0000 (19:32 +0400)]
fec_mxc: driver for FEC ethernet controller on i.MX27

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoppc4xx: Fixed compilation warning in 4xx_enet.c
Alessio Centazzo [Sat, 11 Jul 2009 18:56:06 +0000 (11:56 -0700)]
ppc4xx: Fixed compilation warning in 4xx_enet.c

This patch fixes a compilation warning for some Ethernet PHY-less
PPC4xx platforms (440SPE based ones) and a potential compilation
error for 440SP platforms (use of undefined 'ethgroup' variable).
In the original code and in case of 440SPE platforms, 'ethgroup'
is initialized to -1 and never modified.  Later in the function,
within an #ifdef statement, an 'if statement' executes code only
if 'ethgroup' is set to 4, therefore it is harmless to avoid
executing the 'if statement' by removing the CONFIG_440SPE from
the affected #ifdefs.  In case of 440SP platforms  with on-board
Ethernet PHY, 'ethgroup' is undefined but used (there are not such
platforms in the repository yet). All other architectures are not
affected by this change.

Signed-off-by: Alessio Centazzo acpatin@yahoo.com
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoDHCP regression on 2009-06
Michael Zaidman [Tue, 14 Jul 2009 20:37:12 +0000 (23:37 +0300)]
DHCP regression on 2009-06

Fixed the DHCP/BOOTP/RARP regression introduced in u-boot-2009.06
by initializing our IP addr to 0 in order to accept any IP addr
assigned to us by the DHCP/BOOTP/RARP server.

Ack-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agonet: phy: bugfixes: mv88E61xx multichip addressing support
Prafulla Wadaskar [Thu, 16 Jul 2009 15:28:02 +0000 (20:58 +0530)]
net: phy: bugfixes: mv88E61xx multichip addressing support

With these fixes, this driver works properly for multi chip
addressging mode

Bugfixes:
1. Build error fixed for function mv88e61xx_busychk_multic-fixed
2. PHY dev address error detection- fixed
3. wrong busy bit was refered in function mv88e61xx_busychk -fixed
4. invalid data read ptr was refered for RD_PHY in case of
multichip addressing mode -fixed

The Multichip Address mode is tested with RD6281A board having
MV88E6165 switch on it

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoarm: Kirkwood: Check the error summary bit for error detection
Simon Kagstrom [Wed, 8 Jul 2009 11:05:11 +0000 (13:05 +0200)]
arm: Kirkwood: Check the error summary bit for error detection

The Marvell documentation for the 88f6281 states that the error coding
is only valid if the error summary and last frame bits in the transmit
descriptor status field are set. This patch adds checks for these for
transmit (I would get transmit errors on bootp with the current check,
which I believe are spurious).

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoarm: Kirkwood: Fix compiler optimization bug for kwgbe_send
Simon Kagstrom [Wed, 8 Jul 2009 11:03:18 +0000 (13:03 +0200)]
arm: Kirkwood: Fix compiler optimization bug for kwgbe_send

kwgbe_send/recv both have loops waiting for the hardware to set  a bit.
GCC 4.3.3 cleverly optimizes the send case to ... a while(1); loop. This
patch uses readl to force a read from device memory. Other volatile
accesses have also been replaced with readl/writel where appropriate
(as per suggestions on the U-boot mailing list).

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoMIIPHYBB: Return 0xFFFF if the PHY is not asserting TA.
Richard Retanubun [Thu, 2 Jul 2009 17:21:22 +0000 (13:21 -0400)]
MIIPHYBB: Return 0xFFFF if the PHY is not asserting TA.

This patch sets the returned value to 0xFFFF if the PHY does not exist
and does not assert Transfer Acknowledge. A NULL check for the value
pointer is also added for buffer overflow protection.

Without this patch 'mii info' will  show 'phantom' devices because the
value will be not be initialized and return with some random value.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoConvert SMC911X Ethernet driver to CONFIG_NET_MULTI API
Ben Warren [Tue, 21 Jul 2009 05:01:11 +0000 (22:01 -0700)]
Convert SMC911X Ethernet driver to CONFIG_NET_MULTI API

All in-tree boards that use this controller have CONFIG_NET_MULTI added
Also:
 - changed CONFIG_DRIVER_SMC911X* to CONFIG_SMC911X*
 - cleaned up line lengths
 - modified all boards that override weak function in this driver
 - added

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Tested-by: Mike Frysinger <vapier@gentoo.org>
15 years agoAdd warning about upcoming removal of old Ethernet API
Ben Warren [Fri, 17 Jul 2009 07:50:15 +0000 (00:50 -0700)]
Add warning about upcoming removal of old Ethernet API

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoP2020RDB Added support of Vitesse PHYs VSC8641(RGMII) and VSC8221(SGMII)
Poonam Aggrwal [Thu, 2 Jul 2009 10:45:13 +0000 (16:15 +0530)]
P2020RDB Added support of Vitesse PHYs VSC8641(RGMII) and VSC8221(SGMII)

These PHYs are on P2020RDB platform.

Also revamped Freescale copyright message in drivers/net/tsec.c.

Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoAdd DNS support
Robin Getz [Mon, 20 Jul 2009 18:53:54 +0000 (14:53 -0400)]
Add DNS support

On 04 Oct 2008 Pieter posted a dns implementation for U-Boot.

http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg10216.html
>
> DNS can be enabled by setting CFG_CMD_DNS. After performing a query,
> the serverip environment var is updated.
>
> Probably there are some cosmetic issues with the patch. Unfortunatly I
> do not have the time to correct these. So if anybody else likes DNS
> support in U-Boot and has the time, feel free to patch it in the main tree.

Here it is again - slightly modified & smaller:
  - update to 2009-06 (Pieter's patch was for U-Boot 1.2.0)
  - README.dns is added
  - syntax is changed (now takes a third option, the env var to store
    the result in)
  - add a random port() function in net.c
  - sort Makefile in ./net/Makefile
  - dns just returns unless a env var is given
  - run through checkpatch, and clean up style issues
  - remove packet from stack
  - cleaned up some comments
  - failure returns much faster (if server responds, don't wait for
    timeout)
  - use built in functions (memcpy) rather than byte copy.

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Pieter Voorthuijsen <pieter.voorthuijsen@prodrive.nl>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agonet: tsec - fix dereferencing type-punned pointer will break strict-aliasing rules...
Kim Phillips [Fri, 17 Jul 2009 17:17:00 +0000 (12:17 -0500)]
net: tsec - fix dereferencing type-punned pointer will break strict-aliasing rules warning

fix this gcc 4.4 warning:

tsec.c: In function 'tsec_init':
tsec.c:200: warning: dereferencing type-punned pointer will break strict-aliasing rules

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agonet: rename NetRxPkt to NetRxPacket
Mike Frysinger [Sun, 19 Jul 2009 01:04:08 +0000 (21:04 -0400)]
net: rename NetRxPkt to NetRxPacket

The net code is mostly consistent in using 'Packet' rather than 'Pkt', so
rename the minor detractor to follow suite.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agosh: sh_eth: Remove garbage from printf
Nobuhiro Iwamatsu [Thu, 25 Jun 2009 07:33:04 +0000 (16:33 +0900)]
sh: sh_eth: Remove garbage from printf

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agosmc911x: add support for LAN9221
Andreas Pretzsch [Thu, 9 Jul 2009 19:50:05 +0000 (21:50 +0200)]
smc911x: add support for LAN9221

Signed-off-by: Andreas Pretzsch <apr@cn-eng.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agorm9200 ethernet driver: board-specific quirk (csb337)
David Brownell [Tue, 9 Jun 2009 18:14:24 +0000 (11:14 -0700)]
rm9200 ethernet driver: board-specific quirk (csb337)

CSB337 boards originally shipped with MicroMonitor, not U-Boot;
and with a version using a different convention for recording
Ethernet addresses than anyone else.  To avoid breaking Linux
when it uses U-Boot, have it use the same convention on that
hardware.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Wed, 22 Jul 2009 23:00:17 +0000 (01:00 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Wed, 22 Jul 2009 22:59:37 +0000 (00:59 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

15 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Wed, 22 Jul 2009 22:57:21 +0000 (00:57 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-i2c
Wolfgang Denk [Wed, 22 Jul 2009 22:57:18 +0000 (00:57 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-i2c

15 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Wed, 22 Jul 2009 22:52:30 +0000 (00:52 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Wed, 22 Jul 2009 22:52:25 +0000 (00:52 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

15 years agoMerge branch 'master' of /home/wd/git/u-boot/master/
Wolfgang Denk [Wed, 22 Jul 2009 22:48:20 +0000 (00:48 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/master/

15 years agoarm, kirkwood: added kw_gpio_set_valid() in gpio.h
Heiko Schocher [Thu, 16 Jul 2009 07:58:31 +0000 (09:58 +0200)]
arm, kirkwood: added kw_gpio_set_valid() in gpio.h

Signed-off-by: Heiko Schocher <hs@denx.de>
15 years agoKirkwood: add Marvell Kirkwood gpio driver
Dieter Kiermaier [Mon, 29 Jun 2009 12:45:08 +0000 (14:45 +0200)]
Kirkwood: add Marvell Kirkwood gpio driver

Signed-off-by: Dieter Kiermaier <dk-arm-linux@gmx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Tested-by: Heiko Schocher <hs@denx.de>
15 years agoarm, kirkwood: added KW_TWSI_BASE in kirkwood.h
Heiko Schocher [Thu, 16 Jul 2009 07:59:10 +0000 (09:59 +0200)]
arm, kirkwood: added KW_TWSI_BASE in kirkwood.h

Signed-off-by: Heiko Schocher <hs@denx.de>
15 years agoMarvell RD6281A Board support
Prafulla Wadaskar [Thu, 16 Jul 2009 15:32:24 +0000 (21:02 +0530)]
Marvell RD6281A Board support

This is Marvell's 88F6281_A0 based reference design board

This patch is tested for-
1. Boot from DRAM/NAND flash/NFS
2. File transfer using tftp and loadb
3. NAND flash read/write/erase

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoapi: Fix broken build on ARM.
Piotr Ziecik [Fri, 17 Jul 2009 14:35:19 +0000 (16:35 +0200)]
api: Fix broken build on ARM.

This patch fixes broken build introduced by commit
84bf7ca522e94ec402a1264b01971b924b7e268f (api: remove un-needed
ifdef CONFIG_API already handle by the Makefile).

Signed-off-by: Piotr Ziecik <kosmo@semihalf.com>
15 years agoFix "ld: cannot find -lstubs" build error
Wolfgang Denk [Wed, 22 Jul 2009 21:53:23 +0000 (23:53 +0200)]
Fix "ld: cannot find -lstubs" build error

Commit 1bc15386 moved the examples/ to examples/standalone but failed
to adapt the Makefiles that need to link against libstubs.a

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoat91cap9adk: fix #ifdef/#endif pairing
Wolfgang Denk [Sat, 18 Jul 2009 18:47:36 +0000 (20:47 +0200)]
at91cap9adk: fix #ifdef/#endif pairing

The #ifdef/#endif pairing in this file was obviously messed up.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoARM Cortex A8: Move OMAP3 specific reset handler
Minkyu Kang [Mon, 20 Jul 2009 02:40:01 +0000 (11:40 +0900)]
ARM Cortex A8: Move OMAP3 specific reset handler

Because of the reset_cpu is soc specific, should be move to soc

Cc: Dirk Behme <dirk.behme@googlemail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
15 years ago85xx/86xx: Replace in8/out8 with in_8/out_8 on FSL boards
Kumar Gala [Wed, 22 Jul 2009 15:12:39 +0000 (10:12 -0500)]
85xx/86xx: Replace in8/out8 with in_8/out_8 on FSL boards

The pixis code used in8/out8 all over the place.  Replace it with
in_8/out_8 macros.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agoxpedite5370: Enable NAND command support
Peter Tyser [Tue, 21 Jul 2009 18:51:08 +0000 (13:51 -0500)]
xpedite5370: Enable NAND command support

Use the MPC8572's eLBC to access 1 GB (or greater) onboard NAND flash
via the 'nand' command.

Previously, the XPedite5370's NAND chip selects were properly
configured, but NAND support was not enabled.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agoxes: Increase CONFIG_SYS_BOOTM_LEN to 16MB
Peter Tyser [Tue, 21 Jul 2009 18:51:07 +0000 (13:51 -0500)]
xes: Increase CONFIG_SYS_BOOTM_LEN to 16MB

Increasing CONFIG_SYS_BOOTM_LEN from 8 MB to 16 MB is necessary to
support uncompressing images larger than 8 MB when using the bootm
command.

Note that recent Linux kernels for the 85xx and 86xx map greater than
16MB of memory on bootup, but we use 16MB to maintain compatibility with
older Linux kernels for now.

Signed-off-by: Nate Case <ncase@xes-inc.com>
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agoxpedite5370: Fix I2C GPIO initialization typo
Peter Tyser [Mon, 20 Jul 2009 00:17:41 +0000 (19:17 -0500)]
xpedite5370: Fix I2C GPIO initialization typo

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Acked-by: Heiko Schocher<hs@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agoxpedite5200,5370: Use buffered NOR flash writes
Peter Tyser [Mon, 20 Jul 2009 00:17:40 +0000 (19:17 -0500)]
xpedite5200,5370: Use buffered NOR flash writes

Buffered writes are possible on the XPedite5200 and XPedite5370 and greatly
improve NOR flash write speeds

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years ago85xx, 86xx: Add common board_add_ram_info()
Peter Tyser [Fri, 17 Jul 2009 15:14:48 +0000 (10:14 -0500)]
85xx, 86xx: Add common board_add_ram_info()

Previously, 85xx and 86xx boards would display DRAM information on
bootup such as:

...
I2C:   ready
DRAM:
Memory controller interleaving enabled: Bank interleaving!
 2 GB
FLASH: 256 MB
...

This patch moves the printing of the DRAM controller configuration to a
common board_add_ram_info() function which prints out DDR type, width,
CAS latency, and ECC mode.  It also makes the DDR interleaving
information print out in a more sane manner:

...
I2C:   ready
DRAM:   2 GB (DDR2, 64-bit, CL=4, ECC on)
       DDR Controller Interleaving Mode: bank
FLASH: 256 MB
...

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agotqm85xx: Remove board_add_ram_info()
Peter Tyser [Fri, 17 Jul 2009 15:14:47 +0000 (10:14 -0500)]
tqm85xx: Remove board_add_ram_info()

This is in preparation for adding one common 8xxx board_add_ram_info()
function for all 8xxx boards

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agoxes: Remove 8xxx board_add_ram_info() function
Peter Tyser [Fri, 17 Jul 2009 15:14:46 +0000 (10:14 -0500)]
xes: Remove 8xxx board_add_ram_info() function

This is in preparation for adding one common 8xxx board_add_ram_info()
fuction for all 8xxx boards

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years ago86xx: Rename ccsr_ddr's sdram_mode_1, sdram_cfg_1 fields
Peter Tyser [Fri, 17 Jul 2009 15:14:45 +0000 (10:14 -0500)]
86xx: Rename ccsr_ddr's sdram_mode_1, sdram_cfg_1 fields

Rename sdram_mode_1 to sdram_mode and sdram_cfg_1 to sdram_cfg to match
the 86xx user's manual and other Freescale architectures

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years ago85xx: Add pci/pcie E1000 ethernet support for MPC8544DS and MPC8536 boards
Roy Zang [Thu, 9 Jul 2009 02:05:48 +0000 (10:05 +0800)]
85xx: Add pci/pcie E1000 ethernet support for MPC8544DS and MPC8536 boards

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years ago85xx: Report which "bank" of NOR flash we are booting from on FSL boards
Kumar Gala [Wed, 15 Jul 2009 03:42:01 +0000 (22:42 -0500)]
85xx: Report which "bank" of NOR flash we are booting from on FSL boards

The p2020DS, MPC8536DS, MPC8572DS, MPC8544DS boards are capable of
swizzling the upper address bits of the NOR flash we boot out of which
creates the concept of "virtual" banks.  This is useful in that we can
flash a test of image of u-boot and reset to one of the virtual banks
while still maintaining a working image in "bank 0".

The PIXIS FPGA exposes registers on LBC which we can use to determine
which "bank" we are booting out of (as well as setting which bank to
boot out of).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years ago86xx: Report which "bank" of NOR flash we are booting from on MPC8641HPCN
Kumar Gala [Wed, 15 Jul 2009 18:45:00 +0000 (13:45 -0500)]
86xx: Report which "bank" of NOR flash we are booting from on MPC8641HPCN

The MPC8641HPCN board is capable of swizzling the upper address bit of
the NOR flash we boot out of which creates the concept of "virtual"
banks.  This is useful in that we can flash a test of image of u-boot
and reset to one of the virtual banks while still maintaining a
working image in "bank 0".

The PIXIS FPGA exposes registers on LBC which we can use to determine
which "bank" we are booting out of (as well as setting which bank to
boot out of).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agoRefresh LZMA-lib to v4.65
Luigi 'Comio' Mantellini [Tue, 21 Jul 2009 08:45:49 +0000 (10:45 +0200)]
Refresh LZMA-lib to v4.65

Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
15 years agoAT91: factor out ROUND() macro
Wolfgang Denk [Fri, 17 Jul 2009 21:35:29 +0000 (23:35 +0200)]
AT91: factor out ROUND() macro

A large number of boards (all AT91 based) duplicated the ROUND()
macro in their board specific config files. Add the definition to
include/common.h and clean up the board config files.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years ago85xx: Bump up the BOOTMAP to 16M on FSL 85xx boards
Kumar Gala [Wed, 15 Jul 2009 13:54:50 +0000 (08:54 -0500)]
85xx: Bump up the BOOTMAP to 16M on FSL 85xx boards

We have always mapped at least 16M in the kernel and we have seen cases
with new kernel features that a kernel image needs more than 8M of
memory.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agoMove api_examples to examples/api
Peter Tyser [Tue, 21 Jul 2009 00:02:21 +0000 (19:02 -0500)]
Move api_examples to examples/api

Also add a rule to remove demo.bin which was previously leftover
after a "make clean"

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years ago83xx, kmeter: fix compile error
Heiko Schocher [Tue, 21 Jul 2009 04:37:28 +0000 (06:37 +0200)]
83xx, kmeter: fix compile error

CONFIG_SYS_MALLOC_LEN is defined in the board config, and
the keymile-common.h, which collects common options used
by all keymile-boards. This results in a compile error
when compiling the kmeter1 board. So remove this define
in the board config file.

Signed-off-by: Heiko Schocher <hs@denx.de>
15 years agoi2c, mpc83xx: add CONFIG_SYS_I2C_INIT_BOARD for fsl_i2c
Heiko Schocher [Thu, 9 Jul 2009 10:04:26 +0000 (12:04 +0200)]
i2c, mpc83xx: add CONFIG_SYS_I2C_INIT_BOARD for fsl_i2c

This patch adds the possibility to call a board specific
i2c bus reset routine for the fsl_i2c bus driver, and adds
this option for the keymile kmeter1 board.

The deblock sequence for this board is implemented and
tested in the following way:

CR = 0x20 (release SDA and SCL pin)
CR = 0xa0 (start read)
dummy read
dummy read
if 2. dummy read == 0x00
3. dummy read

CR = 0x80 (SDA and SCL now 1 SR = 0x86)
CR = 0x00 (Modul reset SR=0x81)
CR = 0x80 (SDA and SCL = 1, SR = 0x81)

Signed-off-by: Heiko Schocher <hs@denx.de>
15 years agoMove examples/ to examples/standalone
Peter Tyser [Fri, 10 Jul 2009 16:03:19 +0000 (11:03 -0500)]
Move examples/ to examples/standalone

The current files in examples are all standalone application examples,
so put them in their own subdirectory for organizational purposes

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoMove architecture specific config.mk files into subdirs
Peter Tyser [Fri, 10 Jul 2009 16:03:15 +0000 (11:03 -0500)]
Move architecture specific config.mk files into subdirs

This cleans up U-Boot's toplevel directory a bit and makes the
architecture 'config.mk' file naming and location similar to board
and cpu 'config.mk' files

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoAdd "tags" to .gitignore file.
Po-Yu Chuang [Fri, 10 Jul 2009 10:25:34 +0000 (18:25 +0800)]
Add "tags" to .gitignore file.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agopowerpc: updates for the keymile boards
Heiko Schocher [Thu, 9 Jul 2009 10:04:18 +0000 (12:04 +0200)]
powerpc: updates for the keymile boards

- CONFIG_SYS_MAX_I2C_BUS changed to 1
  We use only one I2C hardwarecontroller on this boards, so
  change the CONFIG_SYS_MAX_I2C_BUS to 1.
- common: dont print errormsg if second IVM Block lacks.
- 82xx, mgcoge: fix double mtdpart entry in environment
- 82xx, mgcoge: activate on second Flash the second bank.
- common: CONFIG_ENV_SIZE 0x4000 for all keymile boards
- common: Change malloc size to 1MByte for all Keymile boards
    We need a bigger malloc area for the environment support (128k)
    on some Keymile boards (kmeter1) and the upcoming UBI support.
    Change it to 1MB for all Keymile boards to be on the save side.
    Also define CONFIG_SYS_64BIT_VSPRINTF which is needed for
    UBI/UBIFS support.
- Add UBI support to all Keymile boards
- change manner of writing "/localbus/ranges" node
    instead of writting the complete "/localbus/ranges" node
    before booting Linux, only update the ranges entries
    which gets dynamical detected (size of flashes).
    This is needed, because keymile adds in the DTS
    "/localbus/ranges" node entries, which u-boot must
    not overwrite/delete.
- kmeter, mgcoge: define 2 seperate regions needed for the Intel P30 chips
    The Intel P30 chip has 2 non-identical chips on
    one die, so we need to define 2 seperate regions
    that are scanned by physmap_of independantly.
- kmeter1: Add MTD concat support to Keymile boards
- 82xx, mgcoge: add "unlock=yes" to default environment
- added CONFIG_MTD_DEVICE to get in sync with mainline code

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agofsl_sata: Fix compiler warnings shown by gcc-4.4
galak [Tue, 7 Jul 2009 20:53:21 +0000 (15:53 -0500)]
fsl_sata: Fix compiler warnings shown by gcc-4.4

Update fsl_sata to use common structures instead of casting
back and forth between the fsl specific ones and the common ones
(which are identical).

fsl_sata.c: In function 'scan_sata':
fsl_sata.c:550: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:549: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:548: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:545: note: initialized from here
fsl_sata.c:592: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:590: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:588: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:586: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
fsl_sata.c:579: warning: dereferencing pointer 'cfis' does break strict-aliasing rules
...

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agoAdd unaligned.h for arm
Simon Kagstrom [Tue, 7 Jul 2009 13:58:51 +0000 (15:58 +0200)]
Add unaligned.h for arm

This patch adds unaligned.h for ARM (needed to build with LZO
compression). The file is taken from the linux kernel, but includes
u-boot headers instead.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Acked-by: Stefan Roese <sr@denx.de>
15 years agoRemove last remanants of unused CONFIG_I2C_CMD_TREE
Peter Tyser [Mon, 20 Jul 2009 00:17:42 +0000 (19:17 -0500)]
Remove last remanants of unused CONFIG_I2C_CMD_TREE

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoubi: help message correction
Andrzej Wolski [Fri, 17 Jul 2009 20:26:54 +0000 (22:26 +0200)]
ubi: help message correction

Fix incorrect information about size units and correct typo.

Signed-off-by: Andrzej Wolski <awolski@poczta.fm>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-i2c
Wolfgang Denk [Mon, 20 Jul 2009 20:57:25 +0000 (22:57 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-i2c

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-ubi
Wolfgang Denk [Mon, 20 Jul 2009 20:56:57 +0000 (22:56 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ubi

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Mon, 20 Jul 2009 20:55:29 +0000 (22:55 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Mon, 20 Jul 2009 20:52:31 +0000 (22:52 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

15 years agoRemove last remanants of unused CONFIG_I2C_CMD_TREE
Peter Tyser [Mon, 20 Jul 2009 00:17:42 +0000 (19:17 -0500)]
Remove last remanants of unused CONFIG_I2C_CMD_TREE

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoubi: help message correction
Andrzej Wolski [Fri, 17 Jul 2009 20:26:54 +0000 (22:26 +0200)]
ubi: help message correction

Fix incorrect information about size units and correct typo.

Signed-off-by: Andrzej Wolski <awolski@poczta.fm>
Signed-off-by: Stefan Roese <sr@denx.de>
15 years agommc: set bus width to 1 and clock to minimum early during initialization
Ilya Yanok [Mon, 29 Jun 2009 13:53:16 +0000 (17:53 +0400)]
mmc: set bus width to 1 and clock to minimum early during initialization

We need to switch back to 1-bit before initialization or SD 2.0 cards
will fail to send SCR if we've switched to 4-bit already.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
15 years agoconfig.mk: Remove unused HPATH
Shinya Kuribayashi [Sat, 20 Jun 2009 10:14:33 +0000 (19:14 +0900)]
config.mk: Remove unused HPATH

This variable is not unused anywhere.

Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
15 years agodigsy mtc: Enable command line history.
Grzegorz Bernacki [Wed, 17 Jun 2009 14:20:14 +0000 (16:20 +0200)]
digsy mtc: Enable command line history.

Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
15 years agocompiler.h: unify system ifdef cruft here
Mike Frysinger [Thu, 2 Jul 2009 23:23:25 +0000 (19:23 -0400)]
compiler.h: unify system ifdef cruft here

Shove a lot of the HOSTCC and related #ifdef checking crap into the new
compiler.h header so that we can keep all other headers nice and clean.

Also introduce custom uswap functions so we don't have to rely on the non
standard implementations that a host may (or may not in the case of OS X)
provide.  This allows mkimage to finally build cleanly on an OS X system.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>