]> git.ipfire.org Git - people/ms/u-boot.git/log
people/ms/u-boot.git
12 years agopowerpc/mpc8548: Add workaround for erratum NMG_DDR120
Kumar Gala [Fri, 16 Sep 2011 14:54:30 +0000 (09:54 -0500)] 
powerpc/mpc8548: Add workaround for erratum NMG_DDR120

Erratum NMG_DDR120 (DDR19 in MPC8548 errata document) applies to some
early version silicons. The default settings of the DDR IO receiver
biasing may not work at cold temperature. When a failure occurs,
a DDR input latches an incorrect value. The workaround will set the
receiver to an acceptable bias point.

Signed-off-by: Gong Chen
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/mpc85xxcds: Fix PCI speed
chenhui zhao [Thu, 15 Sep 2011 06:52:34 +0000 (14:52 +0800)] 
powerpc/mpc85xxcds: Fix PCI speed

The CDS uses PCICLK as SYSCLK. The PCICLK should be 33333333Hz or 66666666Hz.

Signed-off-by: Ebony Zhu <ebony.zhu@freescale.com>
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/mpc8548cds: Fix booting message
chenhui zhao [Tue, 6 Sep 2011 16:41:14 +0000 (16:41 +0000)] 
powerpc/mpc8548cds: Fix booting message

Align the output for PCI. Replace "PCI" with "PCI1".

Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
12 years agopowerpc/p4080: Add support for secure boot flow
Ruchika Gupta [Wed, 15 Dec 2010 17:02:08 +0000 (17:02 +0000)] 
powerpc/p4080: Add support for secure boot flow

Pre u-boot Flow:
1. User loads the u-boot image in flash
2. PBL/Configuration word is used to create LAW for Flash at 0xc0000000
   (Please note that ISBC expects all these addresses, images to be
    validated, entry point etc within 0 - 3.5G range)
3. ISBC validates the u-boot image, and passes control to u-boot
   at 0xcffffffc.

Changes in u-boot:
1. Temporarily map CONFIG_SYS_MONITOR_BASE to the 1M
   CONFIG_SYS_PBI_FLASH_WINDOW in AS=1.
   (The CONFIG_SYS_PBI_FLASH_WINDOW is the address map for the flash
    created by PBL/configuration word within 0 - 3.5G memory range. The
    u-boot image at this address has been validated by ISBC code)
2. Remove TLB entries for 0 - 3.5G created by ISBC code
3. Remove the LAW entry for the CONFIG_SYS_PBI_FLASH_WINDOW created by
   PBL/configuration word after switch to AS = 1

Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Kuldip Giroh <kuldip.giroh@freescale.com>
Acked-by: Wood Scott-B07421 <B07421@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/85xx: Add Secure Boot support on P1010RDB for NOR, NAND & SPIFLASH
Ruchika Gupta [Thu, 9 Jun 2011 03:52:48 +0000 (22:52 -0500)] 
powerpc/85xx: Add Secure Boot support on P1010RDB for NOR, NAND & SPIFLASH

Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Kuldip Giroh <kuldip.giroh@freescale.com>
12 years agopowerpc/85xx: Add PBL & SECUREBOOT support on P3041/P5020DS boards
Kumar Gala [Sat, 9 Apr 2011 18:43:55 +0000 (13:43 -0500)] 
powerpc/85xx: Add PBL & SECUREBOOT support on P3041/P5020DS boards

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/p2041rdb: remove watch dog related codes
Shaohui Xie [Fri, 23 Sep 2011 01:18:12 +0000 (09:18 +0800)] 
powerpc/p2041rdb: remove watch dog related codes

CPLD 2.2 removed board watch dog support due to the limitation of CPLD
capacity after adding all the requested features, such as switch overriding.
There is no pin-compatible upgrade part available for current PCB design.
So remove codes related to it.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/p2041rdb: updated description of cpld command
Shaohui Xie [Thu, 22 Sep 2011 09:27:29 +0000 (17:27 +0800)] 
powerpc/p2041rdb: updated description of cpld command

According to CPLD 2.2, the default configuration is changed, so updated the
description of CPLD command, otherwise it will confusing.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/p2041rdb: add more ddr frequencies support
Shaohui Xie [Thu, 22 Sep 2011 03:46:12 +0000 (11:46 +0800)] 
powerpc/p2041rdb: add more ddr frequencies support

This table covers DDR frequencies from 666 to 1666. Frequencies 666, 833,
1000, 1066 and 1333 were verified on this board with SO-DIMM
(UG51U6400N8SU-ACF).

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/p2041rdb: set sysclk according to status of physical switch SW1
Shaohui Xie [Tue, 13 Sep 2011 09:55:11 +0000 (17:55 +0800)] 
powerpc/p2041rdb: set sysclk according to status of physical switch SW1

P2041RDB supports 3 sysclk frequencies, it's selected by SW1[6~8],
software need to read the SW1 status to decide what the sysclk needs.

SW1[8~6] : frequency
0 0 1 : 83.3MHz
0 1 0 : 100MHz
others: 66.667MHz

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agopowerpc/p2041rdb: update cpld reset command according to CPLD 2.0
Shaohui Xie [Tue, 13 Sep 2011 09:51:39 +0000 (17:51 +0800)] 
powerpc/p2041rdb: update cpld reset command according to CPLD 2.0

CPLD 2.0 provides a new register which bit[0] is set to '1' will reset
board with initializing the CPLD registers to default values. And add
bit[6] of register at offset 0x5 to use to enable flash bank selection.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoI2C: mv_i2c: fix multi-bus init issue
Lei Wen [Fri, 30 Sep 2011 05:44:12 +0000 (05:44 +0000)] 
I2C: mv_i2c: fix multi-bus init issue

When enable the multi-bus, the current_bus is not inited in the original
implementation, which make the i2c operation unpredicatable.

Signed-off-by: Lei Wen <leiwen@marvell.com>
12 years agoI2C: mv_i2c: fix build issue when enable debug option
Lei Wen [Fri, 30 Sep 2011 05:43:48 +0000 (05:43 +0000)] 
I2C: mv_i2c: fix build issue when enable debug option

When DEBUG_I2C is open, the following build issue would shows up.

mv_i2c.c: In function 'i2c_transfer':
mv_i2c.c:257: error: 'ISR' undeclared (first use in this function)
mv_i2c.c:257: error: (Each undeclared identifier is reported only once
mv_i2c.c:257: error: for each function it appears in.)

Signed-off-by: Lei Wen <leiwen@marvell.com>
12 years agonet: emaclite: Use dynamic allocation
Michal Simek [Thu, 25 Aug 2011 10:47:56 +0000 (12:47 +0200)] 
net: emaclite: Use dynamic allocation

Every emaclite instance use own setting.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agonet: emaclite: Remove baseaddress from xemaclite
Michal Simek [Thu, 25 Aug 2011 10:36:39 +0000 (12:36 +0200)] 
net: emaclite: Remove baseaddress from xemaclite

Use dev->iobase instead of baseaddress.

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agonet: emaclite: Use calloc instead of malloc
Michal Simek [Thu, 25 Aug 2011 10:28:47 +0000 (12:28 +0200)] 
net: emaclite: Use calloc instead of malloc

Simplify driver logic and clear eth_device structure
in one command.

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agonet: emaclite: Remove deviceid property
Michal Simek [Thu, 25 Aug 2011 10:27:04 +0000 (12:27 +0200)] 
net: emaclite: Remove deviceid property

Cleanup structure.

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agonet: emaclite: Change driver name and add address
Michal Simek [Thu, 25 Aug 2011 10:25:14 +0000 (12:25 +0200)] 
net: emaclite: Change driver name and add address

Current xilinx emaclite use net multi registration
but doesn't support several emaclites interfaces.
Changing driver name with adding address to name
is the first step how to distiguish several drivers.

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agomicroblaze: Enable FDT/FIT support
Michal Simek [Fri, 25 Jun 2010 16:05:28 +0000 (18:05 +0200)] 
microblaze: Enable FDT/FIT support

Enable FDT and FIT support.

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agomicroblaze: Remove address offset for uart16550
Michal Simek [Mon, 28 Feb 2011 09:17:22 +0000 (10:17 +0100)] 
microblaze: Remove address offset for uart16550

U-Boot BSP handle 0x3 offset for big endian systems.
Little endian Microblaze systems don't use any offset.

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agomicroblaze: Do not select NFS for platforms without ethernet
Michal Simek [Mon, 28 Feb 2011 09:16:09 +0000 (10:16 +0100)] 
microblaze: Do not select NFS for platforms without ethernet

Undefined network functionality for systems without ethernet
and disable NFS support.

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agomicroblaze: Clean up reset asm code
Michal Simek [Tue, 30 Aug 2011 13:22:24 +0000 (15:22 +0200)] 
microblaze: Clean up reset asm code

- Remove code copying
- Reset address is setup from first stage bootloader
- Support reset vector setup on little endian

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agomicroblaze: Save and restore first unused vector
Michal Simek [Mon, 15 Nov 2010 09:54:43 +0000 (09:54 +0000)] 
microblaze: Save and restore first unused vector

Use one memory space to detect little/big endian platforms.
The first unused address(0x28) is used instead 0x0 address (reset vectors).
Detection rewrited reset vector setup from first stage bootloader.

Workflow:
1. Store 0x28 to r7
2. Do little/big endian test
3. Restore r7 to 0x28

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agomicroblaze: Setup MB vectors if feature is enable for u-boot
Michal Simek [Thu, 21 Jul 2011 08:47:21 +0000 (10:47 +0200)] 
microblaze: Setup MB vectors if feature is enable for u-boot

For example: Setup reset vectors if reset address is setup.
Setup user exception vector if user exception is enabled

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agomicroblaze: Remove debug saving value
Michal Simek [Thu, 21 Jul 2011 08:45:41 +0000 (10:45 +0200)] 
microblaze: Remove debug saving value

Forget to remove debug code.

Signed-off-by: Michal Simek <monstr@monstr.eu>
12 years agoGCC4.6: Squash warning in lzo1x_decompress.c
Marek Vasut [Fri, 30 Sep 2011 10:13:26 +0000 (12:13 +0200)] 
GCC4.6: Squash warning in lzo1x_decompress.c

lzo1x_decompress.c: In function ‘parse_header’:
lzo1x_decompress.c:35:5: warning: variable ‘level’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warning in cmd_ubi.c:
Marek Vasut [Fri, 30 Sep 2011 10:13:25 +0000 (12:13 +0200)] 
GCC4.6: Squash warning in cmd_ubi.c:

cmd_ubi.c: In function ‘ubi_volume_read’:
cmd_ubi.c:319:9: warning: variable ‘count_save’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warning in vmt.c
Marek Vasut [Fri, 30 Sep 2011 10:19:42 +0000 (12:19 +0200)] 
GCC4.6: Squash warning in vmt.c

vmt.c: In function ‘ubi_free_volume’:
vmt.c:681:6: warning: variable ‘err’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4,6: Squash warning in cmd_nand.c
Marek Vasut [Fri, 30 Sep 2011 10:13:23 +0000 (12:13 +0200)] 
GCC4,6: Squash warning in cmd_nand.c

cmd_nand.c: In function ‘do_nand’:
cmd_nand.c:490:7: warning: variable ‘chip’ set but not used
[-Wunused-but-set-variable]
cmd_nand.c:489:7: warning: variable ‘part’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warning in nand_bbt.c
Marek Vasut [Fri, 30 Sep 2011 10:13:22 +0000 (12:13 +0200)] 
GCC4.6: Squash warning in nand_bbt.c

nand_bbt.c: In function ‘search_bbt’:
nand_bbt.c:465:6: warning: variable ‘bits’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
12 years agoGCC4.6: Squash warning in cmd_mem.c
Marek Vasut [Mon, 26 Sep 2011 00:26:06 +0000 (02:26 +0200)] 
GCC4.6: Squash warning in cmd_mem.c

cmd_mem.c: In function ‘do_mem_loop’:
cmd_mem.c:474:25: warning: variable ‘junk’ set but not used
[-Wunused-but-set-variable]

The assigned variable can be removed because the pointers are volatile so
accesses to their addresses are always generated.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoGCC4.6: Squash warnings in ipu_disp.c
Marek Vasut [Mon, 26 Sep 2011 00:26:05 +0000 (02:26 +0200)] 
GCC4.6: Squash warnings in ipu_disp.c

ipu_disp.c: In function ‘ipu_disp_set_global_alpha’:
ipu_disp.c:1237:11: warning: variable ‘flow’ set but not used
[-Wunused-but-set-variable]
ipu_disp.c: In function ‘ipu_disp_set_color_key’:
ipu_disp.c:1302:16: warning: variable ‘flow’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
12 years agoGCC4.6: Squash warnings in lcd.c
Marek Vasut [Mon, 26 Sep 2011 00:26:04 +0000 (02:26 +0200)] 
GCC4.6: Squash warnings in lcd.c

lcd.c: In function ‘lcd_drawchars’:
lcd.c:214:9: warning: variable ‘off’ set but not used
[-Wunused-but-set-variable]
lcd.c: In function ‘lcd_display_bitmap’:
lcd.c:617:16: warning: variable ‘compression’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoGCC4.6: Squash warning in cmd_nvedit.c
Marek Vasut [Mon, 26 Sep 2011 00:26:03 +0000 (02:26 +0200)] 
GCC4.6: Squash warning in cmd_nvedit.c

cmd_nvedit.c: In function ‘do_env_edit’:
cmd_nvedit.c:463:6: warning: variable ‘len’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoGCC4.6: Squash warning in cmd_flash.c
Marek Vasut [Mon, 26 Sep 2011 00:26:02 +0000 (02:26 +0200)] 
GCC4.6: Squash warning in cmd_flash.c

cmd_flash.c: In function ‘do_protect’:
cmd_flash.c:474:6: warning: variable ‘p’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoGCC4.6: Convert various empty macros to inline functions
Marek Vasut [Mon, 26 Sep 2011 17:36:19 +0000 (19:36 +0200)] 
GCC4.6: Convert various empty macros to inline functions

Fix the following gcc4.6 problems:

cmd_date.c: In function ‘do_date’:
cmd_date.c:50:6: warning: variable ‘old_bus’ set but not used
[-Wunused-but-set-variable]
asix.c: In function ‘asix_init’:
asix.c:317:6: warning: variable ‘rx_ctl’ set but not used
[-Wunused-but-set-variable]
usb.c: In function ‘usb_parse_config’:
usb.c:331:17: warning: variable ‘ch’ set but not used
[-Wunused-but-set-variable]
usb.c: In function ‘usb_hub_port_connect_change’:
usb.c:1123:29: warning: variable ‘portchange’ set but not used
[-Wunused-but-set-variable]
usb.c: In function ‘usb_hub_configure’:
usb.c:1183:25: warning: variable ‘hubsts’ set but not used
[-Wunused-but-set-variable]
usb_storage.c: In function ‘usb_stor_CB_reset’:
usb_storage.c:466:6: warning: variable ‘result’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agosbc82xx: delete support for obsolete SBC8240/SBC8260
Paul Gortmaker [Sat, 17 Sep 2011 13:47:47 +0000 (13:47 +0000)] 
sbc82xx: delete support for obsolete SBC8240/SBC8260

The EST SBC8260 is over 10 years old, and the SBC8240 older than
that.  With the tiny amount of RAM (by today's standards), there
really isn't anyone interested in running the latest U-boot on
these EOL products anymore.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
CC: jon.diekema@smiths-aerospace.com
12 years agoMAINTAINERS: delete stale entry for EOL Wind River boards
Paul Gortmaker [Sat, 17 Sep 2011 13:38:57 +0000 (13:38 +0000)] 
MAINTAINERS: delete stale entry for EOL Wind River boards

This e-mail address is no longer valid, and the boards are long
since EOL.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
12 years agoAdd missing header for gcc3
Scott McNutt [Fri, 23 Sep 2011 11:42:14 +0000 (11:42 +0000)] 
Add missing header for gcc3

When include/linux/compiler.h is included, the associated gcc3
header is required for older build environments.

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agonet: Add \n before warning message so it prints on a new line.
Philip Balister [Wed, 7 Sep 2011 01:57:48 +0000 (01:57 +0000)] 
net: Add \n before warning message so it prints on a new line.

Signed-off-by: Philip Balister <philip@opensdr.com>
12 years agoconsole: Squelch pre-console output in console functions
Graeme Russ [Mon, 29 Aug 2011 02:14:05 +0000 (02:14 +0000)] 
console: Squelch pre-console output in console functions

There are some locations in the code which anticipate printf() being called
before the console is ready by squelching printf() on gd->have_console.
Move this squelching into printf(), vprintf(), puts() and putc(). Also
make tstc() and getc() return 0 if console is not yet initialised

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Tested-by: Simon Glass <sjg@chromium.org>
12 years agons16550: change to allow 32 bit access to registers
Dave Aldridge [Thu, 1 Sep 2011 22:47:14 +0000 (22:47 +0000)] 
ns16550: change to allow 32 bit access to registers

If CONFIG_SYS_NS16550_MEM32 is defined then 32 bit memory
mapped access will be used to read/write the uart registers.

This is especially useful for SoC devices that implement 16550
compatible uarts but that have peripheral access width constraints.

Signed-off-by: Dave Aldridge <fovsoft@gmail.com>
12 years agoIDE: Fix complaints about strict aliasing in cmd_ide.c
Marek Vasut [Sat, 20 Aug 2011 09:15:13 +0000 (09:15 +0000)] 
IDE: Fix complaints about strict aliasing in cmd_ide.c

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agoSmall refactor to remove duplicate serial code
Simon Glass [Fri, 19 Aug 2011 11:09:43 +0000 (11:09 +0000)] 
Small refactor to remove duplicate serial code

This tidies up duplicate code, and checks that default_serial_console() does
in fact produce a device.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agofat: replace LINEAR_PREFETCH_SIZE with PREFETCH_BLOCKS
Sergei Shtylyov [Fri, 19 Aug 2011 09:37:46 +0000 (09:37 +0000)] 
fat: replace LINEAR_PREFETCH_SIZE with PREFETCH_BLOCKS

Currently in do_fat_read() when reading FAT sectors, we have to divide down
LINEAR_PREFETCH_SIZE by the sector size, whereas it's defined as 2 sectors
worth of bytes. In order to avoid redundant multiplication/division, introduce
#define PREFETCH_BLOCKS instead of #define LINEAR_PREFETCH_SIZE.

Signed-off-by: Sergei Shtylyov <sshtylyov@mvista.com>
12 years agofat: root directory cluster only makes sense for FAT32
Sergei Shtylyov [Fri, 19 Aug 2011 09:32:34 +0000 (09:32 +0000)] 
fat: root directory cluster only makes sense for FAT32

The root directory cluster field only exists in a FAT32 boot sector, so the
'root_cluster' variable in do_fat_read() contains garbage in case of FAT12/16.
Make it contain 0 instead as this is what is passed to get_vfatname() in that
case anyway.

Signed-off-by: Sergei Shtylyov <sshtylyov@mvista.com>
12 years agofat: cannot compare bytes and sectors
Sergei Shtylyov [Mon, 8 Aug 2011 09:39:29 +0000 (09:39 +0000)] 
fat: cannot compare bytes and sectors

The code multiples the FAT size in sectors by the sector size and then tries to
compare that to the number of sectors in the 'getsize' variable.  While fixing
this, also change the initial value of 'getsize' as the division of FATBUFSIZE
by the sector size gets us FATBUFBLOCKS.

Signed-off-by: Sergei Shtylyov <sshtylyov@mvista.com>
12 years agofat: fix crash with big sector size
Sergei Shtylyov [Mon, 8 Aug 2011 09:38:33 +0000 (09:38 +0000)] 
fat: fix crash with big sector size

Apple iPod nanos have sector sizes of 2 or 4 KiB, which crashes U-Boot when it
tries to read the boot sector into 512-byte buffer situated on stack. Make the
FAT code indifferent to the sector size.

Signed-off-by: Sergei Shtylyov <sshtylyov@mvista.com>
12 years agoMerge branch 'sf' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Sat, 1 Oct 2011 19:44:07 +0000 (21:44 +0200)] 
Merge branch 'sf' of git://git.denx.de/u-boot-blackfin

* 'sf' of git://git.denx.de/u-boot-blackfin:
  sf: eon: add support for EN25Q32B parts
  cmd_sf: add "update" subcommand to do smart SPI flash update

12 years agoMerge branch 'post' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Sat, 1 Oct 2011 19:42:21 +0000 (21:42 +0200)] 
Merge branch 'post' of git://git.denx.de/u-boot-blackfin

* 'post' of git://git.denx.de/u-boot-blackfin:
  Blackfin: uart: implement loop callback for post
  Blackfin: bf537-stamp/bf548-ezkit: update POST flash block range
  Blackfin: post: generalize led/button tests with GPIOs
  Blackfin: bf537-stamp: drop uart/flash post tests
  Blackfin: post: drop custom test list
  Blackfin: bf537-stamp: convert to gpio post hotkey

12 years agoEfikaSB: Add preliminary EfikaSB support
Marek Vasut [Sun, 25 Sep 2011 09:55:43 +0000 (09:55 +0000)] 
EfikaSB: Add preliminary EfikaSB support

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
12 years agoEfikaMX: Add imximage config for Efika SB
Marek Vasut [Sun, 25 Sep 2011 09:52:04 +0000 (09:52 +0000)] 
EfikaMX: Add imximage config for Efika SB

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
12 years agoATA: Squash warnings in mxc_ata.
Marek Vasut [Fri, 23 Sep 2011 00:04:49 +0000 (00:04 +0000)] 
ATA: Squash warnings in mxc_ata.

mxc_ata.c: In function ‘set_ata_bus_timing’:
mxc_ata.c:118: warning: dereferencing type-punned pointer will break
strict-aliasing rules
mxc_ata.c:125: warning: dereferencing type-punned pointer will break
strict-aliasing rules
mxc_ata.c:129: warning: dereferencing type-punned pointer will break
strict-aliasing rules

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
12 years agovision2: Place machine ID into board config
Fabio Estevam [Fri, 23 Sep 2011 02:50:51 +0000 (02:50 +0000)] 
vision2: Place machine ID into board config

Let common code set the machine ID.

Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agozmx25: Fix build warning due to 'get_reset_cause' defined but not used
Fabio Estevam [Fri, 23 Sep 2011 05:13:22 +0000 (05:13 +0000)] 
zmx25: Fix build warning due to 'get_reset_cause' defined but not used

When building the zmx25 target we get:

Configuring for zmx25 board...
generic.c:108: warning: 'get_reset_cause' defined but not used

Fix this warning by defining get_reset_cause only if CONFIG_DISPLAY_CPUINFO is defined.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agozmx25: Place machine ID into board config
Fabio Estevam [Fri, 23 Sep 2011 02:50:50 +0000 (02:50 +0000)] 
zmx25: Place machine ID into board config

Let common code set the machine ID.

Cc: Matthias Weisser <weisserm@arcor.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agozmx25: Remove dram_init_banksize()
Fabio Estevam [Fri, 23 Sep 2011 02:50:49 +0000 (02:50 +0000)] 
zmx25: Remove dram_init_banksize()

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

Cc: Matthias Weisser <weisserm@arcor.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agoI2C: mxc_i2c rework
Marek Vasut [Thu, 22 Sep 2011 09:22:12 +0000 (09:22 +0000)] 
I2C: mxc_i2c rework

Rewrite the mxc_i2c driver.
 * This version is much closer to Linux implementation.
 * Fixes IPG_PERCLK being incorrectly used as clock source
 * Fixes behaviour of the driver on iMX51
 * Clean up coding style a bit ;-)

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Jason Hui <jason.hui@linaro.org>
Acked-by: Jason Liu <jason.hui@linro.org>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Jason Liu <jason.hui@linro.org>
12 years agoMX5: Clean up the output of "clocks" command
Marek Vasut [Wed, 14 Sep 2011 14:09:04 +0000 (14:09 +0000)] 
MX5: Clean up the output of "clocks" command

The new output looks like this:
> clocks
PLL1            800 MHz
PLL2            665 MHz
PLL3            216 MHz

AHB          133000 kHz
IPG           66500 kHz
IPG PERCLK   665000 kHz

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Acked-by: Jason Liu <jason.hui@linaro.org>
12 years agoMX5: Add AHB clock reporting and fix IPG clock reporting
Marek Vasut [Thu, 22 Sep 2011 09:20:37 +0000 (09:20 +0000)] 
MX5: Add AHB clock reporting and fix IPG clock reporting

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Jason Liu <jason.hui@linaro.org>
Acked-by: Jason Liu <jason.hui@linaro.org>
12 years agoMX5: Modify the PLL decoding algorithm
Marek Vasut [Fri, 23 Sep 2011 09:43:47 +0000 (11:43 +0200)] 
MX5: Modify the PLL decoding algorithm

The PLL decoding algorithm didn't take into account many configuration bits.
Adjust it according to Linux kernel. Also, add PLL4 for MX53.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Jason Hui <jason.hui@linaro.org>
Tested-by: Jason Liu <Jason.hui@linaro.org>
12 years agomx53evk: Place machine ID into board config
Fabio Estevam [Thu, 22 Sep 2011 08:07:22 +0000 (08:07 +0000)] 
mx53evk: Place machine ID into board config

Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Acked-by: Jason Liu <jason.hui@linaro.org>
12 years agomx53ard: Place machine ID into board config
Fabio Estevam [Thu, 22 Sep 2011 08:07:21 +0000 (08:07 +0000)] 
mx53ard: Place machine ID into board config

Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53smd: Place machine ID into board config
Fabio Estevam [Thu, 22 Sep 2011 08:07:20 +0000 (08:07 +0000)] 
mx53smd: Place machine ID into board config

Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53loco: Place machine ID into board config
Fabio Estevam [Thu, 22 Sep 2011 08:07:19 +0000 (08:07 +0000)] 
mx53loco: Place machine ID into board config

Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jason Liu <jason.hui@linaro.org>
12 years agomx51evk: Place machine ID into board config
Fabio Estevam [Thu, 22 Sep 2011 08:07:18 +0000 (08:07 +0000)] 
mx51evk: Place machine ID into board config

Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoimx31_litekit: Place machine ID into board config
Fabio Estevam [Thu, 22 Sep 2011 08:07:17 +0000 (08:07 +0000)] 
imx31_litekit: Place machine ID into board config

Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx31ads: Place machine ID into board config
Fabio Estevam [Thu, 22 Sep 2011 08:07:16 +0000 (08:07 +0000)] 
mx31ads: Place machine ID into board config

Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx25pdk: Place machine ID into board config
Fabio Estevam [Thu, 22 Sep 2011 08:07:15 +0000 (08:07 +0000)] 
mx25pdk: Place machine ID into board config

Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx31pdk: Place machine ID into board config
Fabio Estevam [Thu, 22 Sep 2011 08:07:14 +0000 (08:07 +0000)] 
mx31pdk: Place machine ID into board config

Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoimx31_litekit: Remove dram_init_banksize()
Fabio Estevam [Thu, 22 Sep 2011 08:07:13 +0000 (08:07 +0000)] 
imx31_litekit: Remove dram_init_banksize()

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx31ads: Remove dram_init_banksize()
Fabio Estevam [Thu, 22 Sep 2011 08:07:12 +0000 (08:07 +0000)] 
mx31ads: Remove dram_init_banksize()

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx25pdk: Remove dram_init_banksize()
Fabio Estevam [Thu, 22 Sep 2011 08:07:11 +0000 (08:07 +0000)] 
mx25pdk: Remove dram_init_banksize()

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx31pdk: Remove dram_init_banksize()
Fabio Estevam [Thu, 22 Sep 2011 08:07:10 +0000 (08:07 +0000)] 
mx31pdk: Remove dram_init_banksize()

As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoFEC: Move imx_get_mac_from_fuse() definition to fec_mxc.h
Marek Vasut [Sun, 11 Sep 2011 18:05:39 +0000 (18:05 +0000)] 
FEC: Move imx_get_mac_from_fuse() definition to fec_mxc.h

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Squish "got MAC from fuse" message, make it debug()
Marek Vasut [Sun, 11 Sep 2011 18:05:38 +0000 (18:05 +0000)] 
FEC: Squish "got MAC from fuse" message, make it debug()

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Add timeout for chip reset
Marek Vasut [Sun, 11 Sep 2011 18:05:37 +0000 (18:05 +0000)] 
FEC: Add timeout for chip reset

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Allow registering MII postconfiguration callback
Marek Vasut [Sun, 11 Sep 2011 18:05:36 +0000 (18:05 +0000)] 
FEC: Allow registering MII postconfiguration callback

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Allow multiple FECes
Marek Vasut [Thu, 15 Sep 2011 23:13:47 +0000 (01:13 +0200)] 
FEC: Allow multiple FECes

This patch allows user to register multiple FEC controllers. To preserve
compatibility with older boards, the mxcfec_register() call is still in place.
To use multiple controllers, new macro is in place, the mxcfec_register_multi(),
which takes more arguments. The syntax is:

mxcfec_register_multi(bd, FEC ID, FEC PHY ID on the MII bus, base address);

To disable the fecmxc_register() compatibility stuff, define the macro
CONFIG_FEC_MXC_MULTI. This will remove the requirement for defining IMX_FEC_BASE
and CONFIG_FEC_MXC_PHYADDR.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Abstract access to fec->eth in MII operations
Marek Vasut [Sun, 11 Sep 2011 18:05:34 +0000 (18:05 +0000)] 
FEC: Abstract access to fec->eth in MII operations

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Allow selection of MII mode via CONFIG_FEC_XCV_TYPE
Marek Vasut [Sun, 11 Sep 2011 18:05:33 +0000 (18:05 +0000)] 
FEC: Allow selection of MII mode via CONFIG_FEC_XCV_TYPE

The default is MII100, which was hardcoded previously in the driver.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Add RMII mode support
Marek Vasut [Sun, 11 Sep 2011 18:05:32 +0000 (18:05 +0000)] 
FEC: Add RMII mode support

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Kill mode select FIXME's
Marek Vasut [Sun, 11 Sep 2011 18:05:31 +0000 (18:05 +0000)] 
FEC: Kill mode select FIXME's

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Use defined constant instead of magic number
Marek Vasut [Sun, 11 Sep 2011 18:05:30 +0000 (18:05 +0000)] 
FEC: Use defined constant instead of magic number

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agoFEC: Use proper accessor to read register in debug call
Marek Vasut [Sun, 11 Sep 2011 18:05:29 +0000 (18:05 +0000)] 
FEC: Use proper accessor to read register in debug call

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
12 years agocosmetic: fsl_pmic: cosmetic for the help message
Jason Liu [Wed, 21 Sep 2011 19:30:53 +0000 (19:30 +0000)] 
cosmetic: fsl_pmic: cosmetic for the help message

This is cosmetic patch for the help message:

Before:
pmic dump [numregs] dump registers
After:
pmic dump [numregs] - dump registers

Signed-off-by: Jason Liu <jason.hui@linaro.org>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agoEfikaMX: Adjust undocumented magic constant in config file
Marek Vasut [Wed, 14 Sep 2011 18:16:57 +0000 (18:16 +0000)] 
EfikaMX: Adjust undocumented magic constant in config file

This magic constant with zero documentation, when it's last 8 bits are set to
0x45, configures correctly the PERCLK dividers. Therefore the I2C operates
correctly when divider computed from PERCLK.

Note: This constant is written to CBCDR register in
arch/arm/cpu/armv7/mx5/lowlevel_init.S, but it's written only once. The register
is accessed three more times in the file, with different values written to it
each time.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoMX31: Disable watchdog during low-power modes
Fabio Estevam [Wed, 21 Sep 2011 03:29:17 +0000 (03:29 +0000)] 
MX31: Disable watchdog during low-power modes

Turn on the watchdog WDZST bit so that watchdog timer does not count during low power modes.

Prior to applying this patch mx31pdk board got watchdog resets because when it booted in the Linux prompt
and there was no activity, the system entered into idle mode while watchdog timer was still active.

Fix this by disabling watchdog timer during idle mode.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoMX25: Add initial support for MX25PDK
Fabio Estevam [Tue, 6 Sep 2011 09:05:43 +0000 (09:05 +0000)] 
MX25: Add initial support for MX25PDK

Add the initial support for MX25PDK booting from SD card via internal boot.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoMX25: tx25: Avoid the usage of extern in C file
Fabio Estevam [Tue, 6 Sep 2011 09:05:42 +0000 (09:05 +0000)] 
MX25: tx25: Avoid the usage of extern in C file

Avoid the usage of extern in C file as pointed out by checkpatch.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx31pdk: Change the prompt as per other i.MX boards
Fabio Estevam [Thu, 15 Sep 2011 13:18:23 +0000 (13:18 +0000)] 
mx31pdk: Change the prompt as per other i.MX boards

Change the prompt as done in other i.MX boards.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoMX31: Improve readability for reset cause
Fabio Estevam [Fri, 16 Sep 2011 04:01:22 +0000 (04:01 +0000)] 
MX31: Improve readability for reset cause

Currently the reset cause is printed like:
CPU:   Freescale i.MX31 rev 2.0 at 531 MHz.Reset cause: POR

Improve readability by adding a new line like it is done on other i.MX boards.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoMX31: mx31pdk: Remove nand_spl config.mk file
Fabio Estevam [Mon, 5 Sep 2011 08:55:12 +0000 (08:55 +0000)] 
MX31: mx31pdk: Remove nand_spl config.mk file

No need to have a config.mk to only store a single line.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agoARM: mx25: Print the source of reset
Fabio Estevam [Fri, 2 Sep 2011 05:38:55 +0000 (05:38 +0000)] 
ARM: mx25: Print the source of reset

Print the source of reset during boot.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoARM: mx25: Print the silicon revison
Fabio Estevam [Fri, 2 Sep 2011 05:38:54 +0000 (05:38 +0000)] 
ARM: mx25: Print the silicon revison

Print the silicon revison during boot.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoarm, davinci, da8xx: add cpuinfo
Heiko Schocher [Wed, 14 Sep 2011 19:59:39 +0000 (19:59 +0000)] 
arm, davinci, da8xx: add cpuinfo

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoarm, davinci, am1808: add lowlevel functions for booting from NOR
Heiko Schocher [Wed, 14 Sep 2011 19:59:38 +0000 (19:59 +0000)] 
arm, davinci, am1808: add lowlevel functions for booting from NOR

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoarm, davinci: add NOR Boot Configuration Word
Heiko Schocher [Wed, 14 Sep 2011 19:59:37 +0000 (19:59 +0000)] 
arm, davinci: add NOR Boot Configuration Word

to add the "NOR Boot Configuration Word" on AM18xx based boards,
define CONFIG_SYS_DV_NOR_BOOT_CFG.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoarm, davinci: add ddr2 definition
Heiko Schocher [Wed, 14 Sep 2011 19:59:36 +0000 (19:59 +0000)] 
arm, davinci: add ddr2 definition

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoarm, davinci, am1808, gpio: add missing defines for bank 8
Heiko Schocher [Wed, 14 Sep 2011 19:59:35 +0000 (19:59 +0000)] 
arm, davinci, am1808, gpio: add missing defines for bank 8

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>