oweals/u-boot.git
16 years agofavr-32-ezkit: Fix printf format warnings
Haavard Skinnemoen [Wed, 20 Aug 2008 07:27:37 +0000 (09:27 +0200)]
favr-32-ezkit: Fix printf format warnings

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agoMAINTAINERS: Sort avr32 section alphabetically
Haavard Skinnemoen [Fri, 15 Aug 2008 10:04:25 +0000 (12:04 +0200)]
MAINTAINERS: Sort avr32 section alphabetically

The rest of the MAINTAINERS file appears to be sorted
almost-alphabetically, but entries for the newly added AVR32 boards were
added somewhat randomly. This patch sorts the list alphabetically again.

Also update my e-mail address. The old one still works, but it may not
work forever.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agoMerge branch 'mimc200' of git://git.denx.de/u-boot-avr32
Haavard Skinnemoen [Wed, 20 Aug 2008 07:12:28 +0000 (09:12 +0200)]
Merge branch 'mimc200' of git://git.denx.de/u-boot-avr32

Conflicts:

MAKEALL
Makefile

16 years agoavr32: Add MIMC200 board
Mark Jackson [Wed, 30 Jul 2008 12:07:27 +0000 (13:07 +0100)]
avr32: Add MIMC200 board

The MIMC200 board is based on Atmel's NGW100 dev kit, but with an extra
8MByte FLASH and 128KByte FRAM.

Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agoMerge branch 'favr-32' of git://git.denx.de/u-boot-avr32
Haavard Skinnemoen [Wed, 6 Aug 2008 13:12:38 +0000 (15:12 +0200)]
Merge branch 'favr-32' of git://git.denx.de/u-boot-avr32

Conflicts:

MAINTAINERS
MAKEALL
Makefile

16 years agoavr32: add support for EarthLCD Favr-32 board
Hans-Christian Egtvedt [Wed, 6 Aug 2008 12:42:13 +0000 (14:42 +0200)]
avr32: add support for EarthLCD Favr-32 board

This patch adds support for the Favr-32 board made by EarthLCD.

This kit, which is also called ezLCD-101 when running with EarthLCD firmware,
has a 10.4" touch screen LCD panel, 16 MB 32-bit SDRAM, 8 MB parallel flash,
Ethernet, audio out, USB device, SD-card slot, USART and various other
connectors for cennecting stuff to SPI, I2C, GPIO, etc.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agodrivers/serial: Move conditional compilation to Makefile for CONFIG_* macros
Jean-Christophe PLAGNIOL-VILLARD [Sat, 2 Aug 2008 21:48:30 +0000 (23:48 +0200)]
drivers/serial: Move conditional compilation to Makefile for CONFIG_* macros

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agonios2/sysid: fix printf warning
Jean-Christophe PLAGNIOL-VILLARD [Sat, 2 Aug 2008 21:48:32 +0000 (23:48 +0200)]
nios2/sysid: fix printf warning

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoFix remaining build issues with MPC8xx FADS boards.
Jean-Christophe PLAGNIOL-VILLARD [Sat, 2 Aug 2008 21:48:33 +0000 (23:48 +0200)]
Fix remaining build issues with MPC8xx FADS boards.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agonios2: fix phys_addr_t and phys_size_t support
Jean-Christophe PLAGNIOL-VILLARD [Sat, 2 Aug 2008 21:48:31 +0000 (23:48 +0200)]
nios2: fix phys_addr_t and phys_size_t support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agomvbc_p: Fix problem with '#if (CONFIG_CMD_KGDB)'
Jean-Christophe PLAGNIOL-VILLARD [Sat, 2 Aug 2008 21:48:34 +0000 (23:48 +0200)]
mvbc_p: Fix problem with '#if (CONFIG_CMD_KGDB)'

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/master/
Wolfgang Denk [Fri, 1 Aug 2008 19:57:32 +0000 (21:57 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/master/

16 years agoFix bitmap display for atmel lcd controller
Mark Jackson [Fri, 1 Aug 2008 08:48:29 +0000 (09:48 +0100)]
Fix bitmap display for atmel lcd controller

The current lcd_display_bitmap() function does not work properly
for the Atmel LCD controller.

2 fixes need to be done:-

(a) when setting the colour map, use the lcd_setcolreg() function
    as provided by the Atmel driver
(b) the data is never actually written to the lcd framebuffer !!

Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
16 years agoqemu_mips: update README to follow qemu update about default machine
Jean-Christophe PLAGNIOL-VILLARD [Fri, 1 Aug 2008 06:40:34 +0000 (08:40 +0200)]
qemu_mips: update README to follow qemu update about default machine

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoColdFire: Fix compilation issue caused by a missing function
TsiChung Liew [Fri, 1 Aug 2008 00:53:21 +0000 (19:53 -0500)]
ColdFire: Fix compilation issue caused by a missing function

Implement usec2ticks() which is used by fsl_i2c.c in
lib_m68k/time.c

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoFix compilation error for TASREG
TsiChung Liew [Fri, 1 Aug 2008 00:53:06 +0000 (19:53 -0500)]
Fix compilation error for TASREG

TASREG is ColdFire platform, the include ppc4xx.h in
board/esd/common/flash.c causes conflict.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoFix compilation error for MCF5275
TsiChung Liew [Fri, 1 Aug 2008 00:52:36 +0000 (19:52 -0500)]
Fix compilation error for MCF5275

Rename OBJ to COBJ in board/platform/Makefile

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoFix compile error caused by incorrect function return type
TsiChung Liew [Fri, 1 Aug 2008 00:52:28 +0000 (19:52 -0500)]
Fix compile error caused by incorrect function return type

Rename int mii_init(void) to void mii_init(void) for idmr
ColdFire platform

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoFix build issues with MPC8xx FADS boards.
Wolfgang Denk [Fri, 1 Aug 2008 10:06:22 +0000 (12:06 +0200)]
Fix build issues with MPC8xx FADS boards.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoPrepare v1.3.4-rc2: update CHANGELOG v1.3.4-rc2
Wolfgang Denk [Thu, 31 Jul 2008 15:54:03 +0000 (17:54 +0200)]
Prepare v1.3.4-rc2: update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of ssh://10.10.0.7/home/wd/git/u-boot/master
Wolfgang Denk [Thu, 31 Jul 2008 15:50:37 +0000 (17:50 +0200)]
Merge branch 'master' of ssh://10.10.0.7/home/wd/git/u-boot/master

16 years agoAdd gzipped logo support
Mark Jackson [Thu, 31 Jul 2008 15:09:00 +0000 (16:09 +0100)]
Add gzipped logo support

The README file states that CONFIG_VIDEO_BMP_GZIP behaves as follows:

  If this option is set, additionally to standard BMP
  images, gzipped BMP images can be displayed via the
  splashscreen support or the bmp command.

However, the splashscreen function *only* supports standard BMP images.

This patch adds the documented gzip support.

Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
16 years agoFix Atmel LCD controller endianess for AVR32 processors
Mark Jackson [Thu, 31 Jul 2008 14:56:48 +0000 (15:56 +0100)]
Fix Atmel LCD controller endianess for AVR32 processors

The Atmel lcd controller is used on Atmel's AT91 (little endian) and
AVR32 (big endian) platforms.

As such, the controller can handle both big and little endian memory.

This patch fixes the driver for the AVR32 platform.

Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
16 years agoapollon: fix build out of tree
Jean-Christophe PLAGNIOL-VILLARD [Thu, 31 Jul 2008 13:56:01 +0000 (15:56 +0200)]
apollon: fix build out of tree

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoUncompressed images loaded to their start address shall set load_end too
Guennadi Liakhovetski [Thu, 31 Jul 2008 10:35:04 +0000 (12:35 +0200)]
Uncompressed images loaded to their start address shall set load_end too

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Bartlomiej Sieka <tur@semihalf.com>
16 years agoFix printf() format problems with configurable prompts
Wolfgang Denk [Wed, 16 Jul 2008 14:38:59 +0000 (16:38 +0200)]
Fix printf() format problems with configurable prompts

U-Boot allows for configurable prompt strings using the
CONFIG_AUTOBOOT_PROMPT resp. CONFIG_MENUPROMPT definitions. So far,
the assumption was that any such user defined problts would contain
exactly one "%d" format specifier. But some boards did not.

To allow for flexible boot prompts without adding too complex code we
now allow to specify the whole list of printf() arguments in the user
definition. This is powerful, but requires a responsible user who
really understands what he is doing, as he needs to know for exanple
which variables are available in the respective context.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoTQM85xx: fix typo introduce by commit ffbb5cb9
Wolfgang Denk [Thu, 31 Jul 2008 15:02:14 +0000 (17:02 +0200)]
TQM85xx: fix typo introduce by commit ffbb5cb9

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agomvbc_p board: fix most build warnings.
Wolfgang Denk [Thu, 31 Jul 2008 13:27:01 +0000 (15:27 +0200)]
mvbc_p board: fix most build warnings.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoE1000: clean up CONFIG_E1000_FALLBACK_MAC handling
Wolfgang Denk [Thu, 31 Jul 2008 11:57:20 +0000 (13:57 +0200)]
E1000: clean up CONFIG_E1000_FALLBACK_MAC handling

Avoid "integer constant is too large for 'long' type" warnings.
And simplify the code.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of ssh://10.10.0.7/home/wd/git/u-boot/master
Wolfgang Denk [Thu, 31 Jul 2008 10:30:40 +0000 (12:30 +0200)]
Merge branch 'master' of ssh://10.10.0.7/home/wd/git/u-boot/master

16 years ago8260: Making the use of gd->pci_clk dependant on the CONFIG_PCI
Matvejchikov Ilya [Wed, 30 Jul 2008 19:21:19 +0000 (23:21 +0400)]
8260: Making the use of gd->pci_clk dependant on the CONFIG_PCI

Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
16 years agoPPC: Add pci_clk in the global_data for CPM2 processors
Matvejchikov Ilya [Wed, 30 Jul 2008 19:20:32 +0000 (23:20 +0400)]
PPC: Add pci_clk in the global_data for CPM2 processors

This patch adds pci_clk field to the global_data structure for the
processors which have CPM2 module in case the CONFIG_PCI is defined.

Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
16 years agompc85xx: Update linker scripts for Freescale boards
Kumar Gala [Wed, 30 Jul 2008 19:13:30 +0000 (14:13 -0500)]
mpc85xx: Update linker scripts for Freescale boards

* Move to using absolute addressing always.  Makes the scripts a bit more
  portable and common
* Moved .bss after the end of the image.  These allows us to have more
  room in the resulting binary image for code and data.
* Removed .text object files that aren't really needed
* Make sure _end is 4-byte aligned as the .bss init code expects this.
  (Its possible that the end of .bss isn't 4-byte aligned)

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFix compile warnings in dlmalloc
Kumar Gala [Wed, 30 Jul 2008 13:01:15 +0000 (08:01 -0500)]
Fix compile warnings in dlmalloc

The origional code was using on odd reference to get to the first
real element in av_[].  The first two elements of the array are
not used for actual bins, but for house keeping.  If we are more
explicit about how use the first few elements we can get rid of the
warnings:

dlmalloc.c: In function 'malloc_extend_top':
dlmalloc.c:1971: warning: dereferencing type-punned pointer will break strict-aliasing rules
dlmalloc.c:1999: warning: dereferencing type-punned pointer will break strict-aliasing rules
dlmalloc.c:2029: warning: dereferencing type-punned pointer will break strict-aliasing rules
...

The logic of how this code came to be is:
bin_at(0) = (char*)&(av_[2]) - 2*SIZE_SZ

SIZE_SZ is the size of pointer, and av_ is arry of pointers so:
bin_at(0) = &(av_[0])

Going from there to bin_at(0)->fd or bin_at(0)->size should be straight forward.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoppc4xx: Fix W7OLMG compile problems by adding missing LM75 defines
Stefan Roese [Wed, 30 Jul 2008 08:21:01 +0000 (10:21 +0200)]
ppc4xx: Fix W7OLMG compile problems by adding missing LM75 defines

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agocmd_bootm.c: Fix problem with '#if (CONFIG_CMD_USB)'
Stefan Roese [Wed, 30 Jul 2008 07:59:51 +0000 (09:59 +0200)]
cmd_bootm.c: Fix problem with '#if (CONFIG_CMD_USB)'

A recent patch used '#if (CONFIG_CMD_USB)' instead of
'#if defined(CONFIG_CMD_USB)'. This patch fixes this problem and makes
common/bootm.c compile again.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Markus Klotzbuecher <mk@denx.de>
16 years agoRemove unused I2C at apollon board
Kyungmin Park [Mon, 21 Jul 2008 23:01:43 +0000 (08:01 +0900)]
Remove unused I2C at apollon board

There are no I2C devices on this board.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
16 years agoat91rm9200dk, csb637: fix NAND related build problems
Wolfgang Denk [Thu, 31 Jul 2008 08:12:09 +0000 (10:12 +0200)]
at91rm9200dk, csb637: fix NAND related build problems

Tried fixing NAND support for the at91rm9200dk board; untested.
Disabled NAND support in the csb637 board config file.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Thu, 31 Jul 2008 07:02:41 +0000 (09:02 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-avr32
Wolfgang Denk [Thu, 31 Jul 2008 07:02:03 +0000 (09:02 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-avr32

16 years agoMerge branch 'hammerhead' of git://git.denx.de/u-boot-avr32
Haavard Skinnemoen [Wed, 30 Jul 2008 08:07:08 +0000 (10:07 +0200)]
Merge branch 'hammerhead' of git://git.denx.de/u-boot-avr32

16 years agoMerge branch 'eth-cleanup' of git://git.denx.de/u-boot-avr32
Haavard Skinnemoen [Wed, 30 Jul 2008 08:07:02 +0000 (10:07 +0200)]
Merge branch 'eth-cleanup' of git://git.denx.de/u-boot-avr32

16 years agoAdd support for the hammerhead (AVR32) board
Julien May [Mon, 23 Jun 2008 11:57:52 +0000 (13:57 +0200)]
Add support for the hammerhead (AVR32) board

The Hammerhead platform is built around a AVR32 32-bit microcontroller
from Atmel.  It offers versatile peripherals, such as ethernet, usb
device, usb host etc.

The board also incooperates a power supply and is a Power over Ethernet
(PoE) Powered Device (PD).

Additonally, a Cyclone III FPGA from Altera is integrated on the board.
The FPGA is mapped into the 32-bit AVR memory bus. The FPGA offers two
DDR2 SDRAM interfaces, which will cover even the most exceptional need
of memory bandwidth. Together with the onboard video decoder the board
is ready for video processing.

For more information see: http:///www.miromico.com/hammerhead

Signed-off-by: Julien May <mailinglist@miromico.ch>
[haavard.skinnemoen@atmel.com: various small fixes and adaptions]
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agofsl_i2c: Use timebase timer functions instead of get_timer()
Kumar Gala [Tue, 29 Jul 2008 17:23:49 +0000 (12:23 -0500)]
fsl_i2c: Use timebase timer functions instead of get_timer()

The current implementation of get_timer() is only really useful after we
have relocated u-boot to memory.  The i2c code is used before that as part
of the SPD DDR setup.

We actually have a bug when using the get_timer() code before relocation
because the .bss hasn't been setup and thus we could be reading/writing
a random location (probably in flash).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mips
Wolfgang Denk [Tue, 29 Jul 2008 23:24:07 +0000 (01:24 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mips

16 years agoAdder8xx: Fix CFG_MONITOR_LEN
Frank Svendsbøe [Tue, 29 Jul 2008 12:49:31 +0000 (14:49 +0200)]
Adder8xx: Fix CFG_MONITOR_LEN

Due to increased space usage, U-Boot can no longer be stored in three sectors.
The current U-Boot use just over three flash sectors (197k), and U-Boot will
become corrupt after saving environment variables. This patch adds another 64k
to CFG_MONITOR_LEN.

Signed-off-by: Frank E. Svendsbøe <frank.svendsboe@gmail.com>
16 years agoAdd OneNAND IPL related files to gitignore
Kyungmin Park [Mon, 28 Jul 2008 23:47:57 +0000 (08:47 +0900)]
Add OneNAND IPL related files to gitignore

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
16 years agoAPI: Teach the storage layer about SATA and MMC options.
Rafal Jaworowski [Mon, 28 Jul 2008 18:38:25 +0000 (20:38 +0200)]
API: Teach the storage layer about SATA and MMC options.

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Acked-by: Rafal Jaworowski <raj@semihalf.com>
16 years agoAPI: Dump contents of sector 0 in the demo application.
Rafal Jaworowski [Mon, 28 Jul 2008 18:37:48 +0000 (20:37 +0200)]
API: Dump contents of sector 0 in the demo application.

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Acked-by: Rafal Jaworowski <raj@semihalf.com>
16 years agoAPI: Correct storage enumeration routine, other minor fixes in API storage area.
Rafal Jaworowski [Mon, 28 Jul 2008 18:37:10 +0000 (20:37 +0200)]
API: Correct storage enumeration routine, other minor fixes in API storage area.

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Acked-by: Rafal Jaworowski <raj@semihalf.com>
16 years agoAPI: Fix compilation warnings in api_examples/demo.c.
Rafal Jaworowski [Mon, 28 Jul 2008 18:36:19 +0000 (20:36 +0200)]
API: Fix compilation warnings in api_examples/demo.c.

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
16 years agoFix more printf() format warnings
Jean-Christophe PLAGNIOL-VILLARD [Sun, 27 Jul 2008 15:09:43 +0000 (17:09 +0200)]
Fix more printf() format warnings

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoFix remaining CFG_CMD_ define, ifdef and comments
Jean-Christophe PLAGNIOL-VILLARD [Fri, 25 Jul 2008 13:18:16 +0000 (15:18 +0200)]
Fix remaining CFG_CMD_ define, ifdef and comments

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoAdd include for config.h in command.h.
Stefano Babic [Fri, 25 Jul 2008 06:57:40 +0000 (08:57 +0200)]
Add include for config.h in command.h.

Because the cmd_tbl_s structure depends on the configuration file, it
must be assured that config.h is included before the structure is
evaluated by the compiler. If this is not certain, it could happen
that the compiler generates structures of different size, depending
on the fact if the source file includes <config.h> before or after
<command.h>.

The effect is that u-boot crashes when tries to relocate the command
table (for ppc) or try to access to the command table for other
architectures.

The problem can happen on board-depending commands. All general
commands under /common are unaffected, because they include already
config.h before command.h.

Signed-off-by: Stefano Babic <sbabic@denx.de>
16 years agoNAND: $(obj)-qualify ecc.h in kilauea NAND boot Makefile.
Scott Wood [Wed, 23 Jul 2008 18:16:06 +0000 (13:16 -0500)]
NAND: $(obj)-qualify ecc.h in kilauea NAND boot Makefile.

This fixes building out-of-tree.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoFix warnings if compiling with IDE support.
Heiko Schocher [Wed, 23 Jul 2008 05:30:46 +0000 (07:30 +0200)]
Fix warnings if compiling with IDE support.

cmd_ide.c:827: Warnung: weak declaration of `ide_outb' after first use results in unspecified behavior
cmd_ide.c:839: Warnung: weak declaration of `ide_inb' after first use results in unspecified behavior

Signed-off-by: Heiko Schocher <hs@denx.de>
16 years agoRemoved support for the adsvix board.
Adrian Filipi [Tue, 22 Jul 2008 18:28:11 +0000 (14:28 -0400)]
Removed support for the adsvix board.

Support for the adsvix was originally provided by Applied Data
Systems (ADS), inc., now EuroTech, Inc.
The board never shipped aside from some sample boards.

Signed-off-by: Adrian Filipi <adrian.filipi@eurotech.com>
16 years agoARM: set GD_FLG_RELOC for boards skipping relocation to RAM
Remy Bohmer [Tue, 22 Jul 2008 14:22:11 +0000 (16:22 +0200)]
ARM: set GD_FLG_RELOC for boards skipping relocation to RAM

If CONFIG_SKIP_RELOCATE_UBOOT is set the flag GD_FLG_RELOC is usually
never set, because relocation to RAM is actually never done by U-boot
itself. However, several pieces of code check if this flag is set at
some time.

So, to make sure this flag is set on boards skipping relocation, this
is added to the initialisation of U-boot at a moment where it is safe
to do so.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
16 years agofsl-i2c: fix writes to data segment before relocation
Timur Tabi [Mon, 21 Jul 2008 19:26:23 +0000 (14:26 -0500)]
fsl-i2c: fix writes to data segment before relocation

Prevent i2c_init() in fsl_i2c.c from writing to the data segment before
relocation.  Commit d8c82db4 added the ability for i2c_init() to program the
I2C bus speed and save the value in i2c_bus_speed[], which is a global
variable.  It is an error to write to the data segment before relocation,
which is what i2c_init() does when it stores the bus speed in i2c_bus_speed[].

Signed-off-by: Timur Tabi <timur@freescale.com>
16 years agomips: Fix baudrate divisor computation on alchemy cpus
Wolfgang Ocker [Mon, 28 Jul 2008 14:56:51 +0000 (16:56 +0200)]
mips: Fix baudrate divisor computation on alchemy cpus

Use CFG_MIPS_TIMER_FREQ when computing the baudrate divisor
on alchemy cpus.

Signed-off-by: Wolfgang Ocker <weo@reccoware.de>
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years agoMerge branch 'format-warnings' of git://git.denx.de/u-boot-avr32
Haavard Skinnemoen [Thu, 24 Jul 2008 10:42:31 +0000 (12:42 +0200)]
Merge branch 'format-warnings' of git://git.denx.de/u-boot-avr32

16 years agoMoved initialization of AVR32 Ethernet controllers to board_eth_init()
Ben Warren [Sat, 5 Jul 2008 07:08:48 +0000 (00:08 -0700)]
Moved initialization of AVR32 Ethernet controllers to board_eth_init()

Renamed initialization functions for atngw100 and atstk1000.
Removed initializations for these boards from net/eth.c

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agospi flash: Fix printf() format warnings
Haavard Skinnemoen [Wed, 23 Jul 2008 08:55:46 +0000 (10:55 +0200)]
spi flash: Fix printf() format warnings

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agoatmel_mci: Fix printf() format warnings
Haavard Skinnemoen [Wed, 23 Jul 2008 08:55:31 +0000 (10:55 +0200)]
atmel_mci: Fix printf() format warnings

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agoavr32: Fix printf() format warnings
Haavard Skinnemoen [Wed, 23 Jul 2008 08:55:15 +0000 (10:55 +0200)]
avr32: Fix printf() format warnings

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agoavr32: asm/io.h needs asm/types.h
Haavard Skinnemoen [Wed, 23 Jul 2008 08:52:19 +0000 (10:52 +0200)]
avr32: asm/io.h needs asm/types.h

map_physmem() takes a phys_addr_t as parameter. This type is defined in
asm/types.h, so we need to include that file.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agomicroblaze: Fix printf() format issues
Michal Simek [Thu, 17 Jul 2008 10:25:46 +0000 (12:25 +0200)]
microblaze: Fix printf() format issues

Signed-off-by: Michal Simek <monstr@monstr.eu>
16 years agoRemove unused code from lib_arm/bootm.c
Gururaja Hebbar K R [Thu, 17 Jul 2008 01:57:51 +0000 (07:27 +0530)]
Remove unused code from lib_arm/bootm.c

Signed-off-by: Gururaja Hebbar <gururajakr@sanyo.co.in>
16 years agotqm85xx: Demystify 'DK: !!!' comment
Detlev Zundel [Wed, 16 Jul 2008 16:56:45 +0000 (18:56 +0200)]
tqm85xx: Demystify 'DK: !!!' comment

Signed-off-by: Detlev Zundel <dzu@denx.de>
16 years ago83xx/85xx/86xx: Add LTEDR local bus definitions
Detlev Zundel [Wed, 16 Jul 2008 16:56:44 +0000 (18:56 +0200)]
83xx/85xx/86xx: Add LTEDR local bus definitions

Signed-off-by: Detlev Zundel <dzu@denx.de>
16 years agoserial_xuartlite.c: fix compiler warnings
Ricardo Ribalda Delgado [Wed, 16 Jul 2008 14:22:32 +0000 (16:22 +0200)]
serial_xuartlite.c: fix compiler warnings

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
16 years agoPOST: Add disable interrupts in some of the missing CPU POST tests
Stefan Roese [Fri, 18 Jul 2008 09:03:35 +0000 (11:03 +0200)]
POST: Add disable interrupts in some of the missing CPU POST tests

Some CPU POST tests did not disable the interrupts while running. This
seems to be necessary to protect this self modifying code.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoide: Use CFG_64BIT_LBA instead of CFG_64BIT_STRTOUL
Stefan Roese [Fri, 18 Jul 2008 08:43:24 +0000 (10:43 +0200)]
ide: Use CFG_64BIT_LBA instead of CFG_64BIT_STRTOUL

This is needed for boards that define CFG_64BIT_STRTOUL but don't define
CFG_64BIT_LBA.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoPOST PPC4xx/spr IVPR only if PPC440
Niklaus Giger [Fri, 18 Jul 2008 09:22:23 +0000 (11:22 +0200)]
POST PPC4xx/spr IVPR only if PPC440

The SPR IVPR register is only present (as far as I know) for
processors with a PPC440 core.

Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
Acked-by: Stefan Roese <sr@denx.de>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Sun, 20 Jul 2008 20:55:32 +0000 (22:55 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

16 years agoppc4xx: Enable 64bit printf format on 440/460 platforms
Stefan Roese [Fri, 18 Jul 2008 08:42:29 +0000 (10:42 +0200)]
ppc4xx: Enable 64bit printf format on 440/460 platforms

This patch defines CFG_64BIT_VSPRINTF and CFG_64BIT_STRTOUL for all
440/460 platforms. This may be needed since those platforms support
36bit physical address space.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoppc4xx: Fix incorrect MODTx setup for some DIMM configurations
Stefan Roese [Fri, 18 Jul 2008 13:57:23 +0000 (15:57 +0200)]
ppc4xx: Fix incorrect MODTx setup for some DIMM configurations

This patch fixes a problem with incorrect MODTx (On Die Termination)
setup for a configuration with multiple DIMM's and multiple ranks.
Without this change Katmai was unable to boot Linux with DDR2 frequency
>= 533MHz and mem>=3GB. With this patch Katmai successfully boots Linux
with DDR2 frequency = 640MHz and mem=4GB.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agocfi_flash: fix flash on BE machines with CFG_WRITE_SWAPPED_DATA
Sebastian Siewior [Wed, 16 Jul 2008 18:04:49 +0000 (20:04 +0200)]
cfi_flash: fix flash on BE machines with CFG_WRITE_SWAPPED_DATA

This got broken by commits 93c56f212c
 [cfi_flash: support of long cmd in U-boot.]

That command needs to be in little endian format on BE machines
with CFG_WRITE_SWAPPED_DATA. Without this patch, the command 0xf0
gets saved on stack as 0x00 00 00 f0 and 0x00 gets written into
the cmdbuf in case portwidth = chipwidth = 8bit.

Cc: Alexey Korolev <akorolev@infradead.org>
Cc: Vasiliy Leonenko <vasiliy.leonenko@mail.ru>
Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
16 years agoPrepare v1.3.4-rc1: Code cleanup, update CHANGELOG, sort Makefile v1.3.4-rc1
Wolfgang Denk [Tue, 15 Jul 2008 20:22:44 +0000 (22:22 +0200)]
Prepare v1.3.4-rc1: Code cleanup, update CHANGELOG, sort Makefile

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoRound the serial port clock divisor value returned by calc_divisor()
Hugo Villeneuve [Tue, 15 Jul 2008 15:23:02 +0000 (11:23 -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>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
16 years agoFix DHCP protocol so U-Boot does not respond too early
Robin Getz [Tue, 15 Jul 2008 19:44:46 +0000 (21:44 +0200)]
Fix DHCP protocol so U-Boot does not respond too early
on the network with it's offered IP number; it should not reply until
after it has received a DHCP ACK message. Also ensures that U-Boot
does it's DHCPREQUEST as broadcast (per RFC 2131).

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agocfi_flash: make the command u32 only
Sebastian Siewior [Tue, 15 Jul 2008 11:35:23 +0000 (13:35 +0200)]
cfi_flash: make the command u32 only

This got changed by commit 93c56f212c
[cfi_flash: support of long cmd in U-boot.]

Long is the wrong type because it will behave differently on 64bit
machines in a way that is probably not expected. u32 should be
enough.

Cc: Alexey Korolev <akorolev@infradead.org>
Cc: Vasiliy Leonenko <vasiliy.leonenko@mail.ru>
Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
16 years agotools/gitignore: update to all generated files
Jean-Christophe PLAGNIOL-VILLARD [Mon, 14 Jul 2008 21:48:41 +0000 (23:48 +0200)]
tools/gitignore: update to all generated files

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc5xxx
Wolfgang Denk [Tue, 15 Jul 2008 19:39:43 +0000 (21:39 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc5xxx

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc86xx
Wolfgang Denk [Tue, 15 Jul 2008 19:39:07 +0000 (21:39 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc86xx

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Wolfgang Denk [Tue, 15 Jul 2008 19:38:21 +0000 (21:38 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-sh

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Tue, 15 Jul 2008 19:37:23 +0000 (21:37 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

16 years agompc5xxx: Add MVBC_P board support
Andre Schwarz [Wed, 9 Jul 2008 16:30:44 +0000 (18:30 +0200)]
mpc5xxx: Add MVBC_P board support

The MVBC_P is a MPC5200B based camera system with Intel Gigabit ethernet
controller (using e1000) and custom Altera Cyclone-II FPGA on PCI.

Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
16 years agoUpdate Freescale sys_eeprom.c to handle CCID formats
Timur Tabi [Thu, 19 Jun 2008 22:56:11 +0000 (17:56 -0500)]
Update Freescale sys_eeprom.c to handle CCID formats

Update the sys_eeprom.c file to handle both NXID and CCID EEPROM formats.  The
NXID format replaces the older CCID format, but it's important to support both
since most boards out there still use the CCID format.  This change is in
preparation for using one file to handle both formats.  This will also unify
EEPROM support for all Freescale 85xx and 86xx boards.

Also update the 86xx board header files to use the standard CFG_I2C_EEPROM_ADDR
instead of ID_EEPROM_ADDR.

Signed-off-by: Timur Tabi <timur@freescale.com>
16 years agopci: sh: Add pci_skip_dev and pci_print_dev function
Nobuhiro Iwamatsu [Fri, 11 Jul 2008 08:22:43 +0000 (17:22 +0900)]
pci: sh: Add pci_skip_dev and pci_print_dev function

Add function of new PCI, pci_skip_dev and pci_print_dev.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agoClean up INIT_RAM options
Andy Fleming [Tue, 15 Jul 2008 01:29:07 +0000 (20:29 -0500)]
Clean up INIT_RAM options

The L2_INIT_RAM option was unused, and recent changes to the TLB code
meant that the INIT_RAM TLBs weren't being cleared out.  In order to reduce
the amount of mapped space attached to nothing, we change things so the TLBs
get cleared.

Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agoRemove fake flash bank from 8544 DS
Andy Fleming [Tue, 15 Jul 2008 01:26:57 +0000 (20:26 -0500)]
Remove fake flash bank from 8544 DS

The fake flash bank was generating errors for anyone who didn't have a
PromJET hooked up to the board.  As that constitutes the vast majority of
users, we remove it.

Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agoMPC8544DS: Add ATI Video card support
Kumar Gala [Mon, 14 Jul 2008 19:07:03 +0000 (14:07 -0500)]
MPC8544DS: Add ATI Video card support

Add support for using a PCIe ATI Video card on PCIe2.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago85xx: Add some L1/L2 SPR register definitions
Kumar Gala [Mon, 14 Jul 2008 19:07:02 +0000 (14:07 -0500)]
85xx: Add some L1/L2 SPR register definitions

Add new L1/L2 SPRs related to e500mc cache config and control.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoMPC8544DS: Report board id, board version and fpga version.
Kumar Gala [Mon, 14 Jul 2008 19:07:01 +0000 (14:07 -0500)]
MPC8544DS: Report board id, board version and fpga version.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago85xx: Cleanup L2 cache size detection
Kumar Gala [Mon, 14 Jul 2008 19:07:00 +0000 (14:07 -0500)]
85xx: Cleanup L2 cache size detection

The L2 size detection code was a bit confusing and we kept having to add
code to it to handle new processors.  Change the sense of detection so we
look for the older processors that aren't changing.

Also added support for 1M cache size on 8572.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agosbc8560: enable CONFIG_OF_LIBFDT by default
Paul Gortmaker [Fri, 11 Jul 2008 19:33:08 +0000 (15:33 -0400)]
sbc8560: enable CONFIG_OF_LIBFDT by default

Make the default build for the sbc8560 board be powerpc
capable with libfdt support.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
16 years agoFix indentation for default boot environment variables
Andy Fleming [Tue, 15 Jul 2008 01:04:40 +0000 (20:04 -0500)]
Fix indentation for default boot environment variables

This was proposed by Paul Gortmaker in response to Wolfgang's comments on
similar #defines in sbc8560.h.

Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agosbc8560: add default fdt values
Paul Gortmaker [Fri, 11 Jul 2008 19:33:07 +0000 (15:33 -0400)]
sbc8560: add default fdt values

Add in the default fdt settings and the typical EXTRA_ENV
settings as borrowed from the mpc8560ads.  Fix a couple
of stale references to the mpc8560ads dating back to the
original clone/fork.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
16 years agosbc8560: add in ft_board_setup()
Paul Gortmaker [Fri, 11 Jul 2008 19:33:06 +0000 (15:33 -0400)]
sbc8560: add in ft_board_setup()

Add in for the sbc8560, the ft_board_setup() routine, based on what is
in use for the Freescale MPC8560ADS board.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>