]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
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 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 agomicroblaze: Fix in/out_be8/16/32 functions
Michal Simek [Mon, 29 Aug 2011 10:47:07 +0000 (12:47 +0200)] 
microblaze: Fix in/out_be8/16/32 functions

Use inline functions instead of macros because
of typechecking.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agobdinfo: Fix bdinfo to show all MACs
Michal Simek [Tue, 25 Sep 2012 08:04:55 +0000 (10:04 +0200)] 
bdinfo: Fix bdinfo to show all MACs

Also show eth name and current eth.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: axi_emac: Support non PHYLIB configuration
Michal Simek [Tue, 25 Sep 2012 08:00:53 +0000 (10:00 +0200)] 
net: axi_emac: Support non PHYLIB configuration

This is really hepful for debugging.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: axi_emac: Use auto-detect if default phy_addr is invalid
Michal Simek [Tue, 25 Sep 2012 08:00:07 +0000 (10:00 +0200)] 
net: axi_emac: Use auto-detect if default phy_addr is invalid

Signed-off-by: Jason Wu <jason.wu@petalogix.com>
13 years agonet: emaclite: Auto-detect phy address when default phy address is wrong
Jason Wu [Mon, 21 May 2012 01:44:48 +0000 (11:44 +1000)] 
net: emaclite: Auto-detect phy address when default phy address is wrong

this feature is not been tested

Signed-off-by: Jason Wu <jason.wu@petalogix.com>
13 years agonet: emaclite: Disable autonegotiation for 1000Mbit/s
Michal Simek [Wed, 14 Sep 2011 08:32:25 +0000 (10:32 +0200)] 
net: emaclite: Disable autonegotiation for 1000Mbit/s

Phy can use 1000baseT but emaclite can work just with
10/100 Mbit/s. That's why driver has to setup phydev
capability and setup what speeds can be used.

Based on this setting generic phydev code disable
autonegotiation for 1000baseT.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: emaclite: Fix systems without mdio bus
Michal Simek [Thu, 27 Sep 2012 07:10:42 +0000 (09:10 +0200)] 
net: emaclite: Fix systems without mdio bus

Setup phy only for system which has mdio bus.
Detection is done by writing MDIO Enable bit
and reread it back. If is not setup IP has no
MDIO support.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: emaclite: Remove emaclite_bus_reset
Michal Simek [Thu, 27 Sep 2012 06:55:43 +0000 (08:55 +0200)] 
net: emaclite: Remove emaclite_bus_reset

It is not needed.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: emaclite: Wire-up mii/mdio to the driver
Michal Simek [Mon, 12 Sep 2011 07:25:43 +0000 (09:25 +0200)] 
net: emaclite: Wire-up mii/mdio to the driver

Currently we can use mii/mdio commands to check phy status/address/etc.

Signed-off-by: Michal Simek <monstr@monstr.eu>
PHYLIB support is disabled

13 years agonet: emaclite: Fix bugs in emaclite driver
Michal Simek [Wed, 26 Sep 2012 12:27:23 +0000 (14:27 +0200)] 
net: emaclite: Fix bugs in emaclite driver

Just because of solve compilation warnings.
The whole driver should be redesign to follow u-boot coding style.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: Add PetaLinux ll_temac driver
Michal Simek [Tue, 25 Sep 2012 07:25:15 +0000 (09:25 +0200)] 
net: Add PetaLinux ll_temac driver

Add well tested driver to u-boot. Do not use mainline one.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoll_temac: Remove mainline ll_temac driver
Michal Simek [Tue, 25 Sep 2012 07:23:11 +0000 (09:23 +0200)] 
ll_temac: Remove mainline ll_temac driver

It is completely untested in our build system.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoromfs: Add ROMFS implementation
Michal Simek [Tue, 25 Sep 2012 07:09:02 +0000 (09:09 +0200)] 
romfs: Add ROMFS implementation

Some changes to have support on v2012.10

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoXilinx: Microblaze: Watchdog Support
Michal Simek [Mon, 24 Sep 2012 15:04:32 +0000 (17:04 +0200)] 
Xilinx: Microblaze: Watchdog Support

This patch adds a watchdog to the MicroBlaze system.
To enable the watchdog set the following config options:

The base address definition may change based on the definition in
xparameters.h

Signed-off-by: David Mc Andrew <david.mcandrew@xilinx.com>
13 years agoXilinx: MicroBlaze: Add Kintex 7 Bitstream Boot Command
David Mc Andrew [Wed, 30 May 2012 16:29:10 +0000 (17:29 +0100)] 
Xilinx: MicroBlaze: Add Kintex 7 Bitstream Boot Command

This patch adds a command for loading bitstreams
The following definitions are used:

Signed-off-by: David Mc Andrew <david.mcandrew@xilinx.com>
13 years agoppc: Add Xilinx Virtex-5 FXT pvr value
Michal Simek [Mon, 24 Sep 2012 14:52:47 +0000 (16:52 +0200)] 
ppc: Add Xilinx Virtex-5 FXT pvr value

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Remove PLATFORM_CPPFLAGS
Michal Simek [Mon, 24 Sep 2012 14:39:54 +0000 (16:39 +0200)] 
zynq: Remove PLATFORM_CPPFLAGS

We don't need it.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Remove xparameter.h files
Michal Simek [Mon, 24 Sep 2012 14:29:25 +0000 (16:29 +0200)] 
zynq: Remove xparameter.h files

Big cleanup.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Coding style cleanup
Michal Simek [Mon, 24 Sep 2012 14:21:10 +0000 (16:21 +0200)] 
zynq: Coding style cleanup

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agommc: Just coding style cleanup
Michal Simek [Mon, 24 Sep 2012 14:01:08 +0000 (16:01 +0200)] 
mmc: Just coding style cleanup

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq_common: Sync MMC options
Michal Simek [Mon, 24 Sep 2012 13:45:36 +0000 (15:45 +0200)] 
zynq_common: Sync MMC options

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: ep107: Enable FIT
Michal Simek [Mon, 24 Sep 2012 13:43:26 +0000 (15:43 +0200)] 
zynq: ep107: Enable FIT

I can't see the reason why FIT should be disabled.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Fix CONFIG_ZYNQ_XILINX_FLASH_HEADER usage
Michal Simek [Mon, 24 Sep 2012 13:39:54 +0000 (15:39 +0200)] 
zynq: Fix CONFIG_ZYNQ_XILINX_FLASH_HEADER usage

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Synchronize NAND support
Michal Simek [Mon, 24 Sep 2012 13:35:02 +0000 (15:35 +0200)] 
zynq: Synchronize NAND support

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Synchronize spi configuration
Michal Simek [Mon, 24 Sep 2012 13:30:30 +0000 (15:30 +0200)] 
zynq: Synchronize spi configuration

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Move MMC config to zynq-common
Michal Simek [Mon, 24 Sep 2012 13:22:15 +0000 (15:22 +0200)] 
zynq: Move MMC config to zynq-common

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Move CONFIG to common location
Michal Simek [Mon, 24 Sep 2012 13:18:50 +0000 (15:18 +0200)] 
zynq: Move CONFIG to common location

CONFIG_AUTO_COMPLETE, CONFIG_CMDLINE_EDITING
and CONFIG_SYS_LONGHELP

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Remove CONFIG_ZYNQ_IP_ENV
Michal Simek [Mon, 24 Sep 2012 13:16:43 +0000 (15:16 +0200)] 
zynq: Remove CONFIG_ZYNQ_IP_ENV

Not used.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Remove CONFIG_TIMESTAMP
Michal Simek [Mon, 24 Sep 2012 13:15:09 +0000 (15:15 +0200)] 
zynq: Remove CONFIG_TIMESTAMP

Not needed.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Remove CONFIG_CMD_SETGETDCR command
Michal Simek [Mon, 24 Sep 2012 13:11:54 +0000 (15:11 +0200)] 
zynq: Remove CONFIG_CMD_SETGETDCR command

Not necessary to disable this command. It is not enabled at all.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Move ramsize to the begging of config files
Michal Simek [Mon, 24 Sep 2012 13:09:00 +0000 (15:09 +0200)] 
zynq: Move ramsize to the begging of config files

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Move CONFIG_PANIC_HANG to zynq_common - debug option
Michal Simek [Mon, 24 Sep 2012 13:06:24 +0000 (15:06 +0200)] 
zynq: Move CONFIG_PANIC_HANG to zynq_common - debug option

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Remove CONFIG_REGINFO
Michal Simek [Mon, 24 Sep 2012 13:03:58 +0000 (15:03 +0200)] 
zynq: Remove CONFIG_REGINFO

This symbol doesn't exists. Only CONFIG_CMD_REGINFO

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Move ethernet config to one file
Michal Simek [Mon, 24 Sep 2012 13:01:24 +0000 (15:01 +0200)] 
zynq: Move ethernet config to one file

Also move command config to common file.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Synchronize nor flash
Michal Simek [Mon, 24 Sep 2012 12:51:22 +0000 (14:51 +0200)] 
zynq: Synchronize nor flash

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Remove LQSPI useless function
Michal Simek [Mon, 24 Sep 2012 12:37:10 +0000 (14:37 +0200)] 
zynq: Remove LQSPI useless function

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoremove cmd_date + rtc
Michal Simek [Mon, 24 Sep 2012 12:31:47 +0000 (14:31 +0200)] 
remove cmd_date  + rtc

13 years agoxilinx: rtc: Remove dummy rtc driver
Michal Simek [Mon, 24 Sep 2012 07:01:30 +0000 (09:01 +0200)] 
xilinx: rtc: Remove dummy rtc driver

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Resort baudrate and table
Michal Simek [Mon, 24 Sep 2012 12:26:35 +0000 (14:26 +0200)] 
zynq: Resort baudrate and table

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozedboard: Remove zedboard prompt
Michal Simek [Mon, 24 Sep 2012 12:23:49 +0000 (14:23 +0200)] 
zedboard: Remove zedboard prompt

Non necessary.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoremove ttc from configs
Michal Simek [Mon, 24 Sep 2012 12:22:25 +0000 (14:22 +0200)] 
remove ttc from configs

13 years agoxilinx: Add new Zynq board
Michal Simek [Tue, 14 Aug 2012 07:45:39 +0000 (09:45 +0200)] 
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 agozynq: Use new zynq arch core + Support new Xilinx Zynq platform
Michal Simek [Mon, 24 Sep 2012 12:08:19 +0000 (14:08 +0200)] 
zynq: Use new zynq arch core + Support new Xilinx Zynq platform

Add timer driver.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Marek Vasut <marex@denx.de>
CC: Joe Hershberger <joe.hershberger@gmail.com>
13 years agozynq: optimize config.mk
Michal Simek [Mon, 24 Sep 2012 12:06:50 +0000 (14:06 +0200)] 
zynq: optimize config.mk

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Enable MII because of gem and enable long help
Michal Simek [Mon, 24 Sep 2012 11:23:03 +0000 (13:23 +0200)] 
zynq: Enable MII because of gem and enable long help

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: zynq_gem: Wire-up zynq gem driver
Michal Simek [Mon, 24 Sep 2012 10:51:26 +0000 (12:51 +0200)] 
net: zynq_gem: Wire-up zynq gem driver

Use mainline zynq-gem driver.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: Add driver for Zynq Gem IP
Michal Simek [Mon, 13 Aug 2012 13:42:03 +0000 (15:42 +0200)] 
net: Add driver for Zynq Gem IP

Device driver for Zynq Gem IP.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Marek Vasut <marex@denx.de>
CC: Joe Hershberger <joe.hershberger@gmail.com>
13 years agophy: Add support for Marvell 88E1118R
Michal Simek [Tue, 24 Jul 2012 11:47:41 +0000 (13:47 +0200)] 
phy: Add support for Marvell 88E1118R

Marvell 88E1118R is on zc702.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoRemove zynq gem driver
Michal Simek [Mon, 24 Sep 2012 10:16:57 +0000 (12:16 +0200)] 
Remove zynq gem driver

13 years agoserial: Remove ancient xpsuart driver
Michal Simek [Mon, 24 Sep 2012 10:01:17 +0000 (12:01 +0200)] 
serial: Remove ancient xpsuart driver

Use new serial_zynq instead.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Synchronize uart selection across all configs
Michal Simek [Mon, 24 Sep 2012 10:00:19 +0000 (12:00 +0200)] 
zynq: Synchronize uart selection across all configs

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoserial: Add Zynq serial driver
Michal Simek [Mon, 24 Sep 2012 09:49:31 +0000 (11:49 +0200)] 
serial: Add Zynq serial driver

The driver is used on Xilinx Zynq platform.

NOTE: Resolve conflict with this tree.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Marek Vasut <marex@denx.de>
CC: Joe Hershberger <joe.hershberger@gmail.com>
13 years agozynq: Remove ipaddr from board specific conf files
Michal Simek [Mon, 24 Sep 2012 09:42:45 +0000 (11:42 +0200)] 
zynq: Remove ipaddr from board specific conf files

Just keep it in common.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Remove unused board name variable
Michal Simek [Mon, 24 Sep 2012 09:41:12 +0000 (11:41 +0200)] 
zynq: Remove unused board name variable

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agocseflash: Fix buggy option
Michal Simek [Mon, 24 Sep 2012 09:35:46 +0000 (11:35 +0200)] 
cseflash: Fix buggy option

If bootm is not required then make no sense to enable it as command.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agospi: Fix compilation failures
Michal Simek [Mon, 24 Sep 2012 09:27:06 +0000 (11:27 +0200)] 
spi: Fix compilation failures

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agofpga: Fix compilation warnings
Michal Simek [Mon, 24 Sep 2012 09:26:50 +0000 (11:26 +0200)] 
fpga: Fix compilation warnings

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agonet: Gem driver - fix compilation error
Michal Simek [Mon, 24 Sep 2012 09:21:28 +0000 (11:21 +0200)] 
net: Gem driver - fix compilation error

Error log:
zynq_gem_wrap.c: In function 'zynq_gem_initialize':
zynq_gem_wrap.c:544:12: warning: assignment from incompatible pointer type [enabled by default]

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agozynq: Move mno-unaligned-access to cpu folder
Michal Simek [Mon, 24 Sep 2012 07:25:55 +0000 (09:25 +0200)] 
zynq: Move mno-unaligned-access to cpu folder

Just clean up.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoMerge branch 'v2012.10-rc1' into master
Michal Simek [Mon, 24 Sep 2012 06:54:02 +0000 (08:54 +0200)] 
Merge branch 'v2012.10-rc1' into master

13 years agoMerge commit 'v2012.07' into master
Michal Simek [Mon, 24 Sep 2012 06:17:06 +0000 (08:17 +0200)] 
Merge commit 'v2012.07' into master

13 years agoPrepare v2012.10-rc1 v2012.10-rc1
Tom Rini [Sat, 22 Sep 2012 00:18:28 +0000 (17:18 -0700)] 
Prepare v2012.10-rc1

Signed-off-by: Tom Rini <trini@ti.com>
13 years agoMerge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging
Tom Rini [Fri, 21 Sep 2012 23:22:18 +0000 (16:22 -0700)] 
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging

13 years agopci: fix some warnings related to assumptions about
Kumar Gala [Wed, 19 Sep 2012 04:47:36 +0000 (04:47 +0000)] 
pci: fix some warnings related to assumptions about

The following commit introduced some warnings associated with using
pci_addr_t instead of a proper 32-bit data type.

commit af778c6d9e2b945ee03cbc53bb976238a3374f33
Author: Andrew Sharp <andywyse6@gmail.com>
Date:   Wed Aug 1 12:27:16 2012 +0000

    pci: fix errant data types and corresponding access functions

On some platforms pci_addr_t is defined as a 64-bit data type so its not
proper to use with pci_{read,write}_config_dword.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Tom Rini [Fri, 21 Sep 2012 21:53:13 +0000 (14:53 -0700)] 
Merge branch 'master' of git://git.denx.de/u-boot-arm

13 years agofdt: Add header guard to fdtdec.h
Simon Glass [Thu, 12 Jul 2012 05:25:02 +0000 (05:25 +0000)] 
fdt: Add header guard to fdtdec.h

This makes it easier to include this header from other headers.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agofdt: Tidy debugging, add to fdtdec_get_int/addr()
Simon Glass [Thu, 12 Jul 2012 05:25:01 +0000 (05:25 +0000)] 
fdt: Tidy debugging, add to fdtdec_get_int/addr()

The new debugging shows the value of integers and addresses read
from the device tree and tidy up GPIO output.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoAdd gpio_request() to asm-generic header
Simon Glass [Wed, 13 Jun 2012 06:19:37 +0000 (06:19 +0000)] 
Add gpio_request() to asm-generic header

This function should also be part of the GPIO API, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Tom Rini [Fri, 21 Sep 2012 16:29:38 +0000 (09:29 -0700)] 
Merge branch 'master' of git://git.denx.de/u-boot-usb

13 years agoRevert "memsize: Fix for bug in memory sizing code"
Tom Rini [Fri, 21 Sep 2012 15:14:05 +0000 (08:14 -0700)] 
Revert "memsize: Fix for bug in memory sizing code"

After further investigation this change is not correct and results in
get_ram_size returning incorrectly large values.  Reported first by
Gerlando Falauto.

This reverts commit b8496cced856ff411f1eb2e4eff20f5abe7080b0.

Signed-off-by: Tom Rini <trini@ti.com>
13 years agoMerge remote-tracking branch 'u-boot-imx/master'
Albert ARIBAUD [Thu, 20 Sep 2012 22:26:19 +0000 (00:26 +0200)] 
Merge remote-tracking branch 'u-boot-imx/master'

13 years agousb: do explicit unaligned accesses
Lucas Stach [Thu, 6 Sep 2012 06:00:13 +0000 (08:00 +0200)] 
usb: do explicit unaligned accesses

usb_hub_descriptor has to be packed as it's used for
communication with the device. Member wHubCharacteristics
violates the natural alignment rules.

Use explicit unaligned access functions for this member.
Fixes ARMv7 traping while using USB.

v2: fix typo found by Thomas Langer

v3: rebased on top of u-boot-usb/master

Signed-off-by: Lucas Stach <dev@lynxeye.de>
13 years agodfu:usb:fix: Read the "filesize" environment variable only when file read
Łukasz Majewski [Thu, 23 Aug 2012 23:33:56 +0000 (23:33 +0000)] 
dfu:usb:fix: Read the "filesize" environment variable only when file read

The "filesize" environment variable shall be read only when relevant
file is read.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Marek Vasut <marex@denx.de>
13 years agodfu:usb: Support for ext4
Łukasz Majewski [Thu, 23 Aug 2012 23:33:55 +0000 (23:33 +0000)] 
dfu:usb: Support for ext4

Support for ext4 file system handling at DFU.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Marek Vasut <marex@denx.de>
13 years agoMerge branch 'ext4'
Tom Rini [Thu, 20 Sep 2012 18:27:35 +0000 (11:27 -0700)] 
Merge branch 'ext4'

Update Makefile change for LIBS -> LIBS-y change.

Conflicts:
Makefile

Signed-off-by: Tom Rini <trini@ti.com>
13 years agoext4: cache-align buffers so the invalidation works
Stephen Warren [Tue, 18 Sep 2012 08:05:28 +0000 (08:05 +0000)] 
ext4: cache-align buffers so the invalidation works

DMA buffer cache invalidation requires that buffers have cache-aligned
buffer locations and sizes. Use memalign() and ALLOC_CACHE_ALIGN_BUFFER()
to ensure this.

On Tegra at least, without this fix, the following fail commands fail in
u-boot-master/ext4, but succeeded at the branch's branch point in
u-boot/master. With this fix, the commands work again:

ext2ls mmc 0:1 /
ext2load mmc 0:1 /boot/zImage

Cc: Uma Shankar <uma.shankar@samsung.com>
Cc: Manjunatha C Achar <a.manjunatha@samsung.com>
Cc: Iqbal Shareef <iqbal.ams@samsung.com>
Cc: Hakgoo Lee <goodguy.lee@samsung.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Tom Rini <trini@ti.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
13 years agoFlex bus definition update for Coldfire 5253.
Jason Jin [Thu, 20 Sep 2012 06:17:46 +0000 (14:17 +0800)] 
Flex bus definition update for Coldfire 5253.

originally work by Jate Sujjavanich <jsujjavanich@syntech-fuelmaster.com>
----
The defines in arch/m68k/include/coldfire/flexbus.h are not compatible with
the 5235 processor. The registers in struct fbcs are different sizes from
those in the 5235. Also, the defines are a little different.

This is what I have so far. Comments?
----

Reformat the patch manually by Jason Jin

Signed-off-by: Jate Sujjavanich <jsujjavanich@syntech-fuelmaster.com>
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
13 years agoColdFire: Queued SPI driver
Richard Retanubun [Thu, 24 Mar 2011 08:58:11 +0000 (08:58 +0000)] 
ColdFire: Queued SPI driver

This patch adds a driver for Freescale Colfire Queued SPI bus.
Coded to work with 8 bits per transfer to use with SPI flash.
CPOL, CPHA, and CS_ACTIVE_HIGH can be configured.

Tested with MCF5270 which have 4 chip selects.

Activate by #define CONFIG_CF_QSPI in board config.

Signed-off-by: Richard Retanubun <richardretanubun@ruggedcom.com>
13 years agoColdFire: Clean up checkpatch warnings for MCF54451 and MCF54455
Alison Wang [Mon, 26 Mar 2012 21:49:08 +0000 (21:49 +0000)] 
ColdFire: Clean up checkpatch warnings for MCF54451 and MCF54455

Signed-off-by: Alison Wang <b18965@freescale.com>
13 years agoColdFire: Clean up checkpatch warnings for MCF547x and MCF548x
Alison Wang [Mon, 26 Mar 2012 21:49:07 +0000 (21:49 +0000)] 
ColdFire: Clean up checkpatch warnings for MCF547x and MCF548x

Signed-off-by: Alison Wang <b18965@freescale.com>
13 years agoColdFire: Clean up checkpatch warnings for MCF523x
Alison Wang [Mon, 26 Mar 2012 21:49:06 +0000 (21:49 +0000)] 
ColdFire: Clean up checkpatch warnings for MCF523x

Signed-off-by: Alison Wang <b18965@freescale.com>
13 years agoColdFire: Clean up checkpatch warnings for MCF532x/MCF537x/MCF5301x
Alison Wang [Mon, 26 Mar 2012 21:49:05 +0000 (21:49 +0000)] 
ColdFire: Clean up checkpatch warnings for MCF532x/MCF537x/MCF5301x

Signed-off-by: Alison Wang <b18965@freescale.com>
13 years agoColdFire: Clean up checkpatch warnings for MCF52x2
Alison Wang [Mon, 26 Mar 2012 21:49:04 +0000 (21:49 +0000)] 
ColdFire: Clean up checkpatch warnings for MCF52x2

Signed-off-by: Alison Wang <b18965@freescale.com>
13 years agoColdFire: Clean up checkpatch warnings for MCF5227x
Alison Wang [Mon, 26 Mar 2012 21:49:03 +0000 (21:49 +0000)] 
ColdFire: Clean up checkpatch warnings for MCF5227x

Signed-off-by: Alison Wang <b18965@freescale.com>
13 years agoColdFire: Add clear and set bits macros for ColdFire platform
Alison Wang [Mon, 26 Mar 2012 21:49:02 +0000 (21:49 +0000)] 
ColdFire: Add clear and set bits macros for ColdFire platform

Signed-off-by: Alison Wang <b18965@freescale.com>
13 years agoColdFire: Update the bitops for ColdFire platform
Alison Wang [Sun, 25 Mar 2012 19:18:49 +0000 (19:18 +0000)] 
ColdFire: Update the bitops for ColdFire platform

This patch uses the general ffs definition to replace the
platform ffs definition.

This patch also fixes the build error by adding hweightN
definition for m5329evb and m5373evb.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Alison Wang <b18965@freescale.com>
13 years agoColdFire: Rename NANDFLASH_SIZE into CONFIG_NANDFLASH_SIZE for MCF537x
Alison Wang [Sun, 25 Mar 2012 19:18:14 +0000 (19:18 +0000)] 
ColdFire: Rename NANDFLASH_SIZE into CONFIG_NANDFLASH_SIZE for MCF537x

This patch fixes the build error for MCF537x. As the NANDFLASH_SIZE is
redefined in boards.cfg, it is needed to rename NANDFLASH_SIZE into
CONFIG_NANDFLASH_SIZE in include/configs/M5373EVB.h.

Signed-off-by: Alison Wang <b18965@freescale.com>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Tom Rini [Tue, 18 Sep 2012 21:56:31 +0000 (14:56 -0700)] 
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx