]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
13 years agospi: xilinx_spi: Perform software reset during slave setup
Jason Wu [Fri, 23 Nov 2012 05:05:08 +0000 (15:05 +1000)] 
spi: xilinx_spi: Perform software reset during slave setup

to make sure it is in the clear state.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
13 years agozynq: Use sf read instead of cp for reading qspi flash
Jagannadha Sutradharudu Teki [Thu, 8 Nov 2012 12:38:30 +0000 (18:08 +0530)] 
zynq: Use sf read instead of cp for reading qspi flash

This patch add support to use "sf read" instead of cp for
reading the Linux images from qspi flash in qspi bootmode.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Removed the unused env variables
Jagannadha Sutradharudu Teki [Thu, 8 Nov 2012 12:38:29 +0000 (18:08 +0530)] 
zynq: Removed the unused env variables

Removed few unused env variables from zynq board files.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Increase the sizes of kernel_size and ramdisk_size env variables
Jagannadha Sutradharudu Teki [Thu, 8 Nov 2012 12:38:28 +0000 (18:08 +0530)] 
zynq: Increase the sizes of kernel_size and ramdisk_size env variables

Increased both the env variables up to 4MB size.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Add devicetree_size env variable
Jagannadha Sutradharudu Teki [Thu, 8 Nov 2012 12:38:27 +0000 (18:08 +0530)] 
zynq: Add devicetree_size env variable

This patch adds devicetree_size env variable to zynq_common.h
file.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: zed: Replaced go with bootm on qspi boot
Jagannadha Sutradharudu Teki [Thu, 8 Nov 2012 12:38:26 +0000 (18:08 +0530)] 
zynq: zed: Replaced go with bootm on qspi boot

This patch adds support for bootm on zed boards for
booting linux on qspi bootmode.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: zed: Replaced go with bootm on sd boot
Jagannadha Sutradharudu Teki [Wed, 7 Nov 2012 07:26:12 +0000 (12:56 +0530)] 
zynq: zed: Replaced go with bootm on sd boot

This patch adds support for bootm on zed boards for
booting linux on sd bootmode.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agozynq: zed: Replaced go with bootm on jtag boot
Jagannadha Sutradharudu Teki [Wed, 7 Nov 2012 07:26:11 +0000 (12:56 +0530)] 
zynq: zed: Replaced go with bootm on jtag boot

This patch adds support for bootm on zed boards for
booting linux on jtag bootmode.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
13 years agomicroblaze: Add muldi3.c which contains routines for _muldi3
David Holsgrove [Tue, 6 Nov 2012 13:01:24 +0000 (23:01 +1000)] 
microblaze: Add muldi3.c which contains routines for _muldi3

Referenced arch/blackfin/lib/muldi3.c and the linux kernel.
Resolves issue seen when building u-boot for HW_MUL=0;

PLATFORM_CPPFLAGS += -mxl-soft-mul
PLATFORM_CPPFLAGS += -mno-xl-multiply-high

which resulted in error while linking to libgcc.a without mul hw (bs / m);

libgcc.a(_muldi3.o): In function `__muldi3':
.... src/gcc-4.6.2/libgcc/libgcc2.c:550: undefined reference to `_GLOBAL_OFFSET_TABLE_'

This link failure would not occur if we used gcc instead of ld directly, as
gcc will correctly use the crt's to resolve this link.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
13 years agoDo not hang if the kernel image is legacy image
Wendy Liang [Tue, 6 Nov 2012 05:18:57 +0000 (15:18 +1000)] 
Do not hang if the kernel image is legacy image

U-boot should not hang because it fails to create FDT nor any of
the following tag is defined:
 CONFIG_SETUP_MEMORY_TAGS
 CONFIG_CMDLINE_TAG
 CONFIG_INITRD_TAG
 CONFIG_SERIAL_TAG
 CONFIG_REVISION_TAG

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Tested-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Disable all cpu features before reset
Michal Simek [Fri, 2 Nov 2012 08:33:50 +0000 (09:33 +0100)] 
microblaze: Disable all cpu features before reset

Fix microblaze soft reset function and disable
all cpu features. Especially disable caches because
IRQs were off by disable_interrupts().

Reported-by: John Williams <john.williams@xilinx.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Fix reset function
Michal Simek [Fri, 2 Nov 2012 08:33:05 +0000 (09:33 +0100)] 
microblaze: Fix reset function

Remove CONFIG_SYS_RESET_ADDRESS macro.
It was there from historical point of view
when soft reset was just jump to u-boot text start
(not used right now).

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Do not use zynq_common folder use zynq instead
Michal Simek [Thu, 1 Nov 2012 17:42:14 +0000 (18:42 +0100)] 
zynq: Do not use zynq_common folder use zynq instead

Use mainline board setup instead of special folder.
Also remove mainline board setup because it is broken
by this commit.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoxilinx: Remove old iic driver
Michal Simek [Thu, 1 Nov 2012 17:39:23 +0000 (18:39 +0100)] 
xilinx: Remove old iic driver

It is in the tree from 2004 and it hasn't been tested.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoxilinx: Use proper name instead of BOARD variable
Michal Simek [Thu, 1 Nov 2012 17:08:48 +0000 (18:08 +0100)] 
xilinx: Use proper name instead of BOARD variable

The reason is that this folder is symlinked from others
which means that BOARD variable is setup
to origin board name.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoxilinx: Add .gitignore files for configuration files
Michal Simek [Thu, 1 Nov 2012 16:47:33 +0000 (17:47 +0100)] 
xilinx: Add .gitignore files for configuration files

Just to be nice and do not show generated files
which shouldn't be commited to git repo.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoxilinx: ppc: Replace old ppc platforms and use petalinux one
Michal Simek [Thu, 1 Nov 2012 15:40:25 +0000 (16:40 +0100)] 
xilinx: ppc: Replace old ppc platforms and use petalinux one

Old ppc configuration was just mess. Use the same
configuration which is used by petalinux.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoxilinx: ppc: Remove all old ppc platforms and use u-boot bsp
Michal Simek [Thu, 1 Nov 2012 13:10:27 +0000 (14:10 +0100)] 
xilinx: ppc: Remove all old ppc platforms and use u-boot bsp

Completely remove all old platforms configured by
xparameters.h from EDK. Use u-boot BSP instead.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Remove config.mk and xparameters.h
Michal Simek [Thu, 1 Nov 2012 16:46:41 +0000 (17:46 +0100)] 
microblaze: Remove config.mk and xparameters.h

It is configuration for dummy board remove it.
These two files should be replaced by generated one.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Fix microblaze generic config
Michal Simek [Thu, 1 Nov 2012 13:04:19 +0000 (14:04 +0100)] 
microblaze: Fix microblaze generic config

This is quick fix to get all things to work.
Potential problem can be saving variable to flash
which has different sector size.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Disable interrupts before reset
Michal Simek [Thu, 1 Nov 2012 12:36:11 +0000 (13:36 +0100)] 
microblaze: Disable interrupts before reset

Necessary to disable interrupts because reset is simple
jump to 0x0.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Fix gpio usage
Michal Simek [Thu, 1 Nov 2012 12:32:37 +0000 (13:32 +0100)] 
microblaze: Fix gpio usage

Warning:
microblaze-generic.c: In function 'do_reset':
microblaze-generic.c:38:47: warning: operation on '*-2126118912u' may be undefined [-Wsequence-point]

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq_common: Use path with vendor
Michal Simek [Thu, 1 Nov 2012 16:42:59 +0000 (17:42 +0100)] 
zynq_common: Use path with vendor

The reason is that we will use this Makefile from
different board and need to identify xbasic_types
correctly.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq_common: Remove clean and distclean option from Makefile
Michal Simek [Thu, 1 Nov 2012 16:29:17 +0000 (17:29 +0100)] 
zynq_common: Remove clean and distclean option from Makefile

Based on this patch
"punt unused clean/distclean targets"
(sha1: 464c79207c89f247f97b344495924eabb0c9738e)
clean and distclean targets are not called.

Remove them too.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Remove clean and distclean option from Makefile
Michal Simek [Thu, 1 Nov 2012 12:28:14 +0000 (13:28 +0100)] 
zynq: Remove clean and distclean option from Makefile

Based on this patch
"punt unused clean/distclean targets"
(sha1: 464c79207c89f247f97b344495924eabb0c9738e)
clean and distclean targets are not called.

Remove them too.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoll_temac: Fix compilation warning
Michal Simek [Thu, 1 Nov 2012 13:26:49 +0000 (14:26 +0100)] 
ll_temac: Fix compilation warning

Remove unused variable and remove volatile from send functions.
Warning:
xilinx_ll_temac.c: In function 'xps_ll_temac_phy_ctrl':
xilinx_ll_temac.c:298:6: warning: unused variable 'i' [-Wunused-variable]
xilinx_ll_temac.c: In function 'xilinx_ll_temac_initialize':
xilinx_ll_temac.c:746:13: warning: assignment from incompatible pointer type [enabled by default]
xilinx_ll_temac.c:749:13: warning: assignment from incompatible pointer type [enabled by default]

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: gem_old: Add auto phy detection to Xilinx Gem driver
Jason Wu [Tue, 23 Oct 2012 08:31:49 +0000 (18:31 +1000)] 
net: gem_old: Add auto phy detection to Xilinx Gem driver

PetaLinux is using phy auto detection. Support it too.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
13 years agonet: gem: Perform phy_detection for CONFIG_PHYLIB
Michal Simek [Mon, 22 Oct 2012 06:30:05 +0000 (08:30 +0200)] 
net: gem: Perform phy_detection for CONFIG_PHYLIB

any tftp or networking operation will cause this undefined instruction
issue:
{{{
U-Boot-PetaLinux> run load_boot
undefined instruction
pc : [<3fb68900>]    lr : [<3ff9ce00>]
sp : 3fb65be8  ip : 000a0003  fp : 00000000
r10: 3fb697c8  r9 : 3fb697b0  r8 : 3fb65f68
r7 : 3fb66478  r6 : ffffffff  r5 : 00000000  r4 : 3fb66500
r3 : 3fb688c8  r2 : 3fb66478  r1 : ffffffff  r0 : 3fb66500
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...
}}}
this is because the CONFIG_PHY_ADDR is not defined in Petalogix-arm-auto.

workaround is to run phy_detection for CONFIG_PHYLIB or no CONFIG_PHYLIB.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
13 years agomicroblaze: Do not use device tree cfg as default
John Linn [Tue, 30 Oct 2012 16:20:25 +0000 (09:20 -0700)] 
microblaze: Do not use device tree cfg as default

The generic configuration for Microblaze was using device tree
to configure u-boot such that it required a device tree by
the user. This is an experimental feature still and not ready
for production such that it makes it harder for users.

This is not to be confused with the ability to load a device
tree and pass it to Linux as that ability still exists.

Signed-off-by: John Linn <john.linn@xilinx.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomtd: spi_flash: Warn user with 3 byte addressing limitations
Jason Wu [Fri, 26 Oct 2012 06:37:31 +0000 (16:37 +1000)] 
mtd: spi_flash: Warn user with 3 byte addressing limitations

Prints a warning message to tell user that only the lower 16MB of SPI
flash is accessible when addr_width is 3 and flash size is greater than
16MB.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
13 years agonet: gem: Remove WRAP bit from TX buffer description
Michal Simek [Wed, 17 Oct 2012 09:03:40 +0000 (11:03 +0200)] 
net: gem: Remove WRAP bit from TX buffer description

Removing this bit causes that frame is sent only once.
(With wrap big one packet has been sent several times
which dramatically decrease throughput)

TRM: (Table 16-3: Tx Buffer Descriptor Entry)

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: gem: Extend timeout value
Michal Simek [Tue, 16 Oct 2012 15:37:11 +0000 (17:37 +0200)] 
net: gem: Extend timeout value

Extend time for MDIO. (Because of zed board)

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: gem: Fix gem driver on 1Gbps LAN
Michal Simek [Tue, 16 Oct 2012 15:18:41 +0000 (17:18 +0200)] 
net: gem: Fix gem driver on 1Gbps LAN

The whole driver used 100Mbps because of zc702 rev B.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: old_gem: Wire up configuration for old gem driver
Michal Simek [Tue, 16 Oct 2012 16:33:03 +0000 (18:33 +0200)] 
net: old_gem: Wire up configuration for old gem driver

Just wire up old gem config for zynq.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: old_gem: Add old gem driver back to the repository
Michal Simek [Tue, 16 Oct 2012 16:26:45 +0000 (18:26 +0200)] 
net: old_gem: Add old gem driver back to the repository

The reason is to get more time for solving issue with
new mainline gem driver.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoMerge commit 'v2012.10' into master-next
Michal Simek [Tue, 16 Oct 2012 12:03:33 +0000 (14:03 +0200)] 
Merge commit 'v2012.10' into master-next

13 years agoPrepare v2012.10 v2012.10
Tom Rini [Mon, 15 Oct 2012 15:14:08 +0000 (08:14 -0700)] 
Prepare v2012.10

Signed-off-by: Tom Rini <trini@ti.com>
13 years agonet: phy: Define Marvell 88e1518 phy
Michal Simek [Mon, 15 Oct 2012 12:03:00 +0000 (14:03 +0200)] 
net: phy: Define Marvell 88e1518 phy

This phy is used on zedboard.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: zynq: Do not disable IP in zynq_gem_halt
Michal Simek [Mon, 15 Oct 2012 12:01:23 +0000 (14:01 +0200)] 
net: zynq: Do not disable IP in zynq_gem_halt

We have found that disabling GEM is causing the problem
with MII bus. This needs to be fixed.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agom28: Properly configure the SPI flash chipselect
Marek Vasut [Thu, 11 Oct 2012 15:36:56 +0000 (15:36 +0000)] 
m28: Properly configure the SPI flash chipselect

The SPI flash is not properly detected by plain "sf probe" due to
it being located on different bus and different chipselect. Fix
this problem.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@ti.com>
13 years agoMerge commit 'v2012.10-rc3' into master-next
Michal Simek [Fri, 12 Oct 2012 06:48:49 +0000 (08:48 +0200)] 
Merge commit 'v2012.10-rc3' into master-next

Conflicts:
arch/arm/cpu/armv7/zynq/cpu.c
boards.cfg
drivers/net/Makefile
drivers/net/xilinx_emaclite.c
drivers/net/zynq_gem.c
include/netdev.h

13 years agonet: axi_emac: Update phyread() to work without phylib
Jason Wu [Thu, 4 Oct 2012 03:44:53 +0000 (13:44 +1000)] 
net: axi_emac: Update phyread() to work without phylib

Fix old non phylib support.

Signed-off-by: Jason Wu <jason.wu@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agosf: spansion: Correct the first byte of idcode1 for S25FL256S part
Jagannadha Sutradharudu Teki [Fri, 14 Sep 2012 15:16:11 +0000 (20:46 +0530)] 
sf: spansion: Correct the first byte of idcode1 for S25FL256S part

This patch corrected the first byte of idcode1 for S25FL256S SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <402jagan@gmail.com>
13 years agomicroblaze: Fix byteorder for microblaze
Michal Simek [Wed, 26 Sep 2012 13:24:51 +0000 (15:24 +0200)] 
microblaze: Fix byteorder for microblaze

Just remove ancient code.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Fix compilation warning in ext2_find_next_zero_bit
Michal Simek [Wed, 26 Sep 2012 12:42:38 +0000 (14:42 +0200)] 
microblaze: Fix compilation warning in ext2_find_next_zero_bit

ext2_find_next_zero_bit must be also static if __swab32 is also static.

Warning:
include/asm/bitops.h:369:22: warning: '__fswab32' is static but
used in inline function 'ext2_find_next_zero_bit'
which is not static [enabled by default]

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Fix compilation failure because of missing libdts
Michal Simek [Wed, 26 Sep 2012 12:24:05 +0000 (14:24 +0200)] 
microblaze: Fix compilation failure because of missing libdts

Protect dts/libdts.o by CONFIG_OF_EMBED.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: common: Synchronize Makefile across zynq platforms
Michal Simek [Tue, 25 Sep 2012 12:31:04 +0000 (14:31 +0200)] 
zynq: common: Synchronize Makefile across zynq platforms

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: common: Support others xilinx eth cores in zynq
Michal Simek [Tue, 25 Sep 2012 12:28:45 +0000 (14:28 +0200)] 
zynq: common: Support others xilinx eth cores in zynq

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoPrepare v2012.10-rc3 v2012.10-rc3
Tom Rini [Mon, 8 Oct 2012 18:20:28 +0000 (11:20 -0700)] 
Prepare v2012.10-rc3

Signed-off-by: Tom Rini <trini@ti.com>
13 years agoarm: armv7: omap3: Fix restore sequence in lowlevel_init
Albert ARIBAUD [Sun, 7 Oct 2012 09:24:10 +0000 (09:24 +0000)] 
arm: armv7: omap3: Fix restore sequence in lowlevel_init

The restore sequence in lowlevel_init was in the wrong order,
causing lr to lose its original value and be set equal to ip
instead. Also, its use of the stack clashes with that of
s_init, so move the s_init call after the restore and turn
it  into a tail-optimized branch.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Tested-by: Jeroen Hofstee <jeroen@myspectrum.nl>
13 years agoyaffs2: Fix GCC 4.6 compile warnings
Anatolij Gustschin [Fri, 5 Oct 2012 23:31:03 +0000 (23:31 +0000)] 
yaffs2: Fix GCC 4.6 compile warnings

Fix:
yaffs_guts.c: In function 'yaffs_check_chunk_erased':
yaffs_guts.c:324:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_verify_chunk_written':
yaffs_guts.c:352:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_grab_chunk_cache':
yaffs_guts.c:1488:6: warning: variable 'pushout' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_check_obj_details_loaded':
yaffs_guts.c:3180:6: warning: variable 'alloc_failed' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c:3179:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_update_oh':
yaffs_guts.c:3288:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_get_obj_name':
yaffs_guts.c:4447:7: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_summary.c: In function 'yaffs_summary_read':
yaffs_summary.c:194:6: warning: variable 'sum_tags_bytes' set but not
used [-Wunused-but-set-variable]
yaffs_verify.c: In function 'yaffs_verify_file':
yaffs_verify.c:227:6: warning: variable 'actual_depth' set but not used
[-Wunused-but-set-variable]
yaffs_yaffs1.c: In function 'yaffs1_scan':
yaffs_yaffs1.c:26:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_yaffs2.c: In function 'yaffs2_scan_chunk':
yaffs_yaffs2.c:949:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_yaffs2.c: In function 'yaffs2_scan_backwards':
yaffs_yaffs2.c:1352:6: warning: variable 'deleted' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Charles Manning <cdhmanning@gmail.com>
Tested-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agodisk: part_dos: don't claim whole-disk FAT filesystems
Stephen Warren [Fri, 5 Oct 2012 13:17:40 +0000 (13:17 +0000)] 
disk: part_dos: don't claim whole-disk FAT filesystems

Logically, a disk that contains a raw FAT filesystem does not in fact
have a partition table. However, test_part_dos() was claiming that such
disks did in fact have a DOS-style partition table. This caused
get_device_and_partition() not to return a whole-disk disk_partition_t,
since part_type != PART_TYPE_UNKNOWN.

part_dos.c's print_partition_extended() detected the raw FAT filesystem
condition and printed a fake partition table that encompassed the whole
disk.

However, part_dos.c's get_partition_info_extended() did not return any
valid partitions in this case. This combination caused
get_device_and_partition() not to find any valid partitions, and hence
to return an error.

Fix test_part_dos() not to claim that raw FAT filesystems are DOS
partition tables. In turn, this causes get_device_and_partition() to
return a whole-disk disk_partition_t, and hence the following commands
work:

fatls mmc 0 /
fatls mmc 0:auto /

An alternative would be to modify print_partition_extended() to detect
raw FAT filesystems, just like print_partition_extended() does, and to
return a fake partition in this case. However, this seems logically
incorrect, and also duplicates code, since get_device_and_partition()
falls back to returning a whole-disk partition when there is no partition
table on the device.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
13 years agoFAT: check for partition 0 not 1 for whole-disk fs
Stephen Warren [Fri, 5 Oct 2012 13:17:39 +0000 (13:17 +0000)] 
FAT: check for partition 0 not 1 for whole-disk fs

The recent switch to use get_device_and_partition() from do_fat_ls()
broke the ability to access a FAT filesystem directly on a whole device;
FAT only works within a partition on a device.

This change makes e.g. "fatls mmc 0:0" work; explicitly requesting
partition ID 0 is something that get_device_and_partition() fully
supports. However, fat_register_device() expects partition ID 1 to be
used in the full-disk case; partition ID 1 was previously implicitly
specified when the user didn't actually specify a partition ID. Update
fat_register_device() to expect the correct ID.

This change does imply that if a user explicitly executes "fatls mmc 0:1"
then this will fail, and may be a change in behaviour.

Note that this still prevents "fatls mmc 0:auto" from working. The next
patch will fix that.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
13 years agoarm: rmobile: bugfix: wrong register saving in lowlevel_init
Tetsuyuki Kobayashi [Thu, 4 Oct 2012 18:39:22 +0000 (18:39 +0000)] 
arm: rmobile: bugfix: wrong register saving in lowlevel_init

lowlevel_init() of rmobile badly assumed that ip register holds return address.
The commit "63ee53a7 armv7 cpu_init_crit: Simplify code" breaks this assumption.
This patch removes this bad assumption and simplify code.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
13 years agoide: Correct IDE_BUS(dev) macro
Luka Perkov [Mon, 14 May 2012 09:29:10 +0000 (09:29 +0000)] 
ide: Correct IDE_BUS(dev) macro

The IDE_BUS(dev) macro was previously doing dev >> 1.  This however is a
mis-match of the usage in common/cmd_ide.c and would cause boards with
multiple ports / devices to not correctly detect all devices.  For more
details please see:
http://lists.denx.de/pipermail/u-boot/2012-April/122525.html

[Tom Rini: Reword commit message only]

Tested-by: Luka Perkov <uboot@lukaperkov.net>
Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Tom Rini <trini@ti.com>
13 years agoGPIO: pca953x: fix error reporting
Laurence Withers [Wed, 25 Jul 2012 03:55:48 +0000 (03:55 +0000)] 
GPIO: pca953x: fix error reporting

Use the standard CMD_RET_* constants to clearly report errors from the
pca953x command. In addition, print error messages when I2C communication
fails.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
13 years agoGPIO: pca953x: fix spelling in help
Laurence Withers [Wed, 25 Jul 2012 03:55:47 +0000 (03:55 +0000)] 
GPIO: pca953x: fix spelling in help

Signed-off-by: Laurence Withers <lwithers@guralp.com>
13 years agoml507: Fix Xilinx uartlite driver hang
Rommel Custodio [Mon, 24 Sep 2012 13:27:05 +0000 (13:27 +0000)] 
ml507: Fix Xilinx uartlite driver hang

The default configuration for ml507 will generate a hang() in the
Xilinx uartlite driver.

userial_ports[] in drivers/serial/serial_xuartlite.c does not get
initialized properly. CONFIG_SERIAL_BASE is unused.
XILINX_UARTLITE_BASEADDR is used instead.

Signed-off-by: Rommel Custodio <sessyargc+uboot@gmail.com>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Tom Rini [Fri, 5 Oct 2012 20:56:45 +0000 (13:56 -0700)] 
Merge branch 'master' of git://git.denx.de/u-boot-arm

13 years agoarm: armv7: temporarily set -mno-unaligned-access
Albert ARIBAUD [Fri, 5 Oct 2012 16:43:33 +0000 (18:43 +0200)] 
arm: armv7: temporarily set -mno-unaligned-access

This patch aims at ensuring that the 2012.10 release works
out-of-the-box on as many targets as possible, by reinstating
commit 5347560f5427bcdd48a563b62180481606ac8044, which adds
option -mno-unaligned-access to armv7 builds.

This patch will be overriden immediately after release of 2012.10.

13 years agoMAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g
Tetsuyuki Kobayashi [Mon, 16 Jul 2012 19:13:10 +0000 (19:13 +0000)] 
MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
13 years agoenv: fix crash using default -f -a
Gerlando Falauto [Fri, 5 Oct 2012 00:46:10 +0000 (00:46 +0000)] 
env: fix crash using default -f -a

env default -a -f calls env_check_apply on all existing environment
variables with a NULL value for "newval" as a way of cleaning up.
This causes string manipulation functions to crash on most architectures.
So replace a NULL argument with an empty string.

Reported-By: Stefano Babic <sbabic@denx.de>
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Tested-by: Stefano Babic <sbabic@denx.de>
13 years agoImprove license declaration for cmd_ini.h
Joe Hershberger [Thu, 4 Oct 2012 09:54:07 +0000 (09:54 +0000)] 
Improve license declaration for cmd_ini.h

Instead of referenceing the source webpage (which can change) include
the license in the source file.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reported-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agoMPC85xx: remove support for TQM85xx boards
Wolfgang Denk [Wed, 3 Oct 2012 23:36:18 +0000 (23:36 +0000)] 
MPC85xx: remove support for TQM85xx boards

Due to grown code sizes the TQM85xx boards don't build any more with
some older tool chains (like ELDK 4.2).  As these boards have long
reached EOL it seems a waste of effort trying to fix them.  The vendor
has agreed to drop support for them, too.  So let's get rid of them.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
cc: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Stefan Roese <sr@denx.de>
13 years agonet: gem: Add non PHYLIB support
Michal Simek [Tue, 25 Sep 2012 09:55:27 +0000 (11:55 +0200)] 
net: gem: Add non PHYLIB support

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Clear reboot status register 0x0F000000 bits
Michal Simek [Tue, 25 Sep 2012 08:43:12 +0000 (10:43 +0200)] 
zynq: Clear reboot status register 0x0F000000 bits

FSBL check the reboot status register 0x0F000000 bits to decide
which the partition it should work on. If the bitstream is presented in
the partition, it programs the bistream.

This commit is a temporary workaround to reload the bitstream after
uboot reset.

Signed-off-by: Jason Wu <jason.wu@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: common: Use CONFIG_SYS_SDRAM_BASE/SIZE for ram
Michal Simek [Tue, 25 Sep 2012 08:41:41 +0000 (10:41 +0200)] 
zynq: common: Use CONFIG_SYS_SDRAM_BASE/SIZE for ram

Synchronization with PetaLinux.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: common: Optimize XIo_Out32 and XIo_In32 fuctions
Michal Simek [Tue, 25 Sep 2012 08:34:59 +0000 (10:34 +0200)] 
zynq: common: Optimize XIo_Out32 and XIo_In32 fuctions

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Flush caches before enabling them
Michal Simek [Tue, 25 Sep 2012 08:13:35 +0000 (10:13 +0200)] 
microblaze: Flush caches before enabling them

Flushing caches is necessary because of soft reset
which doesn't clear caches.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agosh: ap_sh4a_4a: Fixed initialization value of DDR memory
Nobuhiro Iwamatsu [Thu, 6 Sep 2012 00:35:10 +0000 (09:35 +0900)] 
sh: ap_sh4a_4a: Fixed initialization value of DDR memory

The wrong value was set as value of column of DDR memory for ap_sh4a_4a.
10 is the right value. This fixed this problem.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Tom Rini [Thu, 4 Oct 2012 17:00:42 +0000 (10:00 -0700)] 
Merge branch 'master' of git://git.denx.de/u-boot-arm

13 years agoARM: Add Altera SOCFPGA Cyclone5
Dinh Nguyen [Thu, 4 Oct 2012 06:46:02 +0000 (06:46 +0000)] 
ARM: Add Altera SOCFPGA Cyclone5

Add minimal support for Altera's SOCFPGA Cyclone 5 hardware.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Chin Liang See <clsee@altera.com>
Signed-off-by: Pavel Machek <pavel@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Tom Trini <trini@ti.com>
Cc: Wolfgang Denx <wd@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Stefan Roese <sr@denx.de>
----
v8: Remove no_return attribute for reset_cpu

Based on v2012.10-rc2

13 years agosnowball: Clear UART RX FIFO
Ramesh Chandrasekaran [Mon, 10 Sep 2012 20:28:27 +0000 (20:28 +0000)] 
snowball: Clear UART RX FIFO

Without usb-serial cable plugged at this stage, some
garbage is seen in UART RX FIFO, which blocks autoboot
progress. The fix makes sure to empty the RX FIFO,
before we wait for user input to interrupt autoboot.

Signed-off-by: Ramesh Chandrasekaran <ramesh.chandrasekaran@stericsson.com>
13 years agoxilinx: Add new Zynq board
Michal Simek [Fri, 28 Sep 2012 09:56:37 +0000 (09:56 +0000)] 
xilinx: Add new Zynq board

Add support for Xilinx Zynq board.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Marek Vasut <marex@denx.de>
CC: Joe Hershberger <joe.hershberger@gmail.com>
13 years agoarm: Support new Xilinx Zynq platform
Michal Simek [Thu, 13 Sep 2012 20:23:35 +0000 (20:23 +0000)] 
arm: Support new Xilinx Zynq platform

Add timer driver.

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Joe Hershberger <joe.hershberger@gmail.com>
CC: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
13 years agoserial: Add Zynq serial driver
Michal Simek [Fri, 14 Sep 2012 00:55:24 +0000 (00:55 +0000)] 
serial: Add Zynq serial driver

The driver is used on Xilinx Zynq platform.

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Joe Hershberger <joe.hershberger@gmail.com>
CC: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
13 years agoarm: Fixed the offset for the no relocation.
Zhong Hongbo [Sat, 1 Sep 2012 20:49:52 +0000 (20:49 +0000)] 
arm: Fixed the offset for the no relocation.

When the u-boot address of destination equal to  __start,
no relocation. relocation offset(r9) = 0.

Signed-off-by: Zhong Hongbo <bocui107@gmail.com>
Tested-by: Stefano Babic <sbabic@denx.de>
13 years agoarm: Add CONFIG_OF_BOARD_SETUP support to bootm
Joe Hershberger [Fri, 17 Aug 2012 10:28:50 +0000 (10:28 +0000)] 
arm: Add CONFIG_OF_BOARD_SETUP support to bootm

ARM boards need to change device tree settings as well

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoarm: Remove additional config flags
Michal Simek [Tue, 14 Aug 2012 01:15:17 +0000 (01:15 +0000)] 
arm: Remove additional config flags

These options are just duplicated from arch/arm/cpu/armv7/config.mk

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoarmv7 cpu_init_crit: Simplify code
Benoît Thébaudeau [Fri, 10 Aug 2012 12:05:16 +0000 (12:05 +0000)] 
armv7 cpu_init_crit: Simplify code

We don't need to return to cpu_init_crit after calling lowlevel_init, so
lowlevel_init can directly return to the caller of cpu_init_crit.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
13 years agoarm: work around assembler bug
Allen Martin [Wed, 18 Jul 2012 13:45:53 +0000 (13:45 +0000)] 
arm: work around assembler bug

Disable sibling call optimization based on binutils version.  This is
to work around a bug in the assember in binutils versions < 2.22.
Branches to weak symbols can be incorrectly optimized in thumb mode to
a short branch (b.n instruction) that won't reach when the symbol gets
preempted.

http://sourceware.org/bugzilla/show_bug.cgi?id=12532

Signed-off-by: Allen Martin <amartin@nvidia.com>
Acked-by: Tom Rini <trini@ti.com>
13 years agotools, config.mk: add binutils-version
Allen Martin [Wed, 15 Aug 2012 11:38:53 +0000 (11:38 +0000)] 
tools, config.mk: add binutils-version

Modeled after gcc-version, add function to get binutils version.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agoARM: increase lmb stack space reservation to 4KB
Rob Herring [Thu, 28 Jun 2012 03:54:11 +0000 (03:54 +0000)] 
ARM: increase lmb stack space reservation to 4KB

The bootm initrd image copy to ram can collide with the stack in cases
where the print buffer size is large (i.e. 1K). The result is intermittent
initrd decompression errors depending on the initrd size MOD 4KB since
the initrd start address is 4KB aligned.

Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
13 years agoARM: Add X600 board support (SPEAr600 based)
Stefan Roese [Wed, 30 May 2012 22:59:08 +0000 (22:59 +0000)] 
ARM: Add X600 board support (SPEAr600 based)

This patch adds support for the X600 SPEAr600 based board. Its also
the first SPEAr600 board that uses the newly introduced SPEAr600
SPL support. Xloader is not necessary any more. By using the new
"u-boot.spr" make target, one image will generated containing both,
U-Boot SPL (with mkimage header as needed by the SPEAr BootROM, and
the main U-Boot with mkimage header.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Amit Virdi <amit.virdi@st.com>
Cc: Vipin Kumar <vipin.kumar@st.com>
13 years agoext4: Rename block group descriptor table from gd to bgd
Simon Glass [Wed, 3 Oct 2012 11:37:49 +0000 (11:37 +0000)] 
ext4: Rename block group descriptor table from gd to bgd

On x86 machines gd is unfortunately a #define, so we should avoid using
gd for anything. This patch changes uses of gd to bgd so that ext4fs
can be used on x86.

A better fix would be to remove the #define in x86, but I'm not sure
how to do that.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoOutput strings from echo with puts where easy
Joe Hershberger [Wed, 3 Oct 2012 13:09:15 +0000 (13:09 +0000)] 
Output strings from echo with puts where easy

Change echo to puts characters together where it knows about them
together.  This improves netconsole performance by greatly reducing
the number of packets that are sent.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoAdd a command to access the system timer
Joe Hershberger [Wed, 3 Oct 2012 12:14:57 +0000 (12:14 +0000)] 
Add a command to access the system timer

Two sub-commands... start and get.
 * start sets the reference.
 * get prints out the time since the last start (in "<sec>.<msec>" format).
If get is called without start, returns time since boot.
Simple way to benchmark an operation: "timer start;<commands-to-measure>;timer get"

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoAdd a new "ini" command
Joe Hershberger [Wed, 3 Oct 2012 11:15:51 +0000 (11:15 +0000)] 
Add a new "ini" command

This allows you to read ini-formatted data from anywhere and then
import one of the sections into the environment

This is based on rev 16 at http://code.google.com/p/inih/

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoCleanup cache command prints
Joe Hershberger [Wed, 3 Oct 2012 10:56:17 +0000 (10:56 +0000)] 
Cleanup cache command prints

Only print when queried, not every time the setting is changed.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoFix checkpatch.pl complaints in cmd_cache.c
Joe Hershberger [Wed, 3 Oct 2012 10:56:16 +0000 (10:56 +0000)] 
Fix checkpatch.pl complaints in cmd_cache.c

Old code that is not compliant.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agonet: fix netconsole filtering
Joe Hershberger [Wed, 3 Oct 2012 09:14:03 +0000 (09:14 +0000)] 
net: fix netconsole filtering

Adjustment of Michael Walle's fix patch

Commit 8a0eccb1056b313b45ab62e3aac400f339aa71b4 breaks netconsole. src_ip
must not be converted to host byte order, because nc_ip is already stored
in network byte order (see string_to_ip(), called by getenv_IPaddr()).

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoAdd parameter to md5sum to save the md5 sum
Joe Hershberger [Fri, 17 Aug 2012 11:00:48 +0000 (11:00 +0000)] 
Add parameter to md5sum to save the md5 sum

Add a parameter that allows you to store the md5 sum to either a
memory location or a variable.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoImplement verify option for md5sum command
Joe Hershberger [Fri, 17 Aug 2012 11:00:47 +0000 (11:00 +0000)] 
Implement verify option for md5sum command

Loosely based on CONFIG_CRC32_VERIFY.

The sum to verify against can be in memory, in a variable, or the last
parameter to the function directly.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoAdd parameter to sha1sum to save the SHA1 sum
Joe Hershberger [Fri, 17 Aug 2012 11:00:46 +0000 (11:00 +0000)] 
Add parameter to sha1sum to save the SHA1 sum

Add a parameter that allows you to store the SHA1 sum to either a
memory location or a variable.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoImplement verify option for sha1sum command
Joe Hershberger [Fri, 17 Aug 2012 11:00:45 +0000 (11:00 +0000)] 
Implement verify option for sha1sum command

Loosely based on CONFIG_CRC32_VERIFY.

The sum to verify against can be in memory, in a variable, or the last
parameter to the function directly.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoChange dead code in "test" cmd to debug output
Joe Hershberger [Fri, 17 Aug 2012 10:56:12 +0000 (10:56 +0000)] 
Change dead code in "test" cmd to debug output

Improve debug output for test by indicating the number of parameters
and quoting the parameters to make it clear exactly what each contains

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoAllow runtime configuration of "zero-delay" check
Joe Hershberger [Fri, 17 Aug 2012 10:53:12 +0000 (10:53 +0000)] 
Allow runtime configuration of "zero-delay" check

Define the new "-2" value for bootdelay to mean autoboot with no delay
and don't check for an abort key (while "0" value means do check).

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
13 years agoMerge remote-tracking branch 'u-boot-marvell/master'
Albert ARIBAUD [Wed, 3 Oct 2012 14:44:29 +0000 (16:44 +0200)] 
Merge remote-tracking branch 'u-boot-marvell/master'

13 years agolsxl: also turn off fan in power down mode
Michael Walle [Sun, 30 Sep 2012 03:11:05 +0000 (03:11 +0000)] 
lsxl: also turn off fan in power down mode

If while booting the power switch is in OFF position, turn off the fan,
too.

Signed-off-by: Michael Walle <michael@walle.cc>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
13 years agokm_kirkwood: enable MV88E6352_SWITCH support for kmnusa
Valentin Longchamp [Thu, 16 Aug 2012 01:25:20 +0000 (01:25 +0000)] 
km_kirkwood: enable MV88E6352_SWITCH support for kmnusa

This is required to configure the external 88e6352 switch on nusa.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
Acked-by: Prafulla Wadaskar <Prafulla@marvell.com>