]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
10 years agozynq: Load environment variables at preboot for SD
Jeremy Herbert [Tue, 10 Mar 2015 03:00:55 +0000 (20:00 -0700)] 
zynq: Load environment variables at preboot for SD

Try to load environment variables from uEnv.txt at preboot for SD card
boot.

Signed-off-by: Jeremy Herbert <jeremy.006@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Set mac address in init sequence
Radhey Shyam Pandey [Thu, 12 Mar 2015 09:17:31 +0000 (14:47 +0530)] 
net: gem: Set mac address in init sequence

Keep enetaddr and mac hw address in sync.
In default config mismatch in received frame
dest address and mac hw address results
in drop of unicast frames.

This patch will be reverted when mainline version
fix this in the core that's why it is just temporary
solution for now.
http://lists.denx.de/pipermail/u-boot/2015-March/208211.html

Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: sf_probe: Get bank selection irrespective of qspi mode
Siva Durga Prasad Paladugu [Tue, 17 Mar 2015 15:53:07 +0000 (21:23 +0530)] 
sf: sf_probe: Get bank selection irrespective of qspi mode

Get the current bank selection irrespective of qspi mode
from the flash device. This solves issue of erase, read and
write to wrong bank.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable FS_GENERIC option
Siva Durga Prasad Paladugu [Fri, 13 Mar 2015 12:13:49 +0000 (17:43 +0530)] 
zynqmp: Enable FS_GENERIC option

Provide an option to write filesystem independend commands.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Modify the sd autoboot command
Siva Durga Prasad Paladugu [Fri, 13 Mar 2015 12:13:49 +0000 (17:43 +0530)] 
zynqmp: Modify the sd autoboot command

Use kernel_addr to load Image.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozyqnmp: Modify the qspi auto boot command
Siva Durga Prasad Paladugu [Fri, 13 Mar 2015 12:13:48 +0000 (17:43 +0530)] 
zyqnmp: Modify the qspi auto boot command

Modify the qspi autoboot command to use
env varibale kernel_addr

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Modify the SD and QSPI bootmode values
Siva Durga Prasad Paladugu [Fri, 13 Mar 2015 05:40:26 +0000 (11:10 +0530)] 
zynqmp: Modify the SD and QSPI bootmode values

Modify the SD bootmode value to 0x3 as per latest
spec. Also add new boot mode QSPI 32 bit boot mode

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonand: arasan_nfc: Clear the command and program registers
Siva Durga Prasad Paladugu [Fri, 13 Mar 2015 07:29:41 +0000 (12:59 +0530)] 
nand: arasan_nfc: Clear the command and program registers

Clear the command and program registers as they might be
held up in the state setup by earlier bootloaders.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonand: arasan_nfc: Clear addr cycles before filling
Siva Durga Prasad Paladugu [Fri, 13 Mar 2015 05:25:05 +0000 (10:55 +0530)] 
nand: arasan_nfc: Clear addr cycles before filling

Clear the address cycles before filling it so that
the correct address cycles would be sent.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonand: Rename nand ZYNQMP config string to Arasan one
Michal Simek [Tue, 10 Mar 2015 13:01:37 +0000 (14:01 +0100)] 
nand: Rename nand ZYNQMP config string to Arasan one

Just to be align with others drivers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoMerge branch 'zynqmp/master' into master
Michal Simek [Tue, 10 Mar 2015 12:06:24 +0000 (13:06 +0100)] 
Merge branch 'zynqmp/master' into master

Merge ZynqMP branch to main xilinx U-Boot repository
and use only ona repo from now.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable multiprocessor control and elf commands
Siva Durga Prasad Paladugu [Tue, 10 Mar 2015 07:25:55 +0000 (12:55 +0530)] 
zynqmp: Enable multiprocessor control and elf commands

Enable multiprocessor control and elf commands for ZynqMP
Also define an environment variable autostart for ZynqMP

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agocommon: cmd_elf: Add support to disable start of application
Siva Durga Prasad Paladugu [Tue, 10 Mar 2015 07:25:54 +0000 (12:55 +0530)] 
common: cmd_elf: Add support to disable start of application

Added support to disable the start of application by using
a environment variable autostart

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: cpu: Add support to control multiple cores
Siva Durga Prasad Paladugu [Tue, 10 Mar 2015 07:25:53 +0000 (12:55 +0530)] 
zynqmp: cpu: Add support to control multiple cores

This patch adds the functionlity of CPUs boot
manipulation, reset and release for ZynqMP

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: nand: Add nand boot mode support
Siva Durga Prasad Paladugu [Thu, 5 Mar 2015 15:46:00 +0000 (21:16 +0530)] 
zynqmp: nand: Add nand boot mode support

Add nand bootmode support to perform autoboot of
Linux in nand bootmode for ZynqMP

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Add missing header for get_uart_clk
Michal Simek [Mon, 9 Mar 2015 09:24:28 +0000 (10:24 +0100)] 
zynqmp: Add missing header for get_uart_clk

This patch remove compilation warning:
arch/arm/cpu/armv8/zynqmp/clk.c:14:15: warning: symbol 'get_uart_clk'
was not declared. Should it be static?

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Remove unknown escape char
Michal Simek [Mon, 9 Mar 2015 09:21:15 +0000 (10:21 +0100)] 
zynqmp: Remove unknown escape char

Remove this warning:
include/configs/xilinx_zynqmp.h:138:67: warning: Unknown escape '$'

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Add sata_root command
Michal Simek [Mon, 9 Feb 2015 13:00:16 +0000 (14:00 +0100)] 
zynqmp: Add sata_root command

For setting up rootfs to sata please make sure
that cpio image is not used. Command line is setup
automatically.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: i2c: Enable i2c driver for zynqMP
Siva Durga Prasad Paladugu [Tue, 3 Mar 2015 09:31:44 +0000 (15:01 +0530)] 
zynqmp: i2c: Enable i2c driver for zynqMP

Enable the i2c driver for ZynqMP
Also enable the eeprom for read and writes
to eeprom on ZynqMP
ZynqMP uses the same i2c controller as in Zynq

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Clean coding style in config file
Michal Simek [Tue, 3 Mar 2015 09:09:43 +0000 (10:09 +0100)] 
zynqmp: Clean coding style in config file

No functional changes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable Nand driver support for zynqmp
Siva Durga Prasad Paladugu [Fri, 27 Feb 2015 09:32:18 +0000 (15:02 +0530)] 
zynqmp: Enable Nand driver support for zynqmp

Enable Nand driver support for ZynqMP
It uses the arasan nand flash controller
Also increased the malloc size as per nand
driver requirement

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: nand: Increase max sizes of OOB and Page size
Siva Durga Prasad Paladugu [Fri, 27 Feb 2015 09:32:17 +0000 (15:02 +0530)] 
mtd: nand: Increase max sizes of OOB and Page size

Increase max sizes for OOB, Page size and eccpos to
suit for Micron MT29F32G08 part

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoarasan: nfc: Add initial nand driver support for Xilinx ZynqMP
Siva Durga Prasad Paladugu [Fri, 27 Feb 2015 09:32:16 +0000 (15:02 +0530)] 
arasan: nfc: Add initial nand driver support for Xilinx ZynqMP

Added initial nand driver support for arasan nand flash
controller. This supports nand erase, nand read, nand write
This uses the hardware ECC for read and write operations
ZynqMP uses this  driver.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: qspi: Remove the old legacy qspi driver
Siva Durga Prasad Paladugu [Sat, 28 Feb 2015 07:15:05 +0000 (12:45 +0530)] 
zynqmp: qspi: Remove the old legacy qspi driver

Removed the old legacy zynqmpqspi driver as the
latest zynqmp qspi driver is available.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: qspi: Switch from zynqmp legacy qspi to generic qspi
Siva Durga Prasad Paladugu [Sat, 28 Feb 2015 07:15:04 +0000 (12:45 +0530)] 
zynqmp: qspi: Switch from zynqmp legacy qspi to generic qspi

Switch from zynqmp legacy qspi to generic qspi as the zynqmp
has new qspi driver available.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: set stripe flag while erasing incase of dual parallel
Siva Durga Prasad Paladugu [Tue, 3 Mar 2015 18:39:50 +0000 (00:09 +0530)] 
sf: set stripe flag while erasing incase of dual parallel

Set stripe flag while erasing incase of dual parallel
configurations. This enables sending erase commands to
both the flash parts separately.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: Changes to support generic qspi
Siva Durga Prasad Paladugu [Sat, 28 Feb 2015 07:15:03 +0000 (12:45 +0530)] 
sf: Changes to support generic qspi

Changes to support generic qspi controller
in handling two separate requests and responses
from two spi flash devices in dual parallel
configuration.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: qspi: Added zynqmp generic qspi driver support
Siva Durga Prasad Paladugu [Sat, 28 Feb 2015 07:15:02 +0000 (12:45 +0530)] 
zynqmp: qspi: Added zynqmp generic qspi driver support

Added generic qspi driver support for zynqmp platform

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: qspi: Renamed zynqmp_qspi to zynqmp_legacy_qspi
Siva Durga Prasad Paladugu [Sat, 28 Feb 2015 07:15:01 +0000 (12:45 +0530)] 
zynqmp: qspi: Renamed zynqmp_qspi to zynqmp_legacy_qspi

Renamed zynqmp_qspi to zynqmp_legacy_qspi so that the qspi
functionality didnt break with any of the zynqmp generic
qspi patch series.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: Correct the macros as per new array fast read command
Siva Durga Prasad Paladugu [Mon, 2 Feb 2015 09:19:59 +0000 (14:49 +0530)] 
sf: Correct the macros as per new array fast read command

Correct the macros as per insertion of array fast read
command

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: mmu: Correct the mmu table to cover the last 2MB
Siva Durga Prasad Paladugu [Tue, 3 Mar 2015 04:19:24 +0000 (09:49 +0530)] 
zynqmp: mmu: Correct the mmu table to cover the last 2MB

Correct the MMU table to cover the last 2MB with its
respective memory attributes. The last 2MB was missing
from MMU table as per earlier patches.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: slcr: Disable all level shifters
Siva Durga Prasad Paladugu [Mon, 2 Mar 2015 10:33:46 +0000 (16:03 +0530)] 
zynq: slcr: Disable all level shifters

Disable all level shifters before enabling
the PS-to-PL level shifters as it would
be good to disable all level shifters before
enabling the PS-to-PL in order to ensure that
it is in proper state

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: nand: Send address cycles as per onfi parameter page
Siva Durga Prasad Paladugu [Fri, 20 Feb 2015 12:14:20 +0000 (17:44 +0530)] 
zynq: nand: Send address cycles as per onfi parameter page

Send address cycles as per value read from onfi parameter
page for Read and write commands instead of using a
hard coded value. This may vary for different parts and
hence use it from onfi parameter page value.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: Unify netread on arm64
Michal Simek [Thu, 15 Jan 2015 10:44:49 +0000 (11:44 +0100)] 
net: Unify netread on arm64

Fix compilation warning and use proper types.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Fix compilation warning around missing sata header
Michal Simek [Wed, 25 Feb 2015 13:32:29 +0000 (14:32 +0100)] 
zynqmp: Fix compilation warning around missing sata header

Warning:
board/xilinx/zynqmp/zynqmp.c: In function ‘scsi_init’:
board/xilinx/zynqmp/zynqmp.c:57:2: warning: implicit declaration of
function ‘ahci_init’ [-Wimplicit-function-declaration]
  ahci_init(ZYNQMP_SATA_BASEADDR);
  ^
board/xilinx/zynqmp/zynqmp.c:58:2: warning: implicit declaration of
function ‘scsi_scan’ [-Wimplicit-function-declaration]
  scsi_scan(1);
  ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoarm: Use more accurate types introduced in mainline
Michal Simek [Wed, 25 Feb 2015 13:17:29 +0000 (14:17 +0100)] 
arm: Use more accurate types introduced in mainline

"ARM: cache-cp15: Use more accurate types"
(sha1: 25026fa9f16dd5f9182b47f76ce5043cb35da3f4)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoqspi: Move zynqmp QSPI driver to separate file
Michal Simek [Wed, 25 Feb 2015 12:56:13 +0000 (13:56 +0100)] 
qspi: Move zynqmp QSPI driver to separate file

This driver comes from zynq_qspi.c driver but
this zynqmp_qspi.c driver will be replaced by different
one that's why this patch is just preparation for easier
merge.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Remove hello message from preboot
Michal Simek [Thu, 12 Feb 2015 11:57:06 +0000 (12:57 +0100)] 
zynqmp: Remove hello message from preboot

Reported-by: Nathan Rossi <nrossi@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Fix xen command which contains too many blank chars
Michal Simek [Thu, 12 Feb 2015 11:55:18 +0000 (12:55 +0100)] 
zynqmp: Fix xen command which contains too many blank chars

Just consmetical change.

Wrong output:
xen=tftpb $fdt_addr system.dtb && fdt addr $fdt_addr && fdt resize &&
tftpb 0x80000 Image &&          fdt set /chosen/dom0 reg <0x80000
0x$filesize> &&                tftpb 6000000 xen.ub && bootm 6000000 -
$fdt_addr

Correct one:
xen=tftpb $fdt_addr system.dtb && fdt addr $fdt_addr && fdt resize &&
tftpb 0x80000 Image && fdt set /chosen/dom0 reg <0x80000 0x$filesize> &&
tftpb 6000000 xen.ub && bootm 6000000 - $fdt_addr

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Start to use fdt_addr instead of hardcoded values
Michal Simek [Mon, 9 Feb 2015 12:57:10 +0000 (13:57 +0100)] 
zynqmp: Start to use fdt_addr instead of hardcoded values

- Also move it to higher location because of bigger rootfs.
- Veloce bootup script needs to be changed to reflect
  this new FDT location.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable support for SATA
Michal Simek [Mon, 9 Feb 2015 09:56:01 +0000 (10:56 +0100)] 
zynqmp: Enable support for SATA

Add minimum SATA support for ZynqMP.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: Added support for spansion S25FS family
Siva Durga Prasad Paladugu [Tue, 3 Feb 2015 12:18:44 +0000 (17:48 +0530)] 
sf: Added support for spansion S25FS family

Added support for spansion S25FS family
This can be determined by reading the 6th
byte of Read ID command response

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: Add support for spansion S25FL132K ans S25FL164K
Siva Durga Prasad Paladugu [Wed, 4 Feb 2015 07:20:35 +0000 (12:50 +0530)] 
sf: Add support for spansion S25FL132K ans S25FL164K

Added support for spansion S25FL132K and S25FL164K QSPI
parts

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: Correct the macros as per new array fast read command
Siva Durga Prasad Paladugu [Mon, 2 Feb 2015 09:19:59 +0000 (14:49 +0530)] 
sf: Correct the macros as per new array fast read command

Correct the macros as per insertion of array fast read
command

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: Add support for ISSI flash parts in zynq
Siva Durga Prasad Paladugu [Tue, 27 Jan 2015 10:57:48 +0000 (16:27 +0530)] 
zynq: Add support for ISSI flash parts in zynq

Add support for ISSI QSPI flash parts support
in zynq.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: Add support for ISSI flash parts
Siva Durga Prasad Paladugu [Tue, 27 Jan 2015 10:57:47 +0000 (16:27 +0530)] 
sf: Add support for ISSI flash parts

Added support for ISSI flash parts IS25LP032,
IS25LP064 and IS25LP128.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Add DOM0 register size calculation by default
Michal Simek [Wed, 28 Jan 2015 10:13:48 +0000 (11:13 +0100)] 
zynqmp: Add DOM0 register size calculation by default

Update dom0 size to cover dynamic case where size of
rootfs is changing at run time.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Add xen boot command
Michal Simek [Fri, 12 Sep 2014 06:33:24 +0000 (08:33 +0200)] 
zynqmp: Add xen boot command

Enable easy way how to run xen.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: nand: Modify address cycles for Spansion S34ML01G
Siva Durga Prasad Paladugu [Tue, 20 Jan 2015 10:14:29 +0000 (15:44 +0530)] 
zynq: nand: Modify address cycles for Spansion S34ML01G

Modify the address cycles for Spansion S34ML01G as per datasheet

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agommc: zynq: Use phys_addr_t for addresses
Michal Simek [Wed, 14 Jan 2015 15:11:47 +0000 (16:11 +0100)] 
mmc: zynq: Use phys_addr_t for addresses

phys_addr_t is designed for physical addresses.
Use it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoserial: Extend structure comments with register offset
Michal Simek [Wed, 7 Jan 2015 14:00:47 +0000 (15:00 +0100)] 
serial: Extend structure comments with register offset

This information help with debugging issues with uart.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Use phys_addr_t instead of int for addresses
Michal Simek [Wed, 14 Jan 2015 14:44:21 +0000 (15:44 +0100)] 
net: gem: Use phys_addr_t instead of int for addresses

Use phys_addr_t for physical address declaration.
It is also unsigned type instead of sign.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: Declare physical address as phys_addr_t unsigned type
Michal Simek [Wed, 14 Jan 2015 14:58:23 +0000 (15:58 +0100)] 
net: Declare physical address as phys_addr_t unsigned type

Use phys_addr_t instead of int for addresses.
Addresses can't be < 0.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: Indentation fix in config file
Michal Simek [Tue, 13 Jan 2015 15:22:14 +0000 (16:22 +0100)] 
zynq: Indentation fix in config file

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynq: Remove duplicated clk.h header
Michal Simek [Tue, 13 Jan 2015 14:50:35 +0000 (15:50 +0100)] 
ARM: zynq: Remove duplicated clk.h header

clk.h was added by:
"Merge tag 'v2014.04' into xilinx/master-next"
(sha1: 8ffced95b73a3bfa080ecc63261a9c6de3f2fe45)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: Revert ancient hack about clearing pending IRQs
Michal Simek [Tue, 13 Jan 2015 14:34:50 +0000 (15:34 +0100)] 
zynq: Revert ancient hack about clearing pending IRQs

This change was introduced by:
"Xilinx: ARM: making u-boot match FSBL for zc770"
(sha1: 1aaeba69a6c070119cae312539eebb60030f6a6e)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: lib: Revert ARM core changes
Michal Simek [Tue, 13 Jan 2015 14:26:50 +0000 (15:26 +0100)] 
ARM: lib: Revert ARM core changes

These chagnes have been done in:
"Merge tag 'v2013.07' into xilinx/master-next"
(sha1: 6978377d4b022d7fd9a8c6f720ebc2e5daaeb173)

Boot process looks good now that's why revert this
patch.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: zynq_qspi: Remove compilation warning caused by min macro
Michal Simek [Tue, 13 Jan 2015 09:56:17 +0000 (10:56 +0100)] 
spi: zynq_qspi: Remove compilation warning caused by min macro

This should be the part of:
"zynq_qspi.c: Set correct frequency regardless of hardware setting"
(sha1: 879358544f7aee5d94c37d2a78622a4b783b8198)

Compilation warning:
In file included from include/common.h:26:0,
                 from drivers/spi/zynq_qspi.c:9:
drivers/spi/zynq_qspi.c: In function 'spi_setup_slave':
include/linux/kernel.h:155:17: warning: comparison of distinct pointer
types lacks a cast [enabled by default]
  (void) (&_min1 == &_min2);  \
                 ^
drivers/spi/zynq_qspi.c:822:28: note: in expansion of macro 'min'
  qspi->qspi.max_speed_hz = min(max_hz, lqspi_frequency);
                            ^
In file included from include/common.h:26:0,
                 from drivers/spi/zynq_qspi.c:9:
drivers/spi/zynq_qspi.c: In function 'spi_setup_slave':
include/linux/kernel.h:155:17: warning: comparison of distinct pointer
types lacks a cast [enabled by default]
  (void) (&_min1 == &_min2);  \
                 ^
drivers/spi/zynq_qspi.c:822:28: note: in expansion of macro 'min'
  qspi->qspi.max_speed_hz = min(max_hz, lqspi_frequency);

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: spi: Return 0 instead of NULL
Michal Simek [Tue, 13 Jan 2015 09:59:52 +0000 (10:59 +0100)] 
mtd: spi: Return 0 instead of NULL

This patch remove warning:
drivers/mtd/spi/sf_probe.c: In function 'spi_flash_validate_params':
drivers/mtd/spi/sf_probe.c:215:4: warning: return makes integer from
pointer without a cast [enabled by default]
    return NULL;
    ^
drivers/mtd/spi/sf_probe.c:223:5: warning: return makes integer from
pointer without a cast [enabled by default]
     return NULL;
     ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agofpga: Remove BIT_COMPRESSED from fpga.h
Michal Simek [Tue, 13 Jan 2015 09:27:31 +0000 (10:27 +0100)] 
fpga: Remove BIT_COMPRESSED from fpga.h

Compressed bitstreams are full or partial and current
fpga command is able to handle compressed bitstreams
by default that's why no enum value is needed for it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoMerge tag 'v2015.01' into master
Michal Simek [Tue, 13 Jan 2015 09:19:59 +0000 (10:19 +0100)] 
Merge tag 'v2015.01' into master

Add AFX/CSE board support - Kconfig entry, defconfigs
Add RSA Kconfig entry and targets for it
Add zc770-xm011 and zynq-cc108 DTBs from the Linux kernel
Sync zynq-7000.dtsi with the Linux kernel.
Use spl_load_image_fat for bitstream loading in SPL.
Disable CONFIG_OF_CONTROL for all zynq boards.

Nand:
- Fix zynq_nand_read_subpage_raw parameters.
- Remove nand.h from sys_proto.h and move it zynq_nand.c
- Do not call nand_release(). Removed by:
  "mtd, ubi, ubifs: resync with Linux-3.14"
  (sha1: ff94bc40af3481d47546595ba73c136de6af6929)

QSPI:
- spi_flash_params has been moved from spi_flash.h
  to sf_internal.h - fix zynq_qspi.c driver to reflect this.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Unify console I/O Buffer size with Zynq
Michal Simek [Thu, 15 Jan 2015 10:37:21 +0000 (11:37 +0100)] 
zynqmp: Unify console I/O Buffer size with Zynq

The reason for using bigger value is user configuration with
scripts on SD.
Also unification with Zynq.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Use predefined memory addresses
Michal Simek [Thu, 15 Jan 2015 10:36:57 +0000 (11:36 +0100)] 
zynqmp: Use predefined memory addresses

Better to use macros instead of hardcoded values.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Get rid of XILINX_ZYNQMP and use CONFIG_TARGET_XILINX_ZYNQMP
Michal Simek [Thu, 15 Jan 2015 10:31:23 +0000 (11:31 +0100)] 
zynqmp: Get rid of XILINX_ZYNQMP and use CONFIG_TARGET_XILINX_ZYNQMP

CONFIG_TARGET_XILINX_ZYNQMP is Kconfig entry which
is better to use.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Fix checkpatch warnings in config file
Michal Simek [Thu, 15 Jan 2015 10:11:18 +0000 (11:11 +0100)] 
zynqmp: Fix checkpatch warnings in config file

Cleanup coding style.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Remove extern prototypes from sys_proto.h
Michal Simek [Thu, 15 Jan 2015 09:59:15 +0000 (10:59 +0100)] 
zynqmp: Remove extern prototypes from sys_proto.h

Checkpatch Warnings:
CHECK: extern prototypes should be avoided in .h files
+extern int zynq_sdhci_init(unsigned long regbase);

CHECK: extern prototypes should be avoided in .h files
+extern unsigned int zynqmp_get_silicon_version(void);

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: slcr: Fix qspi block indentation
Michal Simek [Thu, 15 Jan 2015 10:01:55 +0000 (11:01 +0100)] 
zynqmp: slcr: Fix qspi block indentation

Coding style cleanup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Update Copyrights with 2015 date
Michal Simek [Thu, 15 Jan 2015 09:42:28 +0000 (10:42 +0100)] 
zynqmp: Update Copyrights with 2015 date

Be prepare for mainline submission.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Fix coding style violation in board zynqmp.c
Michal Simek [Thu, 15 Jan 2015 09:35:13 +0000 (10:35 +0100)] 
zynqmp: Fix coding style violation in board zynqmp.c

Trivial fix.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Remove csu reg structure
Michal Simek [Thu, 15 Jan 2015 09:28:59 +0000 (10:28 +0100)] 
zynqmp: Remove csu reg structure

It is completely unused now.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoMAINTAINERS: Add fragment for ZynqMP
Michal Simek [Thu, 15 Jan 2015 08:58:58 +0000 (09:58 +0100)] 
MAINTAINERS: Add fragment for ZynqMP

Prepare for mainline submission.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable TIME and TIMER commands
Michal Simek [Wed, 14 Jan 2015 16:06:19 +0000 (17:06 +0100)] 
zynqmp: Enable TIME and TIMER commands

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable options via defconfig
Michal Simek [Wed, 14 Jan 2015 15:43:14 +0000 (16:43 +0100)] 
zynqmp: Enable options via defconfig

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agommc: zynq: Use phys_addr_t for addresses
Michal Simek [Wed, 14 Jan 2015 15:11:47 +0000 (16:11 +0100)] 
mmc: zynq: Use phys_addr_t for addresses

phys_addr_t is designed for physical addresses.
Use it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agommc: zynq: Remove unused hardware.h header
Michal Simek [Wed, 14 Jan 2015 15:22:28 +0000 (16:22 +0100)] 
mmc: zynq: Remove unused hardware.h header

It is completely unused.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomtd: spi: Return 0 instead of NULL
Michal Simek [Tue, 13 Jan 2015 09:59:52 +0000 (10:59 +0100)] 
mtd: spi: Return 0 instead of NULL

This patch remove warning:
drivers/mtd/spi/sf_probe.c: In function 'spi_flash_validate_params':
drivers/mtd/spi/sf_probe.c:215:4: warning: return makes integer from
pointer without a cast [enabled by default]
    return NULL;
    ^
drivers/mtd/spi/sf_probe.c:223:5: warning: return makes integer from
pointer without a cast [enabled by default]
     return NULL;
     ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoMerge tag 'v2015.01' into zynqmp/master
Michal Simek [Wed, 14 Jan 2015 11:38:43 +0000 (12:38 +0100)] 
Merge tag 'v2015.01' into zynqmp/master

Do version upgrade.

Add sf_internal.h file to zynq_qspi.
Add zynqmp line to arch/arm/cpu/armv8/Makefile.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoarmv8: caches: Disable dcache after flush
Siva Durga Prasad Paladugu [Tue, 13 Jan 2015 09:25:47 +0000 (14:55 +0530)] 
armv8: caches: Disable dcache after flush

Always disable dcache after the flush operation
The following sequence is advisable while disabling d-cache:
1. disable_dcache() - flushes and disables d-cache
2. invalidate_dcache_all() - invalid any entry that came to the cache
   in the short period after the cache was flushed but before the
   cache got disabled

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoPrepare v2015.01 v2015.01
Tom Rini [Mon, 12 Jan 2015 14:39:08 +0000 (09:39 -0500)] 
Prepare v2015.01

Signed-off-by: Tom Rini <trini@ti.com>
10 years agoNokia RX-51: Do not call secure PPA routine on non secure devices
Pali Rohár [Thu, 8 Jan 2015 09:11:40 +0000 (10:11 +0100)] 
Nokia RX-51: Do not call secure PPA routine on non secure devices

Since commit 41623c91b09a0c865fab41acdaff30f060f29ad6 u-boot running in qemu is
crashing in function do_omap3_emu_romcode_call(). RX-51 board uses this function
for Cortex-A8 errata 430973 workaround (Set IBE bit in ACR) which is needed only
on real secure device and not in qemu.

This board patch just disable calling secure PPA routine on non secure devices.
Qemu implements GP device and with this patch u-boot is working in qemu again.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
10 years agopowerpc: xes: Add maintainer
Peter Tyser [Fri, 9 Jan 2015 21:42:51 +0000 (15:42 -0600)] 
powerpc: xes: Add maintainer

Add Peter Tyser as the maintainer of Extreme Engineering Solutions products.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
10 years agopowerpc: xes: Convert to generic board
John Schmoller [Fri, 9 Jan 2015 21:42:50 +0000 (15:42 -0600)] 
powerpc: xes: Convert to generic board

Convert Extreme Engineering Solutions products to use generic board
support.

Signed-off-by: John Schmoller <jschmoller@xes-inc.com>
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
10 years agoARM: remove redudant information from Kconfig files
Masahiro Yamada [Fri, 19 Dec 2014 05:27:13 +0000 (14:27 +0900)] 
ARM: remove redudant information from Kconfig files

- "string" type for SYS_* is defined in arch/Kconfig
 - SYS_CPU "armv7" has been replaced with "select CPU_V7"
 - SYS_SOC "tegra124" is already defined in tegra124/Kconfig

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Bo Shen <voice.shen@atmel.com>
10 years agoomap: beagle_x15: add MAINTAINERS
Masahiro Yamada [Fri, 19 Dec 2014 05:20:58 +0000 (14:20 +0900)] 
omap: beagle_x15: add MAINTAINERS

Commit 1e4ad74b875f (beagle_x15: add board support for Beagle x15)
missed to add board/ti/beagle_x15/MAINTAINERS.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Felipe Balbi <balbi@ti.com>
10 years agostv0991: record defconfig ownership in MAINTAINERS
Masahiro Yamada [Fri, 19 Dec 2014 05:19:07 +0000 (14:19 +0900)] 
stv0991: record defconfig ownership in MAINTAINERS

This commit fixes warnings reported by tools/genboardscfg.py.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Vikas Manocha <vikas.manocha@st.com>
Acked-by: Vikas Manocha <vikas.manocha@st.com>
10 years agoARM: kirkwood: dns325: Add generic board support
Stefan Herbrechtsmeier [Sun, 28 Dec 2014 13:09:51 +0000 (14:09 +0100)] 
ARM: kirkwood: dns325: Add generic board support

Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
10 years agoChange e-mail address of Stefan Herbrechtsmeier
Stefan Herbrechtsmeier [Sun, 28 Dec 2014 13:09:50 +0000 (14:09 +0100)] 
Change e-mail address of Stefan Herbrechtsmeier

Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
10 years agocommon/board_f.c: fix compile error when tracing disabled
Kevin Hilman [Mon, 15 Dec 2014 20:07:52 +0000 (12:07 -0800)] 
common/board_f.c: fix compile error when tracing disabled

When CONFIG_TRACE is disabled, linking fails with:

common/built-in.o:(.data.init_sequence_f+0x8): undefined reference to `trace_early_init'

To fix, wrap trace init calls with #ifdef CONFIG_TRACE.

While at it, remove the static inline version of the init call from
trace.h as suggested by Simon Glass, since it doesnt work.

Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@ti.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Simon Glass <sjg@chromium.org>
10 years agotools/kwbimage.c: fix parser error handling
Andreas Bießmann [Fri, 24 Oct 2014 21:25:52 +0000 (23:25 +0200)] 
tools/kwbimage.c: fix parser error handling

The two error checks for image_boot_mode_id and image_nand_ecc_mode_id where
wrong and would never fail, fix that!

This was detected by Apple's clang compiler:
---8<---
  HOSTCC  tools/kwbimage.o
tools/kwbimage.c:553:20: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                if (el->bootfrom < 0) {
                    ~~~~~~~~~~~~ ^ ~
tools/kwbimage.c:571:23: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                if (el->nandeccmode < 0) {
                    ~~~~~~~~~~~~~~~ ^ ~
2 warnings generated.
--->8---

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Acked-By: Jeroen Hofstee <jeroen@myspectrum.nl>
10 years agoARM: atmel: sama5d3xek: fix the LCD parameters
Bo Shen [Thu, 8 Jan 2015 07:20:13 +0000 (15:20 +0800)] 
ARM: atmel: sama5d3xek: fix the LCD parameters

Remove unused vsync parameter, and correct the include file.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
10 years agoARM: atmel: sama5d4xek: fix the LCD parameters
Bo Shen [Thu, 8 Jan 2015 07:20:12 +0000 (15:20 +0800)] 
ARM: atmel: sama5d4xek: fix the LCD parameters

Remove unused vsync parameter, and correct the include file.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
10 years agoARM: atmel: sama5d4 xplained: fix the LCD parameters
Bo Shen [Thu, 8 Jan 2015 07:20:11 +0000 (15:20 +0800)] 
ARM: atmel: sama5d4 xplained: fix the LCD parameters

Correct the LCD pixel clock, remove unused vsync parameter,
and also correct the include file.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
10 years agofix: tools: kwbimage.c: Initialize headersz to suppress warning
Łukasz Majewski [Fri, 21 Nov 2014 08:22:43 +0000 (09:22 +0100)] 
fix: tools: kwbimage.c: Initialize headersz to suppress warning

When building with my toolchain (4.8.2):
CROSS_COMPILE=/home/lukma/work/ptxdist/toolchains/arm/OSELAS.Toolchain-2013.12.0/arm-v7a-linux-gnueabi/gcc-4.8.2-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/bin/arm-v7a-linux-gnueabi-

I see following WARNING:
tools/kwbimage.c: In function "kwbimage_set_header":
tools/kwbimage.c:803:8: warning: "headersz" may be used uninitialized in this function [-Wmaybe-uninitialized]
  memcpy(ptr, image, headersz);
        ^
This fix aims to suppress it.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
10 years agoMerge git://git.denx.de/u-boot-nand-flash
Tom Rini [Sat, 10 Jan 2015 18:27:27 +0000 (13:27 -0500)] 
Merge git://git.denx.de/u-boot-nand-flash

10 years agoarc: introduce "mdbtrick" target
Alexey Brodkin [Mon, 29 Dec 2014 12:42:57 +0000 (15:42 +0300)] 
arc: introduce "mdbtrick" target

MetaWare debugger (MDB) is still used as a primary tool for interaction
with target via JTAG. Moreover some very advanced features are not yet
implemented in GDB for ARC (and not sure if they will be implemnted
sometime soon given complexity and rare need for those features for
common user).

So if we're talking about development process when U-Boot is loaded in
target memory not by low-level boot-loader but manually through JTAG
chances are high developer uses MDB for it.

But MDB doesn't support PIE (position-independent executable) - it will
refuse to even start - that means no chance to load elf contents on
target.
Then the only way to load U-Boot in MDB is to fake it by:
  1. Reset PIE flag in ELF header
     This is simpe - on attempt to open elf MDB checks header and if it
doesn't match its expectation refuces to use provided elf.
  2. Strip all debug information from elf
     If (1) is done then MDB will open elf but on parsing of elf's debug
info it will refuse to process due to debug info it cannot understand
(symbols with PIE relocation).

Even though it could be done manually (I got it documented quite a while
ago here http://www.denx.de/wiki/U-Boot/ARCNotes) having this automated
way is very convenient. User may build U-Boot that will be loaded on
target via MDB saying "make mdbtrick".

Then if we now apply the manipulation MDB will happily start and will
load all required sections into the target.

Indeed there will be no source-level debug info available. But still MDB
will do its work on showing disassembly, global symbols, registers,
accessing low-level debug facilities etc.

As a summary - this is a pretty dirty hack but it simplifies life a lot
for us ARc developers.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
10 years agomtd: nand: do not scan BBT after scrub
Masahiro Yamada [Fri, 26 Dec 2014 13:20:58 +0000 (22:20 +0900)] 
mtd: nand: do not scan BBT after scrub

Currently, "nand scrub" runs chip->scan_bbt at the end of
nand_erase_opts() even if NAND_SKIP_BBTSCAN flag is set.

It violates the intention of NAND_SKIP_BBTSCAN.

Move NAND_SKIP_BBTSCAN flag check to nand_block_checkbad() so that
chip->scan_bbt() is never run if NAND_SKIP_BBTSCAN is set.

Also, unset NAND_BBT_SCANNED flag instead of running chip->scan_bbt()
right after scrub.  We can be lazier here because the BBT is scanned
at the next call of nand_block_checkbad().

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Scott Wood <scottwood@freescale.com>
10 years agomtd: nand: Mark the BBT as scanned prior to calling scan_bbt again
Masahiro Yamada [Fri, 26 Dec 2014 13:20:57 +0000 (22:20 +0900)] 
mtd: nand: Mark the BBT as scanned prior to calling scan_bbt again

Commit 35c204d8a9d0 (nand: reinstate lazy bad block scanning)
broke NAND_BBT_USE_FLASH feature.

Its git-log claimed that it reinstated the change as by commit
fb49454b1b6c ("nand: reinstate lazy bad block scanning"), but it moved
"chip->options |= NAND_BBT_SCANNED" below "chip->scan_bbt(mtd);".

It causes recursion if scan_bbt does not find a flash based BBT
and tries to write one, and the attempt to erase the BBT area
causes a bad block check.

Reinstate commit ff49ea8977b5 (NAND: Mark the BBT as scanned prior to
calling scan_bbt.).

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Rostislav Lisovy <lisovy@merica.cz>
Cc: Heiko Schocher <hs@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
10 years agomtd: nand: revive "nand scrub" command
Masahiro Yamada [Tue, 16 Dec 2014 06:36:33 +0000 (15:36 +0900)] 
mtd: nand: revive "nand scrub" command

Since commit ff94bc40af34 (mtd, ubi, ubifs: resync with Linux-3.14),
the "nand scrub" command has not been working.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Heiko Schocher <hs@denx.de>
10 years agoarm: vf610: fix boot from SD-card
Stefan Agner [Thu, 8 Jan 2015 17:18:25 +0000 (18:18 +0100)] 
arm: vf610: fix boot from SD-card

Boot from SD-card (and probably also from NAND) was broken since
commit d6d07a9bec ("arm: vf610: add NAND support for vf610twr").
It looks like the increased size of U-Boot lead to a situation
where the boot ROM overwrote its own stack/heap while loading
U-Boot from the SD-card to the SRAM. However, U-Boot worked fine
when loaded through USB serial loader directly into SRAM. It
looks like loading from SD-card uses other stack/heap location
then the serial loader (or maybe no stack or heap at all).
This fix moves U-Boot to gfxRAM, which is 512kB in size and is not
used by the boot ROM nor the SD-card loader of it.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Bill Pringlemeir <bpringlemeir@nbsps.com>
10 years agoarm: build arch memset/memcpy in Thumb2 mode
Stefan Agner [Thu, 18 Dec 2014 17:10:33 +0000 (18:10 +0100)] 
arm: build arch memset/memcpy in Thumb2 mode

Resynchronize memcpy/memset with kernel 3.17 and build them in
Thumb2 mode (unified syntax). Those assembler files can be built
and linked in ARM mode too, however when calling them from Thumb2
built code, the stack got corrupted and the copy did not succeed
(the exact details have not been traced back). However, the Linux
kernel builds those files in Thumb2 mode. Hence U-Boot should
build them in Thumb2 mode too when CONFIG_SYS_THUMB_BUILD is set.

To build the files without warning, some assembler instructions
had to be replaced with their UAL compliant variant (thanks
Jeroen for this input).

To build the file in Thumb2 mode the implicit-it=always option need
to be set to generate Thumb2 compliant IT instructions where needed.
We add this option to the general AFLAGS when building for Thumb2.

Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>