platform/kernel/u-boot.git
16 years agoelppc board: Coding style cleanup.
Wolfgang Denk [Mon, 14 Jul 2008 18:41:35 +0000 (20:41 +0200)]
elppc board: Coding style cleanup.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoelppc board: fix syntax error.
Wolfgang Denk [Mon, 14 Jul 2008 18:40:22 +0000 (20:40 +0200)]
elppc board: fix syntax error.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoEB+MCF-EV123 board: fix coding style (alingment)
Wolfgang Denk [Mon, 14 Jul 2008 18:38:26 +0000 (20:38 +0200)]
EB+MCF-EV123 board: fix coding style (alingment)

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoEB+MCF-EV123 board: fix syntx error
Wolfgang Denk [Mon, 14 Jul 2008 18:36:44 +0000 (20:36 +0200)]
EB+MCF-EV123 board: fix syntx error

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoCode cleanup: fix old style assignment ambiguities like "=-" etc.
Wolfgang Denk [Mon, 14 Jul 2008 13:19:07 +0000 (15:19 +0200)]
Code cleanup: fix old style assignment ambiguities like "=-" etc.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoAmigaOneG3SE: remove dead and incomplete files
Wolfgang Denk [Mon, 14 Jul 2008 13:10:53 +0000 (15:10 +0200)]
AmigaOneG3SE: remove dead and incomplete files

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFix printf() format issues with sizeof_t types by using %zu
Wolfgang Denk [Mon, 14 Jul 2008 13:06:35 +0000 (15:06 +0200)]
Fix printf() format issues with sizeof_t types by using %zu

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agovsprintf: add z and t options
Jean-Christophe PLAGNIOL-VILLARD [Mon, 14 Jul 2008 12:11:45 +0000 (14:11 +0200)]
vsprintf: add z and t options

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoFix some more printf() format issues.
Wolfgang Denk [Sun, 13 Jul 2008 21:07:35 +0000 (23:07 +0200)]
Fix some more printf() format issues.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFix some more printf() format problems.
Wolfgang Denk [Sun, 13 Jul 2008 17:51:00 +0000 (19:51 +0200)]
Fix some more printf() format problems.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoADS5121: Fix (delete) incorrect ads5121_diu_init() prototype
Wolfgang Denk [Sun, 13 Jul 2008 17:48:26 +0000 (19:48 +0200)]
ADS5121: Fix (delete) incorrect ads5121_diu_init() prototype

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFix bug in Lime video driver
Anatolij Gustschin [Sat, 12 Jul 2008 15:31:36 +0000 (17:31 +0200)]
Fix bug in Lime video driver

We need to wait while drawing engine clears frame
buffer before any further software accesses to frame
buffer will be initiated. Otherwise software drawn
parts could be partially destroyed by the drawing
engine or even GDC chip freeze could occur (as
observed on socrates board).

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoFix some more printf() format issues.
Jean-Christophe PLAGNIOL-VILLARD [Sat, 12 Jul 2008 12:36:34 +0000 (14:36 +0200)]
Fix some more printf() format issues.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agohwmon: rename CONFIG_DS1722 to CONFIG_DTT_DS1722
Michal Simek [Fri, 11 Jul 2008 13:11:57 +0000 (15:11 +0200)]
hwmon: rename CONFIG_DS1722 to CONFIG_DTT_DS1722

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Stefan Roese <sr@denx.de>
16 years agohwmon: Cleaning hwmon devices
Michal Simek [Fri, 11 Jul 2008 09:50:53 +0000 (11:50 +0200)]
hwmon: Cleaning hwmon devices

Clean Makefile
Move device specific values to driver for better reading

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Stefan Roese <sr@denx.de>
16 years agoFIS: repare incorrect return value with ramdisk handling
Michal Simek [Fri, 11 Jul 2008 08:43:13 +0000 (10:43 +0200)]
FIS: repare incorrect return value with ramdisk handling

Microblaze and PowerPC use boot_get_ramdisk for loading
ramdisk to memory with checking return value.
Return 0 means success. Return 1 means failed.
Here is correspond part of code from bootm.c which check
return code.

ret = boot_get_ramdisk (argc, argv, images, IH_ARCH_PPC,
&rd_data_start, &rd_data_end);
if (ret)
goto error;

Signed-off-by: Michal Simek <monstr@monstr.eu>
16 years agomicroblaze: Remove useless ancient headers
Michal Simek [Fri, 11 Jul 2008 08:10:32 +0000 (10:10 +0200)]
microblaze: Remove useless ancient headers

Signed-off-by: Michal Simek <monstr@monstr.eu>
16 years agomicroblaze: Clean uartlite driver
Michal Simek [Fri, 11 Jul 2008 08:10:31 +0000 (10:10 +0200)]
microblaze: Clean uartlite driver

Redesign uartlite driver to in_be32 and out_be32 macros
Fix missing header in io.h

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
16 years agoEnable passing of ATAGs required by latest Linux kernel.
Marcel Ziswiler [Fri, 11 Jul 2008 00:39:14 +0000 (02:39 +0200)]
Enable passing of ATAGs required by latest Linux kernel.

16 years agoFix integer overflow warning in calc_divisor()
Hugo Villeneuve [Fri, 11 Jul 2008 14:24:15 +0000 (10:24 -0400)]
Fix integer overflow warning in calc_divisor()

which happened when rounding the serial port clock divisor

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
16 years agoFix build time warnings in function mmc_decode_csd()
Marcel Ziswiler [Thu, 10 Jul 2008 23:09:59 +0000 (01:09 +0200)]
Fix build time warnings in function mmc_decode_csd()

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
16 years agoARM: Fix for broken compilation when defining CONFIG_CMD_ELF
Hugo Villeneuve [Thu, 10 Jul 2008 14:46:33 +0000 (10:46 -0400)]
ARM: Fix for broken compilation when defining CONFIG_CMD_ELF

caused by missing dcache status/enable/disable functions.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
16 years agoppc4xx: Remove redundant ft_board_setup() functions from some 4xx boards
Stefan Roese [Thu, 10 Jul 2008 11:53:31 +0000 (13:53 +0200)]
ppc4xx: Remove redundant ft_board_setup() functions from some 4xx boards

This patch removes some ft_board_setup() functions from some 4xx boards.
This can be done since we now have a default weak implementation for this
in cpu/ppc4xx/fdt.c. Only board in need for a different/custom
implementation like canyonlands need their own version.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoAdd last known maintainer for orphaned boards; reformat.
Wolfgang Denk [Sun, 13 Jul 2008 12:58:16 +0000 (14:58 +0200)]
Add last known maintainer for orphaned boards; reformat.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoRemove kharris@nexus-tech.net from MAINTAINERS
Haavard Skinnemoen [Thu, 10 Jul 2008 11:16:04 +0000 (13:16 +0200)]
Remove kharris@nexus-tech.net from MAINTAINERS

Mail to kharris@nexus-tech.net bounces because the user doesn't exist
anymore. You can't be a maintainer without a valid e-mail address, so
move all boards that used to be maintained by Kyle Harris to the
"orphaned" list.

Currently, only PowerPC has a list of orphaned boards, so this patch
creates one for ARM as well.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sun, 13 Jul 2008 12:45:06 +0000 (14:45 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc512x
Wolfgang Denk [Sun, 13 Jul 2008 12:44:56 +0000 (14:44 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc512x

16 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sun, 13 Jul 2008 12:44:12 +0000 (14:44 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-coldfire
Wolfgang Denk [Sun, 13 Jul 2008 12:44:04 +0000 (14:44 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-coldfire

16 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sun, 13 Jul 2008 12:43:57 +0000 (14:43 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Sun, 13 Jul 2008 12:42:55 +0000 (14:42 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

16 years agoat91: Fix to enable using Teridian MII phy (78Q21x3) with at91sam9260
Anatolij Gustschin [Wed, 9 Jul 2008 23:15:10 +0000 (01:15 +0200)]
at91: Fix to enable using Teridian MII phy (78Q21x3) with at91sam9260

On the at91sam9260ep development board there is an EEPROM
connected to the TWI interface (PA23, PA24 Peripheral A
multiplexing), so we cannot use these pins as ETX2, ETX3.
This patch configures PA10, PA11 pins for ETX2, ETX3
instead of PA23, PA24 pins.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Manuel Sahm <Manuel.Sahm@feig.de>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-at91
Wolfgang Denk [Sun, 13 Jul 2008 12:40:30 +0000 (14:40 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-at91

16 years agofix DIU for small screens
Kenneth Johansson [Sat, 12 Jul 2008 19:18:34 +0000 (13:18 -0600)]
fix DIU for small screens

The DIU_DIV register is 8 bit not 5 bit. This prevented large DIV values
so it was not possible to set a slow pixel clock and thus prevented
display on small screens.

Signed-off-by: Kenneth Johansson <kenneth@southpole.se>
Acked-by: John Rigby <jrigby@freescale.com>
16 years agoADS5121 cleanup compile warnings
John Rigby [Fri, 11 Jul 2008 20:44:09 +0000 (14:44 -0600)]
ADS5121 cleanup compile warnings

board/ads5121/iopin.c
    Replace bit fields in struct iopin_t with a single
    field and intialize it via plain old macros.
    This fixes the type pun warnings and makes the code
    more readable.

board/ads5121/ads5121.c
    Add include iopin.h to ads5121.c for the iopin_initialize
    prototype.

    Add an extern void ads5121_diu_init(void)

Signed-off-by: John Rigby <jrigby@freescale.com>
16 years agoFix some more printf() format issues.
Wolfgang Denk [Fri, 11 Jul 2008 20:56:11 +0000 (22:56 +0200)]
Fix some more printf() format issues.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFixed some out-of-tree build issues
Wolfgang Denk [Fri, 11 Jul 2008 20:55:31 +0000 (22:55 +0200)]
Fixed some out-of-tree build issues

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoColdFire: Fix FB CS not setup properly for Mcf5282
TsiChung Liew [Wed, 9 Jul 2008 21:20:23 +0000 (16:20 -0500)]
ColdFire: Fix FB CS not setup properly for Mcf5282

Remove all CFG_CSn_RO in cpu/mcf52x2/cpu_init.c. If
CFG_CSn_RO is defined as 0, the chipselect will not
be assigned.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Fix incorrect define for mcf5227x and mcf5445x RTC
TsiChung Liew [Wed, 9 Jul 2008 20:47:27 +0000 (15:47 -0500)]
ColdFire: Fix incorrect define for mcf5227x and mcf5445x RTC

Rename CONFIG_MCFTMR to CONFIG_MCFRTC to include real time
clock module in cpu/<cf arch>/cpu_init.c

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Fix incorrect board name in MAKEALL for M5253EVBE
TsiChung Liew [Wed, 9 Jul 2008 20:25:01 +0000 (15:25 -0500)]
ColdFire: Fix incorrect board name in MAKEALL for M5253EVBE

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoFix compile error caused by missing timer function
TsiChung Liew [Wed, 9 Jul 2008 20:21:44 +0000 (15:21 -0500)]
Fix compile error caused by missing timer function

Add #define CONFIG_MCFTMR in EB+MCF-EV123.h configuration file

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoFix compile error caused by incorrect function return type
TsiChung Liew [Wed, 9 Jul 2008 20:14:25 +0000 (15:14 -0500)]
Fix compile error caused by incorrect function return type

Rename int mii_init(void) to void mii_init(void)

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Fix power up issue for MCF5235
TsiChung Liew [Thu, 19 Jun 2008 00:27:23 +0000 (19:27 -0500)]
ColdFire: Fix power up issue for MCF5235

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Fix compiling error for MCF5275
TsiChung Liew [Thu, 19 Jun 2008 00:19:07 +0000 (19:19 -0500)]
ColdFire: Fix compiling error for MCF5275

The compiling error was caused by missing a closed parentheses
in speed.c

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Fix timer issue for MCF5272
TsiChung Liew [Thu, 19 Jun 2008 00:14:01 +0000 (19:14 -0500)]
ColdFire: Fix timer issue for MCF5272

The timer was assigned to wrong timer memory mapped which
caused udelay() and timer() not working properly.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Change invalid JMP to BRA caught by new v4e toolchain
TsiChung Liew [Thu, 19 Jun 2008 00:12:13 +0000 (19:12 -0500)]
ColdFire: Change invalid JMP to BRA caught by new v4e toolchain

Signed-off-by: Kurt Mahan <kmahan@freescale.com>
16 years agoColdFire: Add -got=single param for new linux v4e toolchains
TsiChung Liew [Thu, 19 Jun 2008 00:05:23 +0000 (19:05 -0500)]
ColdFire: Add -got=single param for new linux v4e toolchains

Signed-off-by: Kurt Mahan <kmahan@freescale.com>
16 years agoColdFire: Fix code flash configuration for M547x/M548x boards
TsiChung Liew [Wed, 18 Jun 2008 18:21:19 +0000 (13:21 -0500)]
ColdFire: Fix code flash configuration for M547x/M548x boards

Signed-off-by: Kurt Mahan <kmahan@freescale.com>
16 years agoColdFire: Fix warning messages by passing correct data type in board.c
TsiChung Liew [Tue, 24 Jun 2008 17:12:16 +0000 (12:12 -0500)]
ColdFire: Fix warning messages by passing correct data type in board.c

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Fix UART baudrate formula
TsiChung Liew [Thu, 29 May 2008 17:21:54 +0000 (12:21 -0500)]
ColdFire: Fix UART baudrate formula

The formula "counter = (u32) (gd->bus_clk / gd->baudrate) / 32"
can generate the wrong divisor due to integer division truncation.
Round the calculated divisor value by adding 1/2 the baudrate
before dividing by the baudrate.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agoppc4xx: Fix include sequence in 4xx_pcie.c
Stefan Roese [Thu, 10 Jul 2008 09:38:26 +0000 (11:38 +0200)]
ppc4xx: Fix include sequence in 4xx_pcie.c

This patch now moves common.h to the top of the inlcude list. This
is needed for boards with CONFIG_PHYS_64BIT set (e.g. katmai), so that
the phys_size_t/phys_addr_t are defined to the correct size in this
driver.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoFix some more print() format errors.
Wolfgang Denk [Thu, 10 Jul 2008 23:16:00 +0000 (01:16 +0200)]
Fix some more print() format errors.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMAKEALL: remove duplicated at91 from ARM9 list and add LIST_at91 to arm
Jean-Christophe PLAGNIOL-VILLARD [Thu, 10 Jul 2008 18:57:54 +0000 (20:57 +0200)]
MAKEALL: remove duplicated at91 from ARM9 list and add LIST_at91 to arm

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoDataFlash AT45DB021 support
Sergey Lapin [Thu, 5 Jun 2008 07:06:29 +0000 (11:06 +0400)]
DataFlash AT45DB021 support

Some boards based on AT91SAM926X-EK use smaller DF chips to keep
bootstrap, u-boot and its environment, using NAND or other external
storage for kernel and rootfs. This patch adds support for
small 1024x263 chip.

Signed-off-by: Sergey Lapin <slapin@ossfans.org>
16 years agosilence misc printf formatting compiler warnings
Kim Phillips [Thu, 10 Jul 2008 19:00:15 +0000 (14:00 -0500)]
silence misc printf formatting compiler warnings

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc512x
Wolfgang Denk [Thu, 10 Jul 2008 20:09:39 +0000 (22:09 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc512x

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc86xx
Wolfgang Denk [Thu, 10 Jul 2008 19:53:51 +0000 (21:53 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-mpc86xx

16 years agoUSB: shutdown USB before booting
Markus Klotzbücher [Thu, 10 Jul 2008 12:47:09 +0000 (14:47 +0200)]
USB: shutdown USB before booting

This patch fixes a potentially serious issue related to USB which was
discouvered by Martin Krause <martin.krause@tqs.de> and fixed for
ARM920T. Martin wrote:

  Turn off USB to prevent the host controller from writing to the
  SDRAM while Linux is booting. This could happen, because the HCCA
  (Host Controller Communication Area) lies within the SDRAM and the
  host controller writes continously to this area (as busmaster!), for
  example to increase the HccaFrameNumber variable, which happens
  every 1 ms.

This is a slightly modified version of the patch in order to shutdown
USB when booting on all architectures.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
16 years agoConfiguration changes for ADS5121 Rev 3
Martha Marx [Thu, 29 May 2008 18:23:25 +0000 (14:23 -0400)]
Configuration changes for ADS5121 Rev 3

ADS5121 Rev 3 board is now the default config

config targets are now

ads5121_config
    Rev 3 board with
PCI
M41T62 on board RTC
512MB DRAM

ads5121_rev2_config
    Rev 2 board with
No PCI
256MB DRAM

Signed-off-by: Martha Marx <mmarx@silicontkx.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: John Rigby <jrigby@freescale.com>
16 years agoConsolidate ADS5121 IO Pin configuration
Martha Marx [Thu, 29 May 2008 19:37:21 +0000 (15:37 -0400)]
Consolidate ADS5121 IO Pin configuration

Consolidate ADS5121 IO Pin configuration to one file
board/ads5121/iopin.c.

Remove pin config from cpu/mpc512x/fec.c

Signed-off-by: Martha Marx <mmarx@silicontkx.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: John Rigby <jrigby@freescale.com>
16 years agoMerge commit 'wd/master'
Jon Loeliger [Thu, 10 Jul 2008 17:05:32 +0000 (12:05 -0500)]
Merge commit 'wd/master'

16 years agoFix "usb part" command
Christian Eggers [Fri, 27 Jun 2008 17:46:51 +0000 (19:46 +0200)]
Fix "usb part" command

Only print partition for selected device if user supplied the <dev>
arg with the "usb part [dev]" command.

Signed-off-by: Christian Eggers <ceggers@gmx.de>
Acked-by: Markus Klotzbuecher <mk@denx.de>
16 years agofix USB devices with multiple configurations
Harald Welte [Sun, 6 Jul 2008 16:58:05 +0000 (00:58 +0800)]
fix USB devices with multiple configurations

This patch fixes bugs in usbdcore*.c related to the use of devices
with multiple configurations.

The original code made mistakes about the meaning of configuration value and
configuration index, and the resulting off-by-one errors resulted in:

* SET_CONFIGURATION always selected the first configuration, no matter what
  wValue is being passed.
* GET_DESCRIPTOR/CONFIGURATION always returned the descriptor for the first
  configuration (index 0).

Signed-off-by: Harald Welte <laforge@openmoko.org>
Acked-by: Markus Klotzbuecher <mk@denx.de>
16 years agoMerge branch 'master' of ssh://10.10.0.7/home/wd/git/u-boot/master
Wolfgang Denk [Thu, 10 Jul 2008 11:16:34 +0000 (13:16 +0200)]
Merge branch 'master' of ssh://10.10.0.7/home/wd/git/u-boot/master

16 years agoFix some more print() format errors.
Wolfgang Denk [Thu, 10 Jul 2008 11:16:09 +0000 (13:16 +0200)]
Fix some more print() format errors.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoFix "usb part" command
Christian Eggers [Fri, 27 Jun 2008 17:46:51 +0000 (19:46 +0200)]
Fix "usb part" command

Only print partition for selected device if user supplied the <dev>
arg with the "usb part [dev]" command.

Signed-off-by: Christian Eggers <ceggers@gmx.de>
Acked-by: Markus Klotzbuecher <mk@denx.de>
16 years agofix USB devices with multiple configurations
Harald Welte [Sun, 6 Jul 2008 16:58:05 +0000 (00:58 +0800)]
fix USB devices with multiple configurations

This patch fixes bugs in usbdcore*.c related to the use of devices
with multiple configurations.

The original code made mistakes about the meaning of configuration value and
configuration index, and the resulting off-by-one errors resulted in:

* SET_CONFIGURATION always selected the first configuration, no matter what
  wValue is being passed.
* GET_DESCRIPTOR/CONFIGURATION always returned the descriptor for the first
  configuration (index 0).

Signed-off-by: Harald Welte <laforge@openmoko.org>
Acked-by: Markus Klotzbuecher <mk@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
Wolfgang Denk [Thu, 10 Jul 2008 08:50:38 +0000 (10:50 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-ppc4xx

16 years agoMTD/NAND: Fix printf format warning in nand code
Stefan Roese [Thu, 10 Jul 2008 08:10:54 +0000 (10:10 +0200)]
MTD/NAND: Fix printf format warning in nand code

This patch fixes NAND related printf format warning. Those warnings are
now visible since patch dc4b0b38d4aadf08826f6c31270f1eecd27964fd
[Fix printf errors.] by Andrew Klossner has been applied. Thanks, this is
really helpful.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agortc: Fix printf format warning in m41t60.c
Stefan Roese [Thu, 10 Jul 2008 08:00:45 +0000 (10:00 +0200)]
rtc: Fix printf format warning in m41t60.c

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agopci: Move PCI device configuration check into a separate weak function
Stefan Roese [Tue, 8 Jul 2008 10:01:47 +0000 (12:01 +0200)]
pci: Move PCI device configuration check into a separate weak function

This patch moves the check, if a device should be skipped in PCI PNP
configuration into the function pci_skip_dev(). This function is defined
as weak so that it can be overwritten by a platform specific one if
needed. The check if the device should get printed in the PCI summary upon
bootup (when CONFIG_PCI_SCAN_SHOW is defined) is moved to the function
pci_print_dev() which is also defined as weak too.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Fix printf format warnings now visible with the updated format check
Stefan Roese [Thu, 10 Jul 2008 07:58:06 +0000 (09:58 +0200)]
ppc4xx: Fix printf format warnings now visible with the updated format check

This patch fixes ppc4xx related printf format warning. Those warnings are
now visible since patch dc4b0b38d4aadf08826f6c31270f1eecd27964fd
[Fix printf errors.] by Andrew Klossner has been applied. Thanks, this is
really helpful.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Enable support for > 2GB SDRAM on AMCC Katmai
Stefan Roese [Wed, 9 Jul 2008 15:33:57 +0000 (17:33 +0200)]
ppc4xx: Enable support for > 2GB SDRAM on AMCC Katmai

Newer PPC's like 440SPe, 460EX/GT can be equipped with more than 2GB of SDRAM.
To support such configurations, we "only" map the first 2GB via the TLB's. We
need some free virtual address space for the remaining peripherals like, SoC
devices, FLASH etc.

Note that ECC is currently not supported on configurations with more than 2GB
SDRAM. This is because we only map the first 2GB on such systems, and therefore
the ECC parity byte of the remaining area can't be written.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Remove implementation of testdram() from Korat board support
Larry Johnson [Sat, 14 Jun 2008 21:02:49 +0000 (17:02 -0400)]
ppc4xx: Remove implementation of testdram() from Korat board support

Signed-off-by: Larry Johnson <lrj@acm.org>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Update and add FDT to Korat board support
Larry Johnson [Sat, 14 Jun 2008 20:53:02 +0000 (16:53 -0400)]
ppc4xx: Update and add FDT to Korat board support

Signed-off-by: Larry Johnson <lrj@acm.org>
Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoMerge branch 'master' of /home/stefan/git/u-boot/u-boot
Stefan Roese [Thu, 10 Jul 2008 07:09:45 +0000 (09:09 +0200)]
Merge branch 'master' of /home/stefan/git/u-boot/u-boot

16 years agoMinor coding style cleanup; update CHANGELOG
Wolfgang Denk [Wed, 9 Jul 2008 23:13:30 +0000 (01:13 +0200)]
Minor coding style cleanup; update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-nand-flash
Wolfgang Denk [Wed, 9 Jul 2008 22:59:04 +0000 (00:59 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-nand-flash

16 years agoe1000: add support for 82545GM 64bit PCI-X copper variant
Paul Gortmaker [Wed, 9 Jul 2008 21:50:45 +0000 (17:50 -0400)]
e1000: add support for 82545GM 64bit PCI-X copper variant

This PCI-X e1000 variant works by just adding in the correct
PCI IDs in the appropriate places.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
16 years agoSPARC: Build error fix
Daniel Hellstrom [Wed, 9 Jul 2008 12:34:11 +0000 (12:34 +0000)]
SPARC: Build error fix

(introduced by commit 391fd93ab23e15ab3dd58a54f5b609024009c378)

This patch makes SPARC targets build again. It is caused by
phys_addr_t and phys_size_t being defined in the wrong header
file. include/lmb.h need those typedefs to build.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
16 years agoMany spelling fixes in README.
Marcel Ziswiler [Wed, 9 Jul 2008 06:17:15 +0000 (08:17 +0200)]
Many spelling fixes in README.

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
16 years agoMinor spelling fix in comment.
Marcel Ziswiler [Wed, 9 Jul 2008 06:17:06 +0000 (08:17 +0200)]
Minor spelling fix in comment.

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
16 years agoRound the serial port clock divisor value returned by calc_divisor()
Hugo Villeneuve [Tue, 8 Jul 2008 18:54:58 +0000 (14:54 -0400)]
Round the serial port clock divisor value returned by calc_divisor()

Round the serial port clock divisor value returned by
calc_divisor().

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
Signed-off-by: John Roberts <john.roberts@pwav.com>
16 years agoNAND: ifdef-protect most of nand.h when using legacy NAND.
Scott Wood [Wed, 9 Jul 2008 22:47:52 +0000 (17:47 -0500)]
NAND: ifdef-protect most of nand.h when using legacy NAND.

Some macros such as NAND_CTL_SETALE conflict between current and legacy
NAND, being defined by the subsystem in the former case and the board
config file in the latter.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoARM: Fix for wrong patch version applied for Lyrtech SFF-SDR board (ARM926EJS)
Hugo Villeneuve [Tue, 8 Jul 2008 15:02:05 +0000 (11:02 -0400)]
ARM: Fix for wrong patch version applied for Lyrtech SFF-SDR board (ARM926EJS)

ARM: Fix for incorrect version of patch applied when
adding support for the Lyrtech SFF-SDR board.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
Signed-off-by: Philip Balister, OpenSDR <philip@opensdr.com>
16 years agoRemove useless print message at apollon
Kyungmin Park [Tue, 8 Jul 2008 00:08:40 +0000 (09:08 +0900)]
Remove useless print message at apollon

Remove useless print message at apollon

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
16 years agoFix LMB type issues
Andy Fleming [Mon, 7 Jul 2008 19:24:39 +0000 (14:24 -0500)]
Fix LMB type issues

The LMB code now uses phys_addr_t and phys_size_t.  Also, there were a couple
of casting problems in the bootm code that called the LMB functions.

Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agoFix compiler warnings
Kumar Gala [Mon, 7 Jul 2008 14:39:06 +0000 (09:39 -0500)]
Fix compiler warnings

gcc-4.3.x generates the following:

bootm.c: In function 'do_bootm_linux':
bootm.c:208: warning: cast from pointer to integer of different size
bootm.c:215: warning: cast from pointer to integer of different size

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoRemove code duplication for setting the default environment
Harald Welte [Mon, 7 Jul 2008 07:40:39 +0000 (15:40 +0800)]
Remove code duplication for setting the default environment

common/env_common.c (default_env): new function that resets the environment to
    the default value
common/env_common.c (env_relocate): use default_env instead of own copy
common/env_nand.c (env_relocate_spec): use default_env instead of own copy
include/environment.h: added default_env prototype

Signed-off-by: Werner Almesberger <werner@openmoko.org>
Signed-off-by: Harald Welte <laforge@openmoko.org>
16 years agoNAND: Fix warning due to missing env_ptr casts to u_char * in env_nand.c.
Marcel Ziswiler [Sun, 22 Jun 2008 14:13:46 +0000 (16:13 +0200)]
NAND: Fix warning due to missing env_ptr casts to u_char * in env_nand.c.

The writeenv() and readenv() calls introduced by the recently added bad block
management for environment variables were missing casts therefore producing
compile time warnings.
While at it fixing some typo in a comment and indentation.

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoNAND: Rename DEBUG to MTDDEBUG to avoid namespace pollution.
Scott Wood [Fri, 20 Jun 2008 17:38:57 +0000 (12:38 -0500)]
NAND: Rename DEBUG to MTDDEBUG to avoid namespace pollution.

This is particularly problematic now that non-NAND-specific code is
including <nand.h>, and thus all debugging code is being compiled
regardless of whether it was requested, as reported by Scott McNutt
<smcnutt@psyent.com>.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agommc: Move atmel_mci driver into drivers/mmc
Haavard Skinnemoen [Thu, 12 Jun 2008 17:27:58 +0000 (19:27 +0200)]
mmc: Move atmel_mci driver into drivers/mmc

This makes it easier to use the driver on other platforms.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Acked-by: Jean-Chritophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoavr32: Use CONFIG_ATMEL_MCI to select the atmel_mci driver
Haavard Skinnemoen [Thu, 12 Jun 2008 17:27:57 +0000 (19:27 +0200)]
avr32: Use CONFIG_ATMEL_MCI to select the atmel_mci driver

After we move the atmel_mci driver into drivers/mmc, we can't select
it with CONFIG_MMC anymore. Introduce a new symbol specifically for
this driver so that there's no ambiguity.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Acked-by: Jean-Chritophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoCreate drivers/mmc subdirectory
Haavard Skinnemoen [Thu, 12 Jun 2008 17:27:56 +0000 (19:27 +0200)]
Create drivers/mmc subdirectory

In order to consolidate more of the various MMC drivers around the
tree, we must first have a common place to put them.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Acked-by: Jean-Chritophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoChange env_get_char from a global function ptr to a function
Joakim Tjernlund [Sun, 6 Jul 2008 10:30:09 +0000 (12:30 +0200)]
Change env_get_char from a global function ptr to a function

This avoids an early global data reference.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
16 years agoSome copy-n-paste fixes in printf usage
Matvejchikov Ilya [Sun, 6 Jul 2008 09:57:58 +0000 (13:57 +0400)]
Some copy-n-paste fixes in printf usage

Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
16 years agoFDT memory and pci node fixes for MPC8260ADS
Matvejchikov Ilya [Sun, 6 Jul 2008 09:57:00 +0000 (13:57 +0400)]
FDT memory and pci node fixes for MPC8260ADS

Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
16 years agoFix printf errors.
Andrew Klossner [Mon, 7 Jul 2008 13:41:14 +0000 (06:41 -0700)]
Fix printf errors.

The compiler will help find mismatches between printf formats and
arguments if you let it.  This patch adds the necessary attributes to
declarations in include/common.h, then begins to correct the resulting
compiler warnings.  Some of these were bugs, e.g., "$d" instead of
"%d" and incorrect arguments.  Others were just annoying, like
int-long mismatches on a system where both are 32 bits.  It's worth
fixing the annoying errors to catch the real ones.

Signed-off-by: Andrew Klossner <andrew@cesa.opbu.xerox.com>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mips
Wolfgang Denk [Wed, 9 Jul 2008 21:24:23 +0000 (23:24 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-mips

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-cfi-flash
Wolfgang Denk [Wed, 9 Jul 2008 21:23:39 +0000 (23:23 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-cfi-flash