]> git.sur5r.net Git - u-boot/log
u-boot
14 years agocmd_i2c: moved mispositioned comment for i2c md
Frans Meulenbroeks [Fri, 26 Mar 2010 08:46:39 +0000 (09:46 +0100)]
cmd_i2c: moved mispositioned comment for i2c md

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
14 years agocmd_i2c.c: declared local functions as static
Frans Meulenbroeks [Fri, 26 Mar 2010 08:46:38 +0000 (09:46 +0100)]
cmd_i2c.c: declared local functions as static

Declared all functions that were not called outside the file as static

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
14 years agoMerge remote branch 'origin/master' into next
Wolfgang Denk [Mon, 29 Mar 2010 10:33:43 +0000 (12:33 +0200)]
Merge remote branch 'origin/master' into next

14 years agoMerge branch 'next' of git://www.denx.de/git/u-boot-cfi-flash into next
Wolfgang Denk [Mon, 29 Mar 2010 10:33:16 +0000 (12:33 +0200)]
Merge branch 'next' of git://www.denx.de/git/u-boot-cfi-flash into next

14 years agoPrepare 2010.03-rc3 v2010.03-rc3
Wolfgang Denk [Sat, 27 Mar 2010 23:25:14 +0000 (00:25 +0100)]
Prepare 2010.03-rc3

Update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agocmd_usb.c: print debug messages only when DEBUG is defined
Wolfgang Denk [Thu, 25 Mar 2010 13:07:23 +0000 (14:07 +0100)]
cmd_usb.c: print debug messages only when DEBUG is defined

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoml300: remove support for broken, orphaned board
Wolfgang Denk [Wed, 24 Mar 2010 11:19:19 +0000 (12:19 +0100)]
ml300: remove support for broken, orphaned board

The ml300 board has a number of issues, but nobody cares about this
long-orphaned board any more.  Remove it.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Michal Simek <monstr@monstr.eu>
14 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sat, 27 Mar 2010 23:15:20 +0000 (00:15 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

14 years agomkimage: fix Segmentation Fault when run without "-n name" option
Wolfgang Denk [Sat, 27 Mar 2010 22:37:46 +0000 (23:37 +0100)]
mkimage: fix Segmentation Fault when run without "-n name" option

The restructuring of the mkimage command in commit 89a4d6b1 ("tools:
mkimage: split code into core, default and FIT image specific")
introduced a bug that caused mkimage to segfault when run without
"-n name" option.  Initialize the imagename entry to prevent that.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-cfi-flash
Wolfgang Denk [Sat, 27 Mar 2010 23:11:16 +0000 (00:11 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-cfi-flash

14 years agoMerge branch 'next' of git://git.denx.de/u-boot-coldfire into next
Wolfgang Denk [Sat, 27 Mar 2010 23:04:18 +0000 (00:04 +0100)]
Merge branch 'next' of git://git.denx.de/u-boot-coldfire into next

14 years agocfi flash: add status polling method for amd flash
Thomas Chou [Fri, 26 Mar 2010 00:17:00 +0000 (08:17 +0800)]
cfi flash: add status polling method for amd flash

This patch adds status polling method to offer an alternative to
data toggle method for amd flash chips.

This patch is needed for nios2 cfi flash interface, where the bus
controller performs 4 bytes read cycles for a single byte read
instruction. The data toggle method can not detect chip busy
status correctly. So we have to poll DQ7, which will be inverted
when the chip is busy.

This feature is enabled with the config def,
CONFIG_SYS_CFI_FLASH_STATUS_POLL

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agocfi_flash: precision and underflow problem in tout calculation
Renato Andreola [Wed, 24 Mar 2010 15:00:47 +0000 (23:00 +0800)]
cfi_flash: precision and underflow problem in tout calculation

With old configuration it could happen tout=0 if CONFIG_SYS_HZ<1000.

Signed-off-by: Renato Andreola <renato.andreola@imagos.it>
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoColdFire: Fix m54455EVB save environment bug
TsiChung Liew [Tue, 16 Mar 2010 17:39:36 +0000 (12:39 -0500)]
ColdFire: Fix m54455EVB save environment bug

The ATMEL flash does not have buffer write feature. Assgined
buffer_size = 1, so that when there is a write to the flash
will not use buffer write function.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: Fix incorrect M5253DEMO default environment
TsiChung Liew [Tue, 16 Mar 2010 00:39:21 +0000 (19:39 -0500)]
ColdFire: Fix incorrect M5253DEMO default environment

The flash location is at 0xff800000, not 0

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: Cache update for all platforms
TsiChung Liew [Fri, 12 Mar 2010 04:12:53 +0000 (22:12 -0600)]
ColdFire: Cache update for all platforms

The CF will call cache functions in lib_m68/cache.c and the
cache settings are defined in platform configuration file.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: Fix SDRAM size on M5208evb rev E
TsiChung Liew [Thu, 11 Mar 2010 00:50:22 +0000 (18:50 -0600)]
ColdFire: Fix SDRAM size on M5208evb rev E

The proper SDRAM size is 32MB not 64MB

Signed-off-by: Jingchang Lu <b22599@freescale.com>
14 years agoColdFire: Misc update for M53017
TsiChung Liew [Thu, 11 Mar 2010 00:24:07 +0000 (18:24 -0600)]
ColdFire: Misc update for M53017

Reside Ethernet buffer descriptors in SRAM instead of DRAM. Add
CONFIG_SYS_TX_ETH_BUFFER in platform configuration file. Update
DRAM control and SRAM control register setting. Update cache
setting where size does not write to proper region.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
14 years agoColdFire: Add CPU compile flag for mcf5301x and mcf532x
TsiChung Liew [Wed, 10 Mar 2010 23:32:13 +0000 (17:32 -0600)]
ColdFire: Add CPU compile flag for mcf5301x and mcf532x

Add CPU compile flag -mcpu=53015 in cpu/config.mk

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: Update Extra environment Data for M5275EVB
TsiChung Liew [Wed, 10 Mar 2010 22:33:03 +0000 (16:33 -0600)]
ColdFire: Update Extra environment Data for M5275EVB

Provide extra environment Data. Remove default network
address and MAC address.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: M5271EVB DRAM Bring up issue
TsiChung Liew [Wed, 10 Mar 2010 22:14:01 +0000 (16:14 -0600)]
ColdFire: M5271EVB DRAM Bring up issue

Fix proper portsize: The register for portsize is either 00b, 01b,
or 1xb. The value that previous assigned is 32d.
Fix DRAM bring up: insert asm("nop") for every DRAM register setup

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: Update M5253DEMO configuration file
TsiChung Liew [Wed, 10 Mar 2010 17:56:36 +0000 (11:56 -0600)]
ColdFire: Update M5253DEMO configuration file

Fix incorrect default environment for flash erase or protect
range. Change offset from 0 to 0xff80nnnn. Remove default
ethernet setup and MAC address.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: Relocate vector table - mcf5445x
TsiChung Liew [Thu, 11 Mar 2010 21:04:21 +0000 (15:04 -0600)]
ColdFire: Relocate vector table - mcf5445x

Newer ColdFire processors family boot from address 0 instead of
0xFFnn_nnnn. When the boot flash base chip select is set at new
location instead of 0, an un-predictable error will occur if
there is an vector being trigger and refer it to an invalid
address or the vector table handler is not existed at address
0.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: Update uart_port_conf in serial driver
TsiChung Liew [Wed, 10 Mar 2010 01:24:43 +0000 (19:24 -0600)]
ColdFire: Update uart_port_conf in serial driver

Provide proper port passing from serial_init to uart_part_conf.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: Update processors' serial port configuration
TsiChung Liew [Wed, 10 Mar 2010 01:17:52 +0000 (19:17 -0600)]
ColdFire: Update processors' serial port configuration

Provide parameter passing to uart_port_config(). Update port
configuration - un-mask it before enable the bits.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agoColdFire: Correct bit definition
TsiChung Liew [Wed, 10 Mar 2010 00:32:16 +0000 (18:32 -0600)]
ColdFire: Correct bit definition

Use correct definition for _MASK and _UNMASK. It was combined in
the previous used and causes confusion.

Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
14 years agofix cmd_bdinfo.c:354: warning: 'print_eth' defined but not used
Philippe De Muyter [Tue, 22 Sep 2009 04:20:29 +0000 (22:20 -0600)]
fix cmd_bdinfo.c:354: warning: 'print_eth' defined but not used

This fixes the following warnings when running MAKEALL for coldfire :
cmd_bdinfo.c:354: warning: 'print_eth' defined but not used

Signed-off-by: Philippe De Muyter <phdm at macqel.be>
14 years agoAdding EP2500 MCF5282 board [PATCH]
Michael Durrant [Thu, 21 Jan 2010 01:33:02 +0000 (19:33 -0600)]
Adding EP2500 MCF5282 board [PATCH]

Mercury-EP2500.patch
   - added Mercury's EP2500 board uses the mcf5282 processor

CREDITS.patch

Signed-off-by: David Wu <davidwu@arcturusnetworks.com>
Signed-off-by: Michael Durrant <mdurrant@arcturusnetworks.com>
14 years agoadd block write function to spartan3 slave serial load
Wolfgang Wegner [Fri, 30 Oct 2009 15:55:02 +0000 (16:55 +0100)]
add block write function to spartan3 slave serial load

Using seperate function calls for each bit-bang of slave serial
load can be painfully slow. This patch adds the possibility to
supply a block write function that loads the complete block of
data in one call (like it can already be done with Altera FPGAs).
On an MCF5373L (240 MHz) loading an XC3S4000 this reduces the load
time from around 15 seconds to around 3 seconds

Signed-off-by: Wolfgang Wegner <w.wegner at astro-kom.de>
14 years agoadd ASTRO MCF5373L board
Wolfgang Wegner [Mon, 25 Jan 2010 10:27:44 +0000 (11:27 +0100)]
add ASTRO MCF5373L board

This patch adds support for ASTRO board(s) based on MCF5373L.

Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
14 years agoppc4xx fix unstable 440EPx bootstrap options
Rupjyoti Sarmah [Wed, 24 Mar 2010 11:22:02 +0000 (16:52 +0530)]
ppc4xx fix unstable 440EPx bootstrap options

440EPx fixed bootstrap options A, B, D, and E sets PLL FWDVA to a value = 1.
This results in the PLLOUTB being greater than the CPU clock frequency
resulting unstable 440EPx operation resulting in various software hang
conditions.

This patch reprograms the FWDVA satisfying the requirement of setting FWDVB
to a value greater than 1 while using one of the four deafult bootstrap options.

Signed-off-by: Rupjyoti Sarmah <rsarmah@amcc.com>
Acked-by : Victor Gallardo <vgallardo@appliedmicro.com>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Wolfgang Denk [Wed, 24 Mar 2010 13:11:53 +0000 (14:11 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-video

14 years agoat91: Get rid of some warnings when building for otc570
Matthias Fuchs [Wed, 24 Mar 2010 09:16:20 +0000 (10:16 +0100)]
at91: Get rid of some warnings when building for otc570

The soft-i2c code for AT91 defines I2C_SOFT_DECLARATIONS
for direct access by dereferencing a pio pointer.
The OTC570 platform uses the AT91 gpio API so it does not
need the pio variable.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
14 years agolcd: make 16bpp work
Alessandro Rubini [Sat, 13 Mar 2010 16:44:08 +0000 (17:44 +0100)]
lcd: make 16bpp work

Support for 16bpp was supposed to be in the code but was not working.
This makes it work and has been tested in the nhk8815 board.

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
14 years agocmd_nand: show nand scrub confirmation character
Florian Fainelli [Sat, 20 Mar 2010 18:02:58 +0000 (19:02 +0100)]
cmd_nand: show nand scrub confirmation character

When issuing a nand scrub command, the entered character is not displayed
this may be confusing. This patch makes the input character being
displayed if it is a 'y' so that an user knows he is about to scrub his
nand.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
14 years agoat91: add hwecc method for nand
Nikolay Petukhov [Fri, 19 Mar 2010 05:49:27 +0000 (10:49 +0500)]
at91: add hwecc method for nand

This is a patch to use the hardware ECC controller of
the AT91SAM9260 for the AT91 nand. Taken from the kernel 2.6.33.

Signed-off-by: Nikolay Petukhov <Nikolay.Petukhov@gmail.com>
14 years agoTI: Davinci: NAND Driver Cleanup
Cyril Chemparathy [Wed, 17 Mar 2010 14:03:10 +0000 (10:03 -0400)]
TI: Davinci: NAND Driver Cleanup

Modified to use IO accessor routines consistently.  Eliminated volatile usage
to keep checkpatch.pl happy.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
14 years agoMerge remote branch 'origin/master' into next
Wolfgang Denk [Mon, 22 Mar 2010 22:27:24 +0000 (23:27 +0100)]
Merge remote branch 'origin/master' into next

14 years agoPrepare v2010.03-rc2 v2010.03-rc2
Wolfgang Denk [Mon, 22 Mar 2010 22:25:00 +0000 (23:25 +0100)]
Prepare v2010.03-rc2

Update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoep93xx timer: Fix resolution of get_ticks()
Matthias Kaehlcke [Tue, 9 Mar 2010 21:13:33 +0000 (22:13 +0100)]
ep93xx timer: Fix resolution of get_ticks()

ep93xx timer: Make get_ticks() return a value in CONFIG_SYS_HZ resolution,
as announced by get_tbclk()

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
14 years agoep93xx timer: Fix possible overflow in usecs_to_ticks()
Matthias Kaehlcke [Tue, 9 Mar 2010 21:13:20 +0000 (22:13 +0100)]
ep93xx timer: Fix possible overflow in usecs_to_ticks()

ep93xx timer: Use 64-bit values in usecs_to_ticks() in order to avoid
overflows in intermediate values

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
14 years agoMerge remote branch 'origin/master' into next
Wolfgang Denk [Sun, 21 Mar 2010 21:45:36 +0000 (22:45 +0100)]
Merge remote branch 'origin/master' into next

14 years agofdt_support: add partitions fixup in mtd node
Anatolij Gustschin [Tue, 16 Mar 2010 16:10:05 +0000 (17:10 +0100)]
fdt_support: add partitions fixup in mtd node

Allow overwriting defined partitions in the device tree blob
using partition info defined in the 'mtdparts' environment
variable.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Gerald Van Baren <vanbaren@cideas.com>
14 years agocmd history: Match history buffer size to console buffer
John Schmoller [Fri, 12 Mar 2010 15:49:24 +0000 (09:49 -0600)]
cmd history: Match history buffer size to console buffer

Match history buffer size to console buffer size. History buffer size
was hard coded to 256, artificially limiting the command buffer size.
The history buffer now tracks CONFIG_SYS_CBSIZE.

Signed-off-by: John Schmoller <jschmoller@xes-inc.com>
14 years agoconsole: Fix console buffer overrun
John Schmoller [Fri, 12 Mar 2010 15:49:23 +0000 (09:49 -0600)]
console: Fix console buffer overrun

When CONFIG_SYS_CBSIZE equals MAX_CMDBUF_SIZE, a command string of
maximum length will overwrite part of the history buffer, causing the
board to die. Expand the console_buffer and hist_lines buffer by one
character each to hold the missing NULL char.

Signed-off-by: John Schmoller <jschmoller@xes-inc.com>
14 years agoPOST: add progress API
Michael Zaidman [Mon, 1 Mar 2010 09:47:36 +0000 (11:47 +0200)]
POST: add progress API

Add POST progress API implemented as weak calls before and after
each call to the POST test callback in the post_run_single routine
of the post.c file.

Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
Acked-by: Detlev Zundel <dzu@denx.de>
14 years agocmd_setexpr: allow memory addresses in expressions
Frans Meulenbroeks [Fri, 26 Feb 2010 13:00:19 +0000 (14:00 +0100)]
cmd_setexpr: allow memory addresses in expressions

This patch add functionality to use memory addresses in expressions.
This increases the power of expressions substantially

It adheres to the standard convemtions: memory addresses can be given
in the format *address (e.g. *1000)

Rationale for this change is that it allows masking off bits from a
byte that is obtained by reading data from e.g. i2c.

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Fix warning: control reaches end of non-void function
Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agocmd_i2c.c: added i2c read to memory function
Frans Meulenbroeks [Thu, 25 Feb 2010 09:12:16 +0000 (10:12 +0100)]
cmd_i2c.c: added i2c read to memory function

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
14 years agocmd_i2c.c: sorted commands alphabetically
Frans Meulenbroeks [Thu, 25 Feb 2010 09:12:15 +0000 (10:12 +0100)]
cmd_i2c.c: sorted commands alphabetically

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
14 years agocmd_i2c.c: reworked subcommand handling
Frans Meulenbroeks [Thu, 25 Feb 2010 09:12:14 +0000 (10:12 +0100)]
cmd_i2c.c: reworked subcommand handling

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
14 years agocmd_bootm.c: made subcommand array static
Frans Meulenbroeks [Thu, 25 Feb 2010 09:12:13 +0000 (10:12 +0100)]
cmd_bootm.c: made subcommand array static

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
14 years agocmd_i2c.c: reduced subaddress length to 3 bytes
Frans Meulenbroeks [Thu, 25 Feb 2010 09:12:12 +0000 (10:12 +0100)]
cmd_i2c.c: reduced subaddress length to 3 bytes

according to some of the comments the subaddress length is 1 or 2, but we are being
prepared for the case it becomes 3. However the code also accepted 4.
This repairs this by changing the constand 4 to 3.

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
14 years agonios2: Added support to YANU UART
Renato Andreola [Tue, 16 Mar 2010 20:01:29 +0000 (16:01 -0400)]
nios2: Added support to YANU UART

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
14 years agonios2: use generic unaligned.h
Thomas Chou [Tue, 16 Mar 2010 16:12:48 +0000 (12:12 -0400)]
nios2: use generic unaligned.h

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
14 years agompc5xxx: Remove all references to MGT5100
Detlev Zundel [Fri, 12 Mar 2010 09:01:12 +0000 (10:01 +0100)]
mpc5xxx: Remove all references to MGT5100

We do not support a processor that never reached a real customer.

Signed-off-by: Detlev Zundel <dzu@denx.de>
14 years agovideo: Fix console display when splashscreen is used
Matthias Weisser [Tue, 12 Jan 2010 11:06:31 +0000 (12:06 +0100)]
video: Fix console display when splashscreen is used

If a splashscreen is used the console scrolling used the
scroll size as needed when a logo was displayed. This
patch sets the scroll size to the whole screen if
a splashscreen is shown.

Signed-off-by: Matthias Weisser <matthias.weisser@graf-syteco.de>
14 years agocorrect a syntax typo in at91_matrix.h
Asen Dimov [Thu, 18 Mar 2010 11:41:47 +0000 (13:41 +0200)]
correct a syntax typo in at91_matrix.h

Signed-off-by: Asen Dimov <dimov@ronetix.at>
14 years agoenv: fix endian ordering in crc table
Jeff Angielski [Wed, 17 Mar 2010 19:09:26 +0000 (15:09 -0400)]
env: fix endian ordering in crc table

The crc table was being built as little endian for big endian
targets.  This would cause fw_printenv to always fail with
"Warning: Bad CRC, using default environment" messages.

Signed-off-by: Jeff Angielski <jeff@theptrgroup.com>
Acked-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
14 years agompc5121: cpu/mpc512x/diu.c: fix warnings
Anatolij Gustschin [Tue, 16 Mar 2010 16:10:08 +0000 (17:10 +0100)]
mpc5121: cpu/mpc512x/diu.c: fix warnings

Fix warnings while compiling with CONFIG_VIDEO enabled:

diu.c: In function 'video_hw_init':
diu.c:158: warning: 'return' with no value, in function returning non-void
diu.c:162: warning: format '%ld' expects type 'long int', but argument 6 has type 'int'
diu.c:162: warning: format '%ld' expects type 'long int', but argument 7 has type 'int'

Signed-off-by: Anatolij Gustschin <agust@denx.de>
14 years agoconsole.c: fix problem with splashimage
Anatolij Gustschin [Tue, 16 Mar 2010 14:29:33 +0000 (15:29 +0100)]
console.c: fix problem with splashimage

If a board uses cfb_console driver and splash image
and also defines CONFIG_SILENT_CONSOLE, the user is
locked out even if "silent" is not set. It is not
possible to get any output, neither on vga console
device nor on serial console after redirecting the
output to the serial console, since the GD_FLG_SILENT
flag remains set.

Fix the problem by redirecting the output from frame
buffer to serial console if splashimage is used.
Only suppress the output if "silent" environment
variable was set and don't set the GD_FLG_SILENT
flag arbitrarily.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
14 years agomod change 755 => 644 for multiple files
Thomas Weber [Sat, 13 Mar 2010 22:14:45 +0000 (23:14 +0100)]
mod change 755 => 644 for multiple files

I executed 'find . -name "*.[chS]" -perm 755 -exec chmod 644 {} \;'

Signed-off-by: Thomas Weber <swirl@gmx.li>
Add some more: neither Makefile nor config.mk need execute permissions.
Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agomxcmmc: fix warnings due to access 32 bit registers with 16 bit accessors
Stefano Babic [Sat, 13 Mar 2010 20:09:00 +0000 (21:09 +0100)]
mxcmmc: fix warnings due to access 32 bit registers with 16 bit accessors

Some registers of the mxcmmc driver were accessed using
16 bit accessor functions, because only the LSB is
significant. This is not needed and generates
warnings.

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoTFTP: allow for adjustable retransmission timout
Wolfgang Denk [Sun, 17 Jan 2010 22:55:53 +0000 (23:55 +0100)]
TFTP: allow for adjustable retransmission timout

So far, TFTP negotiated a fixed retransmission timeout of 5 seconds.
In some cases (busy networks, slow TFTP servers) this caused very
slow transfers. A new environment variable "tftptimeout" allows to
set this timeout. Lowering this value may make downloads succeed
faster in networks with high packet loss rates or with unreliable
TFTP servers.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
14 years agoFix PCI_BASE_ADDRESS_5 handling in pci_hose_config_device()
Wolfgang Denk [Tue, 9 Mar 2010 13:27:25 +0000 (14:27 +0100)]
Fix PCI_BASE_ADDRESS_5 handling in pci_hose_config_device()

Signed-off-by: FUJITA Kazutoshi <fujita@soum.co.jp>
Signed-off-by: <wd@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
14 years agocmd_mmc remove \n
Frans Meulenbroeks [Thu, 25 Feb 2010 13:03:08 +0000 (14:03 +0100)]
cmd_mmc remove \n

This patch removes the \n after the help message for mmcinfo.
This resulted in an empty line being displayed after the mmcinfo line
when the help command was given.

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
14 years agonios2: Added support to YANU UART
Renato Andreola [Tue, 16 Mar 2010 20:01:29 +0000 (16:01 -0400)]
nios2: Added support to YANU UART

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
14 years agonios2: use generic unaligned.h
Thomas Chou [Tue, 16 Mar 2010 16:12:48 +0000 (12:12 -0400)]
nios2: use generic unaligned.h

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Wolfgang Denk [Sat, 13 Mar 2010 23:58:30 +0000 (00:58 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-video

14 years agoasm-blackfin/unaligned.h: add for zlib code
Mike Frysinger [Thu, 21 Jan 2010 10:01:15 +0000 (05:01 -0500)]
asm-blackfin/unaligned.h: add for zlib code

The new zlib code wants asm/unaligned.h, so have the Blackfin version pull
in the asm-generic/unaligned.h.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoasm-generic/unaligned.h: dynamic default unaligned accesses
Mike Frysinger [Thu, 21 Jan 2010 10:01:14 +0000 (05:01 -0500)]
asm-generic/unaligned.h: dynamic default unaligned accesses

This is based on the asm-arm/unaligned.h, but made generic so all arches
that cannot do unaligned accesses can utilize it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agovideo: Fix console display when splashscreen is used
Matthias Weisser [Tue, 12 Jan 2010 11:06:31 +0000 (12:06 +0100)]
video: Fix console display when splashscreen is used

If a splashscreen is used the console scrolling used the
scroll size as needed when a logo was displayed. This
patch sets the scroll size to the whole screen if
a splashscreen is shown.

Signed-off-by: Matthias Weisser <matthias.weisser@graf-syteco.de>
14 years agoPrepare v2010.03-rc1 v2010.03-rc1
Wolfgang Denk [Fri, 12 Mar 2010 22:06:04 +0000 (23:06 +0100)]
Prepare v2010.03-rc1

Coding style cleanup, update CHANGELOG.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agostandalone eepro100_eeprom: fix build error
Wolfgang Denk [Fri, 12 Mar 2010 21:11:00 +0000 (22:11 +0100)]
standalone eepro100_eeprom: fix build error

Building examples/standalone/eepro100_eeprom triggers this error:

In file included from include/common.h:629,
                 from eepro100_eeprom.c:24:
include/net.h: In function 'NetReadIP':
include/net.h:430: warning: implicit declaration of function 'memcpy'
eepro100_eeprom.c: At top level:
eepro100_eeprom.c:81: error: conflicting types for 'memcpy'
include/net.h:430: error: previous implicit declaration of 'memcpy' was here

Fix this.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoUpdate .gitignore's: add some generated files
Wolfgang Denk [Fri, 12 Mar 2010 21:10:31 +0000 (22:10 +0100)]
Update .gitignore's: add some generated files

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agompc82xx: Remove SL8245 board and the now orpahned sk98lin network driver.
Detlev Zundel [Mon, 8 Mar 2010 13:02:57 +0000 (14:02 +0100)]
mpc82xx: Remove SL8245 board and the now orpahned sk98lin network driver.

This code has compile problems and the company does not even exist any
more.  So we take the liberty to drop support for it.

Signed-off-by: Detlev Zundel <dzu@denx.de>
CC: Wolfgang Denk <wd@denx.de>
CC: Ben Warren <biggerbadderben@gmail.com>
14 years ago85xx: Drop FIT support to allow u-boot image to fit in 512k
Kumar Gala [Wed, 10 Mar 2010 23:16:48 +0000 (17:16 -0600)]
85xx: Drop FIT support to allow u-boot image to fit in 512k

The 36-bit build exceeds the 512k size we have.  Removing FIT type image
support allows us to fit and we dont really use it.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoCosmetic change - indentation correction.
Michael Zaidman [Sun, 28 Feb 2010 14:28:25 +0000 (16:28 +0200)]
Cosmetic change - indentation correction.

Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
14 years agocmd_mtdparts.c: prevent printbuffer overflows
Anatolij Gustschin [Tue, 23 Feb 2010 23:29:44 +0000 (00:29 +0100)]
cmd_mtdparts.c: prevent printbuffer overflows

The length of configured MTDPARTS_DEFAULT string
could be greater than console printbuffer size.
Replace printf() by puts() to avoid potential buffer
overflows.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
14 years agoFix MPC8536DS documentation
Frans Meulenbroeks [Fri, 19 Feb 2010 10:59:04 +0000 (11:59 +0100)]
Fix MPC8536DS documentation

This patch corrects small mistake in the register list in
doc/README.mpc8536ds. These registers are 32 bits and this one starts
at ....c not ....e

When using the ...c address I can boot from sd, when using the ...e
address I cannot.

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Acked-by: Hu Mingkai <B21284@freescale.com>
14 years agodoc: add README for CONFIG_HWCONFIG option
Heiko Schocher [Wed, 10 Feb 2010 07:03:21 +0000 (08:03 +0100)]
doc: add README for CONFIG_HWCONFIG option

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoTQM8xx: enable device tree support on all TQM8xx based boards.
Heiko Schocher [Tue, 9 Feb 2010 14:50:27 +0000 (15:50 +0100)]
TQM8xx: enable device tree support on all TQM8xx based boards.

Also enable support for CONFIG_HWCONFIG because we use this for
configuring if this hardware has a FEC or not.

syntax:

hwconfig=fec:on   if hardware has an fec
hwconfig=fec:off  if hardware has no fec

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoTQM8xx: add device tree support for TQM8xx based boards.
Heiko Schocher [Tue, 9 Feb 2010 14:50:21 +0000 (15:50 +0100)]
TQM8xx: add device tree support for TQM8xx based boards.

Also use hwconfig to configure whether the board has a FEC or not.
We then can adjust the DTS to tell Linux if there is a FEC present.

syntax:

hwconfig=fec:on   if hardware has a  FEC
hwconfig=fec:off  if hardware has no FEC

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoMove CONFIG_UPDATE_TFTP code after CONFIG_PREBOOT
Wolfgang Denk [Thu, 11 Mar 2010 22:56:03 +0000 (23:56 +0100)]
Move CONFIG_UPDATE_TFTP code after CONFIG_PREBOOT

The auto-update feature (CONFIG_UPDATE_TFTP) requires that the env
variable serverip be set for the TFTP access. If DHCP is to be used
to get the serverip env variable, this doesn't work as DHCP happens
after the auto-update attempt has run. A solution is to run DHCP in
PREBOOT, but even this is too late.

To solve this, we move update_tftp() below the PREBOOT stuff.

Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agomkimage: dont force entry point with xip
Mike Frysinger [Mon, 25 Jan 2010 23:50:11 +0000 (18:50 -0500)]
mkimage: dont force entry point with xip

Some people boot images with the entry point in the middle of the blob
(like Linux with the head code in discardable .init.text), and there is no
no real requirement that the entry point be right after the mkimage header
when doing XIP, so let people specify whatever they want.  If they do need
an entry right after the header, then they still can do that with normal
-e behavior.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoPPC: Record U-Boot's relocated address in RAM and show in bdinfo.
Richard Retanubun [Fri, 15 Jan 2010 15:06:06 +0000 (10:06 -0500)]
PPC: Record U-Boot's relocated address in RAM and show in bdinfo.

This patch uses gd->relocaddr variable to store uboot's relocated
address in RAM and shows it in bdinfo command.

This patch moves CONFIG_AMIGAONEG3SE style copying of the address
in board_init_f to just before relocation is actually done.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Tested-by: Detlev Zundel <dzu@denx.de>
14 years agoFix memory leak in mmc_read()
Wolfgang Denk [Thu, 11 Mar 2010 22:35:43 +0000 (23:35 +0100)]
Fix memory leak in mmc_read()

There is be a path through mmc_read in drivers/mmc/mmc.c where
malloc'd memory is not freed before exiting mmc_read: it occurs if
mmc_set_blocklen() returns a non-zero value.

Reported-by: Quentin Armitage <Quentin@Armitage.org.uk>
Signed-off-by: Wolfgang Denk <wd@denx.de>
14 years agoAT91: Update otc570 board to new SoC access
Daniel Gorsulowski [Thu, 11 Feb 2010 13:57:04 +0000 (14:57 +0100)]
AT91: Update otc570 board to new SoC access

* convert otc570 board to use c stucture SoC access
* change gpio access to at91_gpio syntax

Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
14 years agoupdates the at91 main_clock calculation
Jens Scharsig [Sun, 14 Feb 2010 11:20:43 +0000 (12:20 +0100)]
updates the at91 main_clock calculation

* updates the conditional main_clock calculation (if AT91_MAIN_CLOCK defined) to c structure SoC access
 * add need register flags

Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
14 years agoarm: kirkwood: suen3: fixed build warning
Prafulla Wadaskar [Wed, 3 Mar 2010 09:57:37 +0000 (15:27 +0530)]
arm: kirkwood: suen3: fixed build warning

This patch fixes following build warning

Invalid Kwbimage command Type - valid names are: BOOT_FROM, NAND_ECC_MODE, NAND_PAGE_SIZE, SATA_PIO_MODE, DDR_INIT_DELAY, DATA, , spi, nand, sata, pex, uart

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
14 years agoMX51: removed warnings for the mx51evk
Stefano Babic [Fri, 5 Mar 2010 16:54:37 +0000 (17:54 +0100)]
MX51: removed warnings for the mx51evk

The patch removes warnings at compile time and provides
some cleanup code:
- Removed comment on NAND (not yet supported) from lowlevel_init.S
- Removed NFMS bit definition from imx-regs.h
  The bit is only related to MX.25/35 and can lead to confusion
- Moved is_soc_rev() to soc specific code (removed from mx51evk.c)

Signed-off-by: Stefano Babic <sbabic@denx.de>
14 years agoSPEAr : Supporting new mach ids for spear310 and spear320
Vipin Kumar [Tue, 2 Mar 2010 05:16:52 +0000 (10:46 +0530)]
SPEAr : Supporting new mach ids for spear310 and spear320

Supporting new machine ids for SoCs spear310 and spear320

include/asm-arm/mach-types.h has to be updated before applying
this patch for build to work

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
14 years agoarm, suen3: fix compile error, if doing not a local build
Heiko Schocher [Mon, 1 Mar 2010 14:58:18 +0000 (15:58 +0100)]
arm, suen3: fix compile error, if doing not a local build

Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoarm: add support for the suen3 board from keymile
Heiko Schocher [Mon, 22 Feb 2010 11:13:02 +0000 (16:43 +0530)]
arm: add support for the suen3 board from keymile

Add support for the ARM part of the mgcoge2, named suen3.
This board is based on the Marvell Kirkwood (88F6281) SoC.
As there come more board variants, common config options
are collected in include/configs/km_arm.h. Also, this board
use common code for all keymile boards, which is stored in
board/keymile/common/common.c

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Heiko Schocher <hs@denx.de>
14 years agoAdd support for KARO TX25 board
John Rigby [Tue, 26 Jan 2010 06:12:58 +0000 (23:12 -0700)]
Add support for KARO TX25 board

This is an i.MX25 base board with only NAND
so it uses nand_spl to boot.

Signed-off-by: John Rigby <jcrigby@gmail.com>
Tune configuration, add support for (redundant) environment in NAND.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Wolfgang Denk <wd@denx.de>
CC: Fred Fan <fanyefeng@gmail.com>
CC: Tom <Tom.Rix@windriver.com>
14 years agofec_mxc: add MX25 support
John Rigby [Tue, 26 Jan 2010 06:12:57 +0000 (23:12 -0700)]
fec_mxc: add MX25 support

Use RMII for MX25
Add code to init gasket that enables RMII

Signed-off-by: John Rigby <jcrigby@gmail.com>
CC: Ben Warren <biggerbadderben@gmail.com>
14 years agofec_mxc: cleanup and factor out MX27 dependencies
John Rigby [Tue, 26 Jan 2010 06:12:55 +0000 (23:12 -0700)]
fec_mxc: cleanup and factor out MX27 dependencies

general cleanup
move clock init to cpu_eth_init in cpu/arm926ejs/mx27/generic.c
make MX27 specific phy init conditional on CONFIG_MX27
replace call to imx_get_ahbclk with one to imx_get_fecclk
and define imx_get_fecclk in include/asm-arm/arch-mx27/clock.h

Signed-off-by: John Rigby <jcrigby@gmail.com>
CC: Ben Warren <biggerbadderben@gmail.com>
CC: Fred Fan <fanyefeng@gmail.com>
CC: Tom <Tom.Rix@windriver.com>
14 years agoAdd support for Freescale MX25 SOC
John Rigby [Tue, 26 Jan 2010 06:12:56 +0000 (23:12 -0700)]
Add support for Freescale MX25 SOC

ARM926EJS core with MX31 peripherals.

Signed-off-by: John Rigby <jcrigby@gmail.com>
Earlier Version Signed-off-by: Wolfgang Denk <wd@denx.de>
CC: Fred Fan <fanyefeng@gmail.com>
CC: Tom <Tom.Rix@windriver.com>
14 years agomxc_serial replace platform specific clock
John Rigby [Tue, 26 Jan 2010 06:12:51 +0000 (23:12 -0700)]
mxc_serial replace platform specific clock

remove ifdef'd clock selection code from
serial_mxc.c and replace with call to imx_get_uartclk

Add definitions for imx_get_uartclk to imx31 and imx27
include files.

This makes it easier to add new imx platforms.

Signed-off-by: John Rigby <jcrigby@gmail.com>
14 years agoAdd initial support for Freescale mx51evk board
Stefano Babic [Fri, 5 Feb 2010 14:13:58 +0000 (15:13 +0100)]
Add initial support for Freescale mx51evk board

The patch adds initial support for the Freescale mx51evk board.
Network (FEC) and SD controller (fsl_esdhc) are supported.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Fred Fan <fanyefeng@gmail.com>
14 years agofsl_esdhc: add support for mx51 processor
Stefano Babic [Fri, 5 Feb 2010 14:11:27 +0000 (15:11 +0100)]
fsl_esdhc: add support for mx51 processor

The esdhc controller in the mx51 processor is quite
the same as the one in some powerpc processors
(MPC83xx, MPC85xx). This patches adapts the driver
to support the arm mx51.

Signed-off-by: Stefano Babic <sbabic@denx.de>