]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
12 years agonet: zynq_gem: Add d-cache support
Srikanth Thokala [Fri, 30 Aug 2013 07:14:22 +0000 (12:44 +0530)] 
net: zynq_gem: Add d-cache support

Added d-cache support for zynq_gem.c,
Observed a difference of +0.8 MiB/s when downloading
a file of size of 3007944Bytes.

With d-cache OFF:
----------------
Filename 'uImage'.
Load address: 0x800
Loading: #################################################################
         #################################################################
         #################################################################
         ##########
         1.3 MiB/s
done
Bytes transferred = 3007944 (2de5c8 hex)

With d-cache ON:
---------------
Filename 'uImage'.
Load address: 0x800
Loading: #################################################################
         #################################################################
         #################################################################
         ##########
         2.1 MiB/s
done
Bytes transferred = 3007944 (2de5c8 hex)

Changes on zynq_gem for d-cache support:
- Tx and Rx buffers are cache-aligned
- Updated logic for invalidating Rx buffers and flushing Tx buffers.
- Tx and Rx BD's are allocated from non-cacheable region.
  (When BDs are cached, we don't see a consistent link)
- Use TX BD status intead of txsr status checks.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoarm: zynq: Fix timer loadaddress
Michal Simek [Wed, 28 Aug 2013 05:26:49 +0000 (07:26 +0200)] 
arm: zynq: Fix timer loadaddress

Reload address was written to the counter register
instead of load register.
The problem happens when timer expires but never
reload to ~0UL (it is downcount timer).

Reported-by: Stephen MacMahon <stephenm@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: Use arch_cpu_init() instead of lowlevel_init()
Michal Simek [Thu, 22 Aug 2013 12:36:47 +0000 (14:36 +0200)] 
zynq: Use arch_cpu_init() instead of lowlevel_init()

Zynq lowlevel_init() was implemented in C but stack
pointer is setup after function call in _main().
Move architecture setup to arch_cpu_init() which is call
as the first function in board_init_f() which
already have correct stack pointer.

Reported-by: Sven Schwermer <sven.schwermer@tuhh.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agosf: spansion: Add support for S25FL256S_256K
Jagannadha Sutradharudu Teki [Tue, 27 Aug 2013 11:27:11 +0000 (16:57 +0530)] 
sf: spansion: Add support for S25FL256S_256K

Add support for Spansion S25FL256S_256K SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agosf: spansion: Correct sector info for S25FL512S_256K
Jagannadha Sutradharudu Teki [Tue, 27 Aug 2013 11:27:10 +0000 (16:57 +0530)] 
sf: spansion: Correct sector info for S25FL512S_256K

Corrected the pages_per_sector, nr_sectors info for
S25FL512S_256K flash which is added in below commit
"sf: spansion: Add support for S25FL512S_256K"
(sha1: b0f826bdae1b365970c4769247acbc5fb9b528e1)

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: Remove USB PHY out of reset in board_init
Siva Durga Prasad Paladugu [Thu, 22 Aug 2013 07:11:50 +0000 (12:41 +0530)] 
zynq: Remove USB PHY out of reset in board_init

The USB PHY out of reset is validated in fsbl, hence removed
this hack from board_init.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agosf: stmicro: Add rd|wr_cmd support to N25Q1024*
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 09:33:33 +0000 (15:03 +0530)] 
sf: stmicro: Add rd|wr_cmd support to N25Q1024*

Added possible 3-byte address commands support to N25Q1024*
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: stmicro: Add rd|wr_cmd support to N25Q512*
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 09:33:05 +0000 (15:03 +0530)] 
sf: stmicro: Add rd|wr_cmd support to N25Q512*

Added possible 3-byte address commands support to N25Q512*
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: stmicro: Add rd|wr_cmd support to N25Q256*
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 09:32:26 +0000 (15:02 +0530)] 
sf: stmicro: Add rd|wr_cmd support to N25Q256*

Added possible 3-byte address commands support to N25Q256*
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: stmicro: Add initial rd|wr_cmd support
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 09:31:44 +0000 (15:01 +0530)] 
sf: stmicro: Add initial rd|wr_cmd support

This patch adds rd|wr_cmd support by detecting the fastest
command w.r.t command initialized by the controller.

Added possible 3-byte address commands support to N25Q128*
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: winbond: Add rd|wr_cmd support to W25Q64
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 08:58:44 +0000 (14:28 +0530)] 
sf: winbond: Add rd|wr_cmd support to W25Q64

Added possible 3-byte address commands support to W25Q64
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: winbond: Add rd|wr_cmd support to W25Q128
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 08:57:38 +0000 (14:27 +0530)] 
sf: winbond: Add rd|wr_cmd support to W25Q128

Added possible 3-byte address commands support to W25Q128
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: winbond: Add initial rd|wr_cmd support
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 08:56:20 +0000 (14:26 +0530)] 
sf: winbond: Add initial rd|wr_cmd support

This patch adds rd|wr_cmd support by detecting the fastest
command w.r.t command initialized by the controller.

Added possible 3-byte address commands support to W25Q256
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: spansion: Add rd|wr_cmd support to S25FL512S_512K
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 07:34:41 +0000 (13:04 +0530)] 
sf: spansion: Add rd|wr_cmd support to S25FL512S_512K

Added possible 3-byte address commands support to S25FL512S_512K
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: spansion: Add rd|wr_cmd support to S25FL512S_64K
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 07:34:06 +0000 (13:04 +0530)] 
sf: spansion: Add rd|wr_cmd support to S25FL512S_64K

Added possible 3-byte address commands support to S25FL512S_64K
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: spansion: Add rd|wr_cmd support to S25FL128S_64K
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 07:29:54 +0000 (12:59 +0530)] 
sf: spansion: Add rd|wr_cmd support to S25FL128S_64K

Added possible 3-byte address commands support to S25FL128S_64K
SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq_qspi: Add 3-byte QPP, DIOR instructions support
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 07:28:14 +0000 (12:58 +0530)] 
spi: zynq_qspi: Add 3-byte QPP, DIOR instructions support

QPP - Quad Page Program
DIOR - Dual IO high perf read

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq_qspi: Remove set quad enable bit support
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 07:23:58 +0000 (12:53 +0530)] 
spi: zynq_qspi: Remove set quad enable bit support

This patch removes the quad enable bit support for spansion
and winbond flashes as sf framework supports quad operations now.

Earlier there is a dependency for bootROM to boot from dual parallel,
driver must set this bit So removed this code to use the quad write
directly from sf level.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: Set quad enable bit support
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 07:22:26 +0000 (12:52 +0530)] 
sf: Set quad enable bit support

This patch provides support to set the quad enable bit on flash.

quad enable bit needs to set before performing any quad IO
operations on respective SPI flashes.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: Add configuration register writing support
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 07:13:42 +0000 (12:43 +0530)] 
sf: Add configuration register writing support

This patch provides support to program a flash config register.

Configuration register contains the control bits used to configure
the different configurations and security features of a device.

User need to set these bits through spi_flash_cmd_write_config()
based on their usage.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: Add quad read/write commands support
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 06:38:31 +0000 (12:08 +0530)] 
sf: Add quad read/write commands support

Current sf uses PAGE_PROGRAM command for write and FAST_READ,
SLOW_READ, DUAL_READ and DUAL_IO_READ commands for read this
patch adds support to use the quad read/write commands

This implementation will determine the fastest command which
is added in below commit
"sf: Add extended read commands support"
(sha: 4cba440b739f87206faa889f71e9ed369e9832c5)

Added wr_cmd and updated rd_cmd support to S25FL256S_64K SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: Add extended read commands support
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 06:26:21 +0000 (11:56 +0530)] 
sf: Add extended read commands support

Current sf uses FAST_READ command, this patch adds support to
use the different/extended read command.

This implementation will determine the fastest command by taking
the supported commands from the flash and the controller, controller
is always been a priority.

Added rd_cmd support to S25FL256S_64K SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_common: Enable Boot FreeBSD/vxWorks from an ELF image support
Jagannadha Sutradharudu Teki [Tue, 20 Aug 2013 10:06:30 +0000 (15:36 +0530)] 
zynq_common: Enable Boot FreeBSD/vxWorks from an ELF image support

Enabled support on zc70x and zed boards.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoserial: arm_dcc: Convert to use default_serial_puts
Axel Lin [Sat, 17 Aug 2013 07:39:34 +0000 (15:39 +0800)] 
serial: arm_dcc: Convert to use default_serial_puts

Use default_serial_puts() instead of its own implementation.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoxilinx: microblaze-generic: Do not keep xparameters.h in git
Michal Simek [Mon, 12 Aug 2013 05:46:21 +0000 (07:46 +0200)] 
xilinx: microblaze-generic: Do not keep xparameters.h in git

This removal should be the part of
"Merge tag 'v2013.07' into xilinx/master-next"
(sha1: 6978377d4b022d7fd9a8c6f720ebc2e5daaeb173)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq_cse: Add initial support for cse nor board
Jagannadha Sutradharudu Teki [Sat, 3 Aug 2013 19:24:01 +0000 (00:54 +0530)] 
zynq_cse: Add initial support for cse nor board

Added zynq cse board support with nor flash as a config
option.

bash> make zynq_cse_nor_config
Configuring for zynq_cse_nor - Board: zynq_cse, Options: CSE_NOR

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_cse: Add initial support for cse nand board
Jagannadha Sutradharudu Teki [Sat, 3 Aug 2013 19:16:53 +0000 (00:46 +0530)] 
zynq_cse: Add initial support for cse nand board

Added zynq cse board support with nand flash as a config
option.

bash> make zynq_cse_nand_config
Configuring for zynq_cse_nand - Board: zynq_cse, Options: CSE_NAND

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_cse: Add initial support for cse qspi board
Jagannadha Sutradharudu Teki [Sat, 3 Aug 2013 19:05:53 +0000 (00:35 +0530)] 
zynq_cse: Add initial support for cse qspi board

Added zynq cse board support with qspi flash as a config
option.

bash> make zynq_cse_qspi_config
Configuring for zynq_cse_qspi - Board: zynq_cse, Options: CSE_QSPI

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoserial: arm_dcc: Register with serial core
Jagannadha Sutradharudu Teki [Sat, 3 Aug 2013 19:37:58 +0000 (01:07 +0530)] 
serial: arm_dcc: Register with serial core

Register arm_dcc with drivers/serial/serial.c

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoserial: arm_dcc: Remove stdio structure support
Jagannadha Sutradharudu Teki [Sat, 3 Aug 2013 19:33:16 +0000 (01:03 +0530)] 
serial: arm_dcc: Remove stdio structure support

Removed stdio structure ops support on arm_dcc
driver, and need to register with serial core
so-that it can access like remianing serial drivers.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_common: Enable arm dcc serial driver
Jagannadha Sutradharudu Teki [Sat, 3 Aug 2013 13:10:02 +0000 (18:40 +0530)] 
zynq_common: Enable arm dcc serial driver

Enabled DCC driver through CONFIG_ZYNQ_DCC.
Board configs must define this, if want to use.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_common: Define CONFIG_SPI_FLASH_BAR
Jagannadha Sutradharudu Teki [Sun, 28 Jul 2013 18:03:43 +0000 (23:33 +0530)] 
zynq_common: Define CONFIG_SPI_FLASH_BAR

Enabled bank/extn' addr register support for accessing
> 16Mbyte flash devices.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: Synchronize configuration with mainline - I2C
Michal Simek [Thu, 25 Jul 2013 13:58:42 +0000 (15:58 +0200)] 
zynq: Synchronize configuration with mainline - I2C

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: zynq_spi: Minor cleanup
Jagannadha Sutradharudu Teki [Sun, 28 Jul 2013 17:48:13 +0000 (23:18 +0530)] 
spi: zynq_spi: Minor cleanup

- Add debug
- Add tabs on comment notes

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoMerge tag 'v2013.07' into xilinx/master-next
Michal Simek [Tue, 6 Aug 2013 14:05:39 +0000 (16:05 +0200)] 
Merge tag 'v2013.07' into xilinx/master-next

Fix several merge conflicts in spi and nand subsystem.
The rest of conflicts were easy to resolve.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoxilinx: Add gitignore files to ppc platforms
Michal Simek [Thu, 25 Jul 2013 11:45:33 +0000 (13:45 +0200)] 
xilinx: Add gitignore files to ppc platforms

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: qspi: Changed hardcoded QSPI clk frequency to be calculated.
Tomas Thoresen [Fri, 12 Jul 2013 13:33:54 +0000 (06:33 -0700)] 
zynq: qspi: Changed hardcoded QSPI clk frequency to be calculated.

Changed hardcoded QSPI clk frequency to be calculated based on
CPU frequency and Quad Ref Clock Control(slcr) DIVISOR.

Signed-off-by: Tomas Thoresen <tomast@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agosf: sst: Add support for SST25WF080
Jagannadha Sutradharudu Teki [Fri, 19 Jul 2013 14:27:04 +0000 (19:57 +0530)] 
sf: sst: Add support for SST25WF080

Add support for SST25WF080 SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq_common: Enable CONFIG_ZYNQ_SPI
Jagannadha Sutradharudu Teki [Wed, 24 Jul 2013 11:16:16 +0000 (16:46 +0530)] 
zynq_common: Enable CONFIG_ZYNQ_SPI

Not possible to enable both spi and qspi controllers same
time on a respective board config.

Tested spi on xm010 card with sst flash by enabling
CONFIG_ZYNQ_SPI on zynq_zc770.h with CONFIG_ZC770_XM010
configurations part.

zynq-uboot> sf probe 1:1 0 0
SF: Detected SST25WF080 with page size 4 KiB, total 1 MiB

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: Add zynq spi controller driver
Jagannadha Sutradharudu Teki [Wed, 24 Jul 2013 12:20:46 +0000 (17:50 +0530)] 
spi: Add zynq spi controller driver

Zynq spi controller driver supports 2 buses and
3 chipselects on each bus.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoPrepare v2013.07 v2013.07
Tom Rini [Mon, 22 Jul 2013 19:57:32 +0000 (15:57 -0400)] 
Prepare v2013.07

Signed-off-by: Tom Rini <trini@ti.com>
12 years agofs/ext4: fix log2blksz un-initialized error, by cacaulating its value from blksz
Lan Yixun (dlan) [Sat, 20 Jul 2013 00:17:59 +0000 (08:17 +0800)] 
fs/ext4: fix log2blksz un-initialized error, by cacaulating its value from blksz

The problem here is that uboot can't mount ext4 filesystem with
commit "50ce4c07df1" applied. We use hard-coded "SECTOR_SIZE"(512)
before this commit, now we introduce (block_dev_desc_t *)->log2blksz
to replace this macro. And after we calling do_ls()->fs_set_blk_dev(),
the variable log2blksz is not initialized, which it's not correct.

And this patch try to solve the problem by caculating the value of
log2blksz from variable blksz.

12 years agoext4fs: le32_to_cpu() used on a 16-bit field
Rommel Custodio [Sun, 21 Jul 2013 08:53:25 +0000 (10:53 +0200)] 
ext4fs: le32_to_cpu() used on a 16-bit field

Fix reading ext4_extent_header struture on BE machines.  Some 16 bit
fields where converted to 32 bit fields, due to the byte swap on BE
machines the containing value was corrupted. Therefore reading ext4
filesystems on BE machines where broken before.

Signed-off-by: Rommel Custodio <sessyargc+uboot@gmail.com>
[sent via git-send-email; rework commit message]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
12 years agoarm: at91sam9n12: change EBI IO to high drive mode
Bo Shen [Wed, 17 Jul 2013 09:14:17 +0000 (17:14 +0800)] 
arm: at91sam9n12: change EBI IO to high drive mode

As both the DDR SDRAM and NAND flash connect to EBI on at91sam9n12
and share the lower 8 bits data line. If use low drive of the data
line, it will cause DDR data access corrupt in lower address, so
change the data line to high drive mode

This will fix the Linux kernel boot issue when use Lower address

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
12 years agoddr cfg: DRAM_RESET needs 0x00020030
Troy Kisky [Wed, 17 Jul 2013 19:46:15 +0000 (12:46 -0700)] 
ddr cfg: DRAM_RESET needs 0x00020030

The old value of 0x000e0030 will cause ethernet
timeout issues on the sabrelite and possibly other
boards using the KSZ9021.
I have no explanation as to why.

But this is a correct change, the TRM will be updated
to show that 00b is the only valid setting for bits
19-18 of DRAM_RESET.

My thanks go to Liu Hui(Jason) for this information.

Acked-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
12 years agonet: phy: Set SUPPORTED_1000baseX_Half flag in ESTATUS_1000_XHALF case
Fabio Estevam [Fri, 19 Jul 2013 13:01:34 +0000 (10:01 -0300)] 
net: phy: Set SUPPORTED_1000baseX_Half flag in ESTATUS_1000_XHALF case

Commit de1d786e (add support for Xilinx 1000BASE-X phy (GTX)) introduced the
checking for ESTATUS_1000_XHALF, but it incorrectly sets the
SUPPORTED_1000baseX_Full flag in this case.

Set the SUPPORTED_1000baseX_Half flag instead.

Acked-by: Charles Coldwell <coldwell@gmail.com>
Reviewed-By: Sascha Silbe <t-uboot@infra-silbe.de>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agophy: fix 10/100Mbps operation on 1Gbps-capable links
Sascha Silbe [Fri, 19 Jul 2013 10:25:10 +0000 (12:25 +0200)] 
phy: fix 10/100Mbps operation on 1Gbps-capable links

de1d786 [add support for Xilinx 1000BASE-X phy (GTX)] introduced a
check for the extended status register in order to support
1Gbps-capable PHYs that don't have the 1000BASE-T registers. Since
Extended Status only indicates what the PHY (i.e. the local side) is
capable of, this broke communication with non-1Gbps peers.

Only check the extended status if the 1000BASE-T registers are
actually missing so we don't end up setting speed to 1Gbps even though
the previous test (for the combination of local and peer support for
1Gbps) already indicated we can't do 1Gbps with the current peer.

Signed-off-by: Sascha Silbe <t-uboot@infra-silbe.de>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
12 years agomkimage: Use board config to get CONFIG_FIT_SIGNATURE value
Simon Glass [Wed, 17 Jul 2013 22:10:59 +0000 (15:10 -0700)] 
mkimage: Use board config to get CONFIG_FIT_SIGNATURE value

The value of this config variable is not available to image.h on the host,
since the board config is not actually included. Bring this in so that
mkimage will be built with image-signing support for sandbox at least.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoarm:trats:fix: Correction of loaddtb environment variable.
Łukasz Majewski [Thu, 18 Jul 2013 11:14:22 +0000 (13:14 +0200)] 
arm:trats:fix: Correction of loaddtb environment variable.

Missing space for loaddtb command has been added. When missing, ext4load
fails with wrong number of passed parameters.

Acked-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
12 years agospi: zynq_qspi: Rename CONFIG_ZYNQ_SPI to CONFIG_ZYNQ_QSPI
Jagannadha Sutradharudu Teki [Wed, 17 Jul 2013 16:55:49 +0000 (22:25 +0530)] 
spi: zynq_qspi: Rename CONFIG_ZYNQ_SPI to CONFIG_ZYNQ_QSPI

As zynq_qspi.c is qspi controller driver, hence renamed
CONFIG_ZYNQ_SPI => CONFIG_ZYNQ_QSPI

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agobootm: Move fixup_silent_linux() earlier in the bootm stages
Simon Glass [Wed, 17 Jul 2013 03:09:59 +0000 (20:09 -0700)] 
bootm: Move fixup_silent_linux() earlier in the bootm stages

Before the bootm refactor, fixup_silent_linux() was done only in the
monolithic bootm case, not in the subcommand case. With the refactor, it
is done always, which is good. Unfortunately it is done too late, since it
is the PREP or CMDLINE stages that set up the command line for Linux.

Move fixup_silent_linux() into the LOADOS stage, which is where we find
out the OS being used, and can thus decide whether to perform this step.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoREADME.mx28_common: Rename it to README.mxs
Fabio Estevam [Fri, 12 Jul 2013 11:31:05 +0000 (08:31 -0300)] 
README.mx28_common: Rename it to README.mxs

commit 54965b61360 (README: mxs: Introduce README.mxs) should have changed the
file name to README.mxs, as it covers both mx23 and mx28 now.

Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoMerge branch 'master' of git://git.denx.de/u-boot-mmc
Tom Rini [Wed, 17 Jul 2013 01:05:35 +0000 (21:05 -0400)] 
Merge branch 'master' of git://git.denx.de/u-boot-mmc

12 years agofsl_esdhc: Touch only relevant sys ctrl bits
Dirk Behme [Mon, 15 Jul 2013 13:44:29 +0000 (15:44 +0200)] 
fsl_esdhc: Touch only relevant sys ctrl bits

Dealing with the sys ctrl register should touch only the
relevant bits and not accidently the whole register. On i.MX6,
the sys control register contains bits which shouldn't be reset to
0, e.g. SYS_CTRL[3-0] and IPP_RST_N (SYS_CTRL[23]).

Do this by read/modify/write instead of just a 32bit write.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Andy Fleming <afleming@freescale.com>
12 years agodrivers/mmc/dw_mmc - remove extra arch specific "asm/arch/clk.h" inclusion
Alexey Brodkin [Mon, 15 Jul 2013 11:30:30 +0000 (15:30 +0400)] 
drivers/mmc/dw_mmc - remove extra arch specific "asm/arch/clk.h" inclusion

1. No contents of "asm/arch/clk.h" is used within "dw_mmc.c".
2. If arch doesn't have "asm/arch/clk.h" driver won't build.

Without mentioned inclusion dw_mmc driver could be built for arches
other than ARM. For ARM driver still builds without it.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Mischa Jonker <mjonker@synopsys.com>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Cc: Amar <amarendra.xt@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
12 years agoPowerpc: eSDHC: Fix mmc read write err in uboot of T4240QDS board
Haijun.Zhang [Mon, 1 Jul 2013 06:26:01 +0000 (14:26 +0800)] 
Powerpc: eSDHC: Fix mmc read write err in uboot of T4240QDS board

Fill the right command type when using CMD12 to stop data transfer.

Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
CC: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
CC: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
12 years agopowerpc/mpc85xx:Disable Debug TLB entry for non-minimal SPL
Prabhakar Kushwaha [Fri, 5 Jul 2013 06:29:26 +0000 (11:59 +0530)] 
powerpc/mpc85xx:Disable Debug TLB entry for non-minimal SPL

CONFIG_SPL_BUILD creates debug TLB entry, so disable it before init_tlbs.

CONFIG_SPL_INIT_MINIMAL never creates any debug TLB entry, so no need
of disable_tlb().

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
12 years agompc85xx: Add gdsys ControlCenter Digital board
Dirk Eibach [Wed, 26 Jun 2013 13:55:17 +0000 (15:55 +0200)] 
mpc85xx: Add gdsys ControlCenter Digital board

The gdsys ControlCenter Digital board is based on a Freescale P1022 QorIQ SOC.
It boots from SPI-Flash but can be configured to boot from SD-card for
factory programming and testing.
On board peripherals include:
- 2x GbE
- Lattice ECP3 FPGA connected via PCIe
- mSATA RAID1
- USB host
- DisplayPort video output
- Atmel TPM

Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Signed-off-by: Reinhard Pfau <reinhard.pfau@gdsys.cc>
Signed-off-by: Andy Fleming <afleming@freescale.com>
12 years agoBuild arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM
Dirk Eibach [Wed, 26 Jun 2013 13:55:16 +0000 (15:55 +0200)] 
Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM

MAKEALL is fine for ppc4xx and mpc85xx.
Run checks were done on our controlcenterd hardware.

Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Signed-off-by: Andy Fleming <afleming@freescale.com>
12 years agoAdd Atmel I2C tpm
Dirk Eibach [Wed, 26 Jun 2013 13:55:15 +0000 (15:55 +0200)] 
Add Atmel I2C tpm

Add support for Atmel TPM devices with two wire interface.

Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Signed-off-by: Reinhard Pfau <reinhard.pfau@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
12 years agoi2c: fsl_i2c: i2c_read(): dont try to write address w/ alen=0
Reinhard Pfau [Wed, 26 Jun 2013 13:55:14 +0000 (15:55 +0200)] 
i2c: fsl_i2c: i2c_read(): dont try to write address w/ alen=0

if alen is 0: no longer start a write cycle before reading data.

Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Signed-off-by: Reinhard Pfau <reinhard.pfau@gdsys.cc>
Acked-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Andy Fleming <afleming@freescale.com>
12 years agotpm: add AUTH1 cmds for LoadKey2 and GetPubKey
Reinhard Pfau [Wed, 26 Jun 2013 13:55:13 +0000 (15:55 +0200)] 
tpm: add AUTH1 cmds for LoadKey2 and GetPubKey

Extend the tpm library with support for single authorized (AUTH1) commands
as specified in the TCG Main Specification 1.2. (The internally used helper
functions are implemented in a way that they could also be used for double
authorized commands if someone needs it.)

Provide enums with the return codes from the TCG Main specification.

For now only a single OIAP session is supported.

OIAP authorized version of the commands TPM_LoadKey2 and TPM_GetPubKey are
provided. Both features are available using the 'tpm' command, too.

Authorized commands are enabled with CONFIG_TPM_AUTH_SESSIONS. (Note that
this also requires CONFIG_SHA1 to be enabled.)

Signed-off-by: Reinhard Pfau <reinhard.pfau@gdsys.cc>
Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Acked-by: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
12 years agoarm:samsung:trats:fix: Restore proper orientation of TRATS's LCD panel
Łukasz Majewski [Mon, 15 Jul 2013 14:09:50 +0000 (16:09 +0200)] 
arm:samsung:trats:fix: Restore proper orientation of TRATS's LCD panel

Before setting: mipi_lcd_device.reverse_panel = 1, the Trats's LCD panel
was flipped by 180 degrees.

The flip was caused by following change:
Exynos: Change get_timer() to work correctly
SHA1: 3d00c0cb96ff93a929700b80d89cb905e5ab5315

This commit fixed udelay(), which is necessary (due to HW LCD controller
oddity) for mipi-dsi correct operation. As a result the display orientation
has been switched.

As a follow up, the hwrevision() function has been removed, since it was
used only in this particular place.

Test HW: Trats Exynos4210 rev 0.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Acked-by: Minkyu Kang <mk7.kang@samsung.com>
12 years agoarm:exynos:fix: Fix clock calculation for Exynos4210 based targets.
Łukasz Majewski [Fri, 12 Jul 2013 17:08:25 +0000 (19:08 +0200)] 
arm:exynos:fix: Fix clock calculation for Exynos4210 based targets.

Provide proper setting for the APLL fout frequency calculation for
Exynos4 based targets (especially Exynos4210 - Trats board).

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Acked-by: Minkyu Kang <mk7.kang@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
12 years agoPPC MPC83xx: Fix MPC8323ERDB build warning
Wolfgang Denk [Sun, 14 Jul 2013 17:42:40 +0000 (19:42 +0200)] 
PPC MPC83xx: Fix MPC8323ERDB build warning

Fix:

mpc8323erdb.c: In function 'mac_read_from_eeprom':
mpc8323erdb.c:198:3: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]

Signed-off-by: Wolfgang Denk <wd@denx.de>
cc: Timur Tabi <timur@tabi.org>
cc: Kim Phillips <kim.phillips@freescale.com>

12 years agoFix ext2/ext4 filesystem accesses beyond 2TiB
Frederic Leroy [Wed, 26 Jun 2013 16:11:25 +0000 (18:11 +0200)] 
Fix ext2/ext4 filesystem accesses beyond 2TiB

With CONFIG_SYS_64BIT_LBA, lbaint_t gets defined as a 64-bit type,
which is required to represent block numbers for storage devices that
exceed 2TiB (the block size usually is 512B), e.g. recent hard drives

We now use lbaint_t for partition offset to reflect the lbaint_t change,
and access partitions beyond or crossing the 2.1TiB limit.
This required changes to signature of ext4fs_devread(), and type of all
variables relatives to block sector.

ext2/ext4 fs uses logical block represented by a 32 bit value. Logical
block is a multiple of device block sector. To avoid overflow problem
when calling ext4fs_devread(), we need to cast the sector parameter.

Signed-off-by: Frédéric Leroy <fredo@starox.org>
12 years agocommon: remove unaligned access error in bootmenu_getoption()
Lan Yixun (dlan) [Thu, 27 Jun 2013 10:58:53 +0000 (18:58 +0800)] 
common: remove unaligned access error in bootmenu_getoption()

Some ARM compilers may emit code that makes unaligned accesses when
faced with constructs such as:

    char name[12] = "bootmenu_";

same fix as commit: 064d55f8bc8d7d205ed0be6abb6717e92eeb7cad

=========================================================
data abort

    MAYBE you should read doc/README.arm-unaligned-accesses

pc : [<3ff4b60c>]          lr : [<3ff4b7b0>]
sp : 3f346a58  ip : 3ff9c8e6     fp : 02000060
r10: 00000000  r9 : 3df47fc0     r8 : 3f347f40
r7 : 00000000  r6 : 00000000     r5 : 00000003  r4 : 3f759140
r3 : 000003f0  r2 : 00000000     r1 : 000003f1  r0 : 00000000
Flags: nzCv  IRQs on  FIQs off  Mode SVC_32
Resetting CPU ...
======================================================

Signed-off-by: Lan Yixun (dlan) <dennis.yxun@gmail.com>
12 years agocramfs: fix bug for wrong filename comparison
Holger Brunck [Mon, 8 Jul 2013 07:06:49 +0000 (09:06 +0200)] 
cramfs: fix bug for wrong filename comparison

"cramfsload uImage_1" succeeds even though the actual file is named
"uImage".

Fix file name comparison when one name is the prefix of the other.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Albert ARIBAUD <albert.u.boot@aribaud.net>

12 years agopatman: README documentation nits (unit test)
Gerhard Sittig [Sun, 14 Jul 2013 09:27:45 +0000 (11:27 +0200)] 
patman: README documentation nits (unit test)

adjust instructions for the invocation of Patman's self test: the -t
flag appears to have a different meaning now, refer to the --test option
for the builtin unit test; adjust a directory location and make sure to
run the file which resides in the source directory

Signed-off-by: Gerhard Sittig <gsi@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
12 years agoscsi: Correct types of scsi_read/write()
Simon Glass [Wed, 3 Jul 2013 14:11:41 +0000 (07:11 -0700)] 
scsi: Correct types of scsi_read/write()

The block device expects to see lbaint_t for the blknr parameter. Change
the SCSI read/write functions to suit.

This fixes the following build warnings for coreboot:

cmd_scsi.c: In function ‘scsi_scan’:
cmd_scsi.c:119:30: error: assignment from incompatible pointer type [-Werror]
cmd_scsi.c:120:32: error: assignment from incompatible pointer type [-Werror]

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoRevert "MIPS: Jz4740: Add qi_lb60 board support"
Tom Rini [Mon, 15 Jul 2013 13:19:39 +0000 (09:19 -0400)] 
Revert "MIPS: Jz4740: Add qi_lb60 board support"

The files board/qi/qi_lb60/qi_lb60.c and include/configs/qi_lb60.h were
licensed under the GPL v3 or later, and not v2 or later.  As this is
incompatible with the project, revert this board support until the
responsible parties are available to re-license (if so desired) under
GPL v2.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoPrepare v2013.07-rc3 v2013.07-rc3
Tom Rini [Fri, 12 Jul 2013 21:16:19 +0000 (17:16 -0400)] 
Prepare v2013.07-rc3

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Tom Rini [Fri, 12 Jul 2013 21:18:59 +0000 (17:18 -0400)] 
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

12 years agobootm: Handle errors consistently
Simon Glass [Wed, 10 Jul 2013 13:25:33 +0000 (09:25 -0400)] 
bootm: Handle errors consistently

A recent bootm fix left the error path incomplete. If CONFIG_TRACE is
set it may still not be a supported command, so cover that with the
unsupported subcommand print.  Once we handle BOOTM_STATE_OS_GO, we can
just move into the error handler itself, no need for a goto there.

Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Update slightly based on Simon's changes to also cover
CONFIG_TRACE/BOOTM_STATE_FAKE_OS_GO]
Signed-off-by: Tom Rini <trini@ti.com>
12 years agomtd: mxc_nand: Fix crash after MTD resync
Marek Vasut [Wed, 3 Jul 2013 00:34:34 +0000 (02:34 +0200)] 
mtd: mxc_nand: Fix crash after MTD resync

The driver triggered a BUG() in nand_base.c:3214/nand_scan_tail()
because the ecc.strength was not set in NAND_ECC_HW_SYNDROME ECC
mode.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Benoit Thebaudeau <benoit.thebaudeau@advansee.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
12 years agocommon/image.c: Fix regression with ramdisk load/entry points in FIT
Stefano Babic [Fri, 12 Jul 2013 13:09:23 +0000 (15:09 +0200)] 
common/image.c: Fix regression with ramdisk load/entry points in FIT

A FIT image with a ramdisk that sets the entry or load points to 0x0
must be treated as meaning "leave in place" and NOT "relocate to 0x0".
This regression was introduced in a51ec63.

Signed-off-by: Stefano Babic <sbabic@denx.de>
12 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Tom Rini [Fri, 12 Jul 2013 14:36:48 +0000 (10:36 -0400)] 
Merge branch 'master' of git://git.denx.de/u-boot-arm

Fix a trivial conflict in arch/arm/dts/exynos5250.dtsi about gpio and
serial.

Conflicts:
arch/arm/dts/exynos5250.dtsi

Signed-off-by: Tom Rini <trini@ti.com>
12 years agobootm: Correct the arguments for the ELF image loader
Simon Glass [Thu, 11 Jul 2013 06:08:11 +0000 (23:08 -0700)] 
bootm: Correct the arguments for the ELF image loader

The arguments were out of place since commit 983c72f, since this file was
missed and not tested. Correct this.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agobootm: Use selected configuration for ramdisk and fdt
Simon Glass [Thu, 11 Jul 2013 06:08:10 +0000 (23:08 -0700)] 
bootm: Use selected configuration for ramdisk and fdt

If a specific configuraion is selected by the bootm command, e.g. with
'bootm 84000000#recoveryconf' we must honour this for not just the kernel,
but also the ramdisk and FDT.

In the conversion to using a common fit_image_load() function for loading
images from FITs (commits a51ec63 and 53f375f) this feature was lost.
Reinstate it by passing the selected configuration back from
fit_image_load() to boot_get_kernel(), then use this configuration
(which is stored in images->fit_uname_cfg) in both boot_get_ramdisk()
and boot_get_fdt().

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agoblackfin: x86: bootm: Handle PREP stage of bootm
Simon Glass [Thu, 11 Jul 2013 06:08:09 +0000 (23:08 -0700)] 
blackfin: x86: bootm: Handle PREP stage of bootm

The OS function is now always called with the PREP stage. Adjust the
remaining bootm OS functions to deal with this correctly.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agobootm: Remove extra OK message
Simon Glass [Thu, 11 Jul 2013 06:08:08 +0000 (23:08 -0700)] 
bootm: Remove extra OK message

This is not needed as we already print 'OK' later in all cases.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agocmd_bootm.c: Re-order bootm_load_os return check for ELDK4.2
Tom Rini [Thu, 11 Jul 2013 13:35:23 +0000 (09:35 -0400)] 
cmd_bootm.c: Re-order bootm_load_os return check for ELDK4.2

With ELDK4.2 we were getting a warning that load_end may be used
uninitialized in calling lmb_reserve.  This could not be the case,
however.  If we re-order the checks (and make them slightly clearer as
well) the warning goes away.  bootm_load_os may only return 0 on
success, BOOTM_ERR_OVERLAP in a non-fatal overlap (already covered in
comments) or a fatal BOOTM_ERR that is covered in the error handler.

Signed-off-by: Tom Rini <trini@ti.com>
12 years agoMerge branch 'u-boot-imx/master' into 'u-boot-arm/master'
Albert ARIBAUD [Fri, 12 Jul 2013 11:20:35 +0000 (13:20 +0200)] 
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'

12 years agomx53ard: Change default environment to cope with OE changes
Otavio Salvador [Fri, 28 Jun 2013 21:52:44 +0000 (18:52 -0300)] 
mx53ard: Change default environment to cope with OE changes

OpenEmbedded has change partitioning layout of generated image so it
does not raise warnings during the boot regarding unkown partition
being used for U-Boot.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx51evk: Change default environment to cope with OE changes
Otavio Salvador [Fri, 28 Jun 2013 21:52:43 +0000 (18:52 -0300)] 
mx51evk: Change default environment to cope with OE changes

OpenEmbedded has change partitioning layout of generated image so it
does not raise warnings during the boot regarding unkown partition
being used for U-Boot.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agowandboard: Change default environment to cope with OE changes
Otavio Salvador [Fri, 28 Jun 2013 21:52:42 +0000 (18:52 -0300)] 
wandboard: Change default environment to cope with OE changes

OpenEmbedded has change partitioning layout of generated image so it
does not raise warnings during the boot regarding unkown partition
being used for U-Boot.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx6slevk: Change default environment to cope with OE changes
Otavio Salvador [Fri, 28 Jun 2013 21:52:41 +0000 (18:52 -0300)] 
mx6slevk: Change default environment to cope with OE changes

OpenEmbedded has change partitioning layout of generated image so it
does not raise warnings during the boot regarding unkown partition
being used for U-Boot.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx6qsabrelite: Change default environment to cope with OE changes
Otavio Salvador [Fri, 28 Jun 2013 21:52:40 +0000 (18:52 -0300)] 
mx6qsabrelite: Change default environment to cope with OE changes

OpenEmbedded has change partitioning layout of generated image so it
does not raise warnings during the boot regarding unkown partition
being used for U-Boot.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53loco: Change default environment to cope with OE changes
Otavio Salvador [Fri, 28 Jun 2013 21:52:39 +0000 (18:52 -0300)] 
mx53loco: Change default environment to cope with OE changes

OpenEmbedded has change partitioning layout of generated image so it
does not raise warnings during the boot regarding unkown partition
being used for U-Boot.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Jason Liu <r64343@freescale.com>
12 years agonet: fec: Avoid MX28 bus sync issue
Marek Vasut [Thu, 11 Jul 2013 23:03:04 +0000 (01:03 +0200)] 
net: fec: Avoid MX28 bus sync issue

The MX28 multi-layer AHB bus can be too slow and trigger the
FEC DMA too early, before all the data hit the DRAM. This patch
ensures the data are written in the RAM before the DMA starts.
Please see the comment in the patch for full details.

This patch was produced with an amazing help from Albert Aribaud,
who pointed out it can possibly be such a bus synchronisation
issue.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
12 years agonet: fec: Remove bogus flush_dcache_range() call
Marek Vasut [Thu, 11 Jul 2013 15:23:26 +0000 (17:23 +0200)] 
net: fec: Remove bogus flush_dcache_range() call

Remove incorrectly called and duplicate flush_dcache_range() call
from fec_mxc driver. The call is not needed, since the caches are
already flushed in fec_tbd_init(), moreover the second argument should
be the ending address, not size.

Signed-off-by: Marek Vasut <marex@denx.de>
Reported-by: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@ti.com>
12 years agom28evk: add trimffs to nand command
Marek Vasut [Sun, 7 Jul 2013 18:20:26 +0000 (20:20 +0200)] 
m28evk: add trimffs to nand command

this is usefull when writing an UBI image which contains
and UBIFS volume (check README.nand and UBI FAQ for more
details)

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
12 years agoARM: tegra: enable LCD panel on Ventana
Stephen Warren [Tue, 18 Jun 2013 15:46:52 +0000 (09:46 -0600)] 
ARM: tegra: enable LCD panel on Ventana

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
12 years agoARM: tegra: enable LCD panel on Harmony
Stephen Warren [Tue, 18 Jun 2013 15:46:51 +0000 (09:46 -0600)] 
ARM: tegra: enable LCD panel on Harmony

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
12 years agoTegra: Config: Enable Tegra30/Tegra114 USB function
Jim Lin [Fri, 21 Jun 2013 11:05:48 +0000 (19:05 +0800)] 
Tegra: Config: Enable Tegra30/Tegra114 USB function

Add USB EHCI, storage and network support.

Tested on Tegra30 Cardhu, and Tegra114 Dalmore
platforms. All works well.

Signed-off-by: Jim Lin <jilin@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
12 years agoARM: Tegra: USB: EHCI: Add support for Tegra30/Tegra114
Jim Lin [Fri, 21 Jun 2013 11:05:47 +0000 (19:05 +0800)] 
ARM: Tegra: USB: EHCI: Add support for Tegra30/Tegra114

Tegra30 and Tegra114 are compatible except PLL parameters.

Tested on Tegra30 Cardhu, and Tegra114 Dalmore
platforms. All works well.

Signed-off-by: Jim Lin <jilin@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
12 years agoARM: Tegra: FDT: Add USB EHCI function for T30/T114
Jim Lin [Fri, 21 Jun 2013 11:05:46 +0000 (19:05 +0800)] 
ARM: Tegra: FDT: Add USB EHCI function for T30/T114

Add DT node for USB EHCI function.
Add support for T30-Cardhu, T30-Beaver, T114-Dalmore boards.

Signed-off-by: Jim Lin <jilin@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
12 years agoMerge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
Albert ARIBAUD [Wed, 10 Jul 2013 18:40:47 +0000 (20:40 +0200)] 
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'

12 years agousb: pxa27x_udc: fix compiler warnings
Mike Dunn [Wed, 26 Jun 2013 19:33:54 +0000 (12:33 -0700)] 
usb: pxa27x_udc: fix compiler warnings

Newer gcc versions warn about unused variables.  This patch corrects a few of
those warnings that popped up in a build for the palmtreo680 board.

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
12 years agodfu: Update DFU's authorship history
Łukasz Majewski [Fri, 5 Jul 2013 09:40:47 +0000 (11:40 +0200)] 
dfu: Update DFU's authorship history

The DFU's state machine original implementation author and copyright were
missing.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>