]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
9 years agospi: spi_flash: Correctly determine the selected bank and lock status
Siva Durga Prasad Paladugu [Wed, 5 Oct 2016 11:10:15 +0000 (16:40 +0530)] 
spi: spi_flash: Correctly determine the selected bank and lock status

Correctly determine the selected bank and flash lock status incase
of dual parallel mode when using generic qspi controller.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Adjust to new SMC interface to get silicon version
Soren Brinkmann [Thu, 29 Sep 2016 18:44:41 +0000 (11:44 -0700)] 
zynqmp: Adjust to new SMC interface to get silicon version

The new FW interface returns the IDCODE and version register, leaving
extracting bitfields to the caller.

Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotools: mkimage: Add support for initialization table for Zynq and ZynqMP
Mike Looijmans [Tue, 20 Sep 2016 09:37:24 +0000 (11:37 +0200)] 
tools: mkimage: Add support for initialization table for Zynq and ZynqMP

The Zynq/ZynqMP boot.bin file contains a region for register initialization
data. Filling in proper values in this table can reduce boot time
(e.g. about 50ms faster on QSPI boot) and also reduce the size of
the SPL binary.

The table is a simple text file with register+data on each line. Other
lines are simply skipped. The file can be passed to mkimage using the
"-R" parameter.

It is recommended to add reg init file to board folder.
For example:
CONFIG_BOOT_INIT_FILE="board/xilinx/zynqmp/xilinx_zynqmp_zcu102/reg.int

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use the same name for atf image everywhere
Michal Simek [Wed, 21 Sep 2016 09:42:58 +0000 (11:42 +0200)] 
ARM64: zynqmp: Use the same name for atf image everywhere

Use atf-uboot.ub image instead of atf.ub.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: spi_flash: Add support for QSPI part MT25QL02G/MT25QU02G
Siva Durga Prasad Paladugu [Wed, 28 Sep 2016 06:08:22 +0000 (11:38 +0530)] 
spi: spi_flash: Add support for QSPI part MT25QL02G/MT25QU02G

Add support for QSPI parts MT25QL02G and MT25QU02G

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add dcc port to dtsi
Michal Simek [Fri, 9 Sep 2016 06:46:39 +0000 (08:46 +0200)] 
ARM64: zynqmp: Add dcc port to dtsi

Add dcc to dtsi for supporting system without serial port.
DCC is enabled by default on ZynqMP.
Adding dcc to zcu100 and zcu102 which were tested.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Add dependency on phylib for mdio command
Michal Simek [Fri, 2 Sep 2016 10:40:26 +0000 (12:40 +0200)] 
test/py: Add dependency on phylib for mdio command

Discover on zcu100 where phylib is not enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agofpga: zynqmp: Fix coding style in fpga driver
Michal Simek [Fri, 2 Sep 2016 07:50:47 +0000 (09:50 +0200)] 
fpga: zynqmp: Fix coding style in fpga driver

Trivial changes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix coding style
Michal Simek [Fri, 2 Sep 2016 07:49:52 +0000 (09:49 +0200)] 
ARM64: zynqmp: Fix coding style

Fix long lines and checkpatch.pl violations.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Enable fastboot for first SD/MMC/EMMC device
Siva Durga Prasad Paladugu [Thu, 12 May 2016 05:24:41 +0000 (10:54 +0530)] 
ARM64: zynqmp: Enable fastboot for first SD/MMC/EMMC device

DNL numbers are not changed that's why fastboot needs to be called with
-i parameter (Xilinx vendor id).

- Show available devices
sudo fastboot -i 0x03fd devices
xilinx_zynqmp_zcu100 fastboot

- Stop fastboot and go back to U-Boot prompt
sudo fastboot -i 0x03fd continue

- Reboot the board
sudo fastboot -i 0x03fd reboot

- Get internal variables
sudo fastboot -i 0x3fd getvar bootloader-version
bootloader-version: U-Boot 2016.07-00026-g19bd53044817
sudo fastboot -i 0x3fd getvar downloadsize
downloadsize: 0x06000000
sudo fastboot -i 0x3fd getvar version
version: 0.4
(regular variables needs to have fastboot. prefix - there is also
serialno variable which should be define as serial#)

- Format SD/MMC/EMMC card
sudo fastboot -i 0x3fd oem format
- Write images to boot and Linux partition
sudo fastboot -i 0x3fd flash boot sd.img
sudo fastboot -i 0x3fd flash Linux os.img

- Creating sd.img or os.img
$ dd if=/dev/zero of=sd.img bs=1024 count=1024
$ mkfs.vfat sd.img
$ mkdir sd-mount
$ mount -o loop sd.img sd-mount
$ echo foo > sd-mount/bar
$ umount sd-mount

partitions setting should be checked by running gpt command.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Record board name as serial number for DFU/FASTBOOT
Michal Simek [Thu, 1 Sep 2016 09:27:32 +0000 (11:27 +0200)] 
ARM64: zynqmp: Record board name as serial number for DFU/FASTBOOT

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix usb_gadget_handle_interrupt routine
Michal Simek [Thu, 1 Sep 2016 09:16:40 +0000 (11:16 +0200)] 
ARM64: zynqmp: Fix usb_gadget_handle_interrupt routine

Function is defined in g_dnl.h and have different parameter
then it is used. This patch fixes it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Force certain bootmode for SPL
Michal Simek [Tue, 30 Aug 2016 14:17:27 +0000 (16:17 +0200)] 
ARM64: zynqmp: Force certain bootmode for SPL

ZynqMP provides an option to overwrite bootmode setting which
can change SPL behavior.
For example: boot SPL via JTAG and then SPL loads images from SD.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Enable SPI for zcu100
Michal Simek [Thu, 1 Sep 2016 07:45:30 +0000 (09:45 +0200)] 
ARM64: zynqmp: Enable SPI for zcu100

spi is bus 1, qspi is bus 0.

Example:
(Read max3107 ID)
ZynqMP> sspi 1:0.0 16 1f00
00A1
(Write gpio direction out - reg 18 - for all gpio pins)
ZynqMP> sspi 1:0.0 16 980f
0000
(Write value 1 (reg 19) for BT and WIFI (bit 0/bit 1)
ZynqMP> sspi 1:0.0 16 9903
0000

All write commands based on spec have 0x80 + reg address
as the first 8 bits.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: zynq: Use variable to remove u32 to u64 conversions
Michal Simek [Thu, 1 Sep 2016 10:51:27 +0000 (12:51 +0200)] 
spi: zynq: Use variable to remove u32 to u64 conversions

Current code generates warning when it is compiled for arm64:
Warnings:
In file included from drivers/spi/zynq_spi.c:14:0:
drivers/spi/zynq_spi.c: In function ‘zynq_spi_init_hw’:
drivers/spi/zynq_spi.c:95:9: warning: large integer implicitly truncated
to unsigned type [-Woverflow]
  writel(~ZYNQ_SPI_ENR_SPI_EN_MASK, &regs->enr);
         ^
./arch/arm/include/asm/io.h:146:34: note: in definition of macro
‘writel’
 #define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v;
})
                                  ^
drivers/spi/zynq_spi.c: In function ‘zynq_spi_release_bus’:
drivers/spi/zynq_spi.c:177:9: warning: large integer implicitly
truncated to unsigned type [-Woverflow]
  writel(~ZYNQ_SPI_ENR_SPI_EN_MASK, &regs->enr);
         ^
./arch/arm/include/asm/io.h:146:34: note: in definition of macro
‘writel’
 #define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v;
})
                                  ^
This patch is using one variable to do conversion via u32 variable.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add support for DFU from SPL
Michal Simek [Fri, 19 Aug 2016 12:14:52 +0000 (14:14 +0200)] 
ARM64: zynqmp: Add support for DFU from SPL

SPL needs to have bigger stack size because of USB.
Simple malloc needs to be disabled because dfu code requires different
allocation functions. There is no space in OCM that's why random place
in DDR is used.

BOOTD must be disabled because it is causing compilation error.

All variables are disabled and used only variables valid for DFU because
they are simple huge. Including automatic variables added by
CONFIG_ENV_VARS_UBOOT_CONFIG.
Hardcode addresses for u-boot, atf, kernel and dtb
just for SPL DFU code.

Enable SPL DFU for zcu100.
Create new usb_dfu_spl variable just to run Linux kernel loaded in SPL.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: Add new BOOT_DEVICE_DFU boot mode
Michal Simek [Tue, 30 Aug 2016 13:38:57 +0000 (15:38 +0200)] 
ARM: Add new BOOT_DEVICE_DFU boot mode

This enum is needed when SPL_DFU is enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agocmd: dfu: Add error handling for board_usb_init
Michal Simek [Tue, 30 Aug 2016 13:16:51 +0000 (15:16 +0200)] 
cmd: dfu: Add error handling for board_usb_init

board_usb_init() can failed and error should be handled properly.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Heiko Schocher<hs@denx.de>
9 years agocmd: dfu: Add error handling for failed registration
Sanchayan Maity [Mon, 8 Aug 2016 11:26:17 +0000 (16:56 +0530)] 
cmd: dfu: Add error handling for failed registration

Without this, if g_dnl_register() fails, DFU code continues on
blindly and crashes. This fix makes it simply print an error
message instead.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
[l.majewski@samsung.com - some manual tweaks needed]

9 years agodra7x: boot: add dfu bootmode support
B, Ravi [Thu, 28 Jul 2016 12:09:17 +0000 (17:39 +0530)] 
dra7x: boot: add dfu bootmode support

This patch enables the DFU boot mode support
for dra7x platform.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agospl: dfu: adding dfu support functions for SPL-DFU
B, Ravi [Thu, 28 Jul 2016 12:09:16 +0000 (17:39 +0530)] 
spl: dfu: adding dfu support functions for SPL-DFU

Adding support functions to run dfu spl commands.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agocommon: dfu: saperate the dfu common functionality
B, Ravi [Thu, 28 Jul 2016 12:09:15 +0000 (17:39 +0530)] 
common: dfu: saperate the dfu common functionality

The cmd_dfu functionality is been used by both SPL and
u-boot, saperating the core dfu functionality moving
it to common/dfu.c.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agospl: dfu: add dfu support in SPL
B, Ravi [Thu, 28 Jul 2016 12:09:14 +0000 (17:39 +0530)] 
spl: dfu: add dfu support in SPL

Traditionally the DFU support is available only
as part 2nd stage boot loader(u-boot) and DFU
is not supported in SPL.

The SPL-DFU feature is useful for boards which
does not have MMC/SD, ethernet boot mechanism
to boot the board and only has USB inteface.

This patch add DFU support in SPL with RAM
memory device support to load and execute u-boot.
And then leverage full functionality DFU in
u-boot to flash boot inital binary images to
factory or bare-metal boards to memory devices
like SPI, eMMC, MMC/SD card using USB interface.

This SPL-DFU support can be enabled through
Menuconfig->Boot Images->Enable SPL-DFU support

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoARM64: zynqmp: Move BSS location to the beginning of ram
Michal Simek [Tue, 30 Aug 2016 12:58:46 +0000 (14:58 +0200)] 
ARM64: zynqmp: Move BSS location to the beginning of ram

With SPL_DFU support memory layout needs to be cleanup
that's why move bss to the start of memory.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix kernel location to fit with Image entry point
Michal Simek [Tue, 30 Aug 2016 10:42:05 +0000 (12:42 +0200)] 
ARM64: zynqmp: Fix kernel location to fit with Image entry point

This fix is required for getting dfu up and running.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoqspi: zynqmp: Restrict baud rate value to max value
Siva Durga Prasad Paladugu [Wed, 14 Sep 2016 06:37:14 +0000 (12:07 +0530)] 
qspi: zynqmp: Restrict baud rate value to max value

Restrict baud rate disvisor value to max possible
baud rate value. This fixes the baud rate value overflow
condition which results in programming the incorrect baud
rate divisor value.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Add support for SD1 with level shifters bootmode
Siva Durga Prasad Paladugu [Wed, 21 Sep 2016 06:15:05 +0000 (11:45 +0530)] 
zynqmp: Add support for SD1 with level shifters bootmode

Add support for SD1 with level shifters bootmode.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: xilinx_spi: Correct the fifo-depth calculation
Siva Durga Prasad Paladugu [Mon, 29 Aug 2016 07:31:19 +0000 (13:01 +0530)] 
spi: xilinx_spi: Correct the fifo-depth calculation

Correctly fill the fifo depth by passing correct node in getting
it from device tree. This fixes the issue of hanging in a loop while
reading environment from spi flash during boot up which is caused by
commit "spi: xilinx_spi: Modify transfer logic for quad mode"
(sha1: c638e0e80e5ddfac2999692f4aa824021bf3f196)

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonand: arasan_nfc: Clear ecc on bit while sending read command
Siva Durga Prasad Paladugu [Thu, 25 Aug 2016 10:30:04 +0000 (16:00 +0530)] 
nand: arasan_nfc: Clear ecc on bit while sending read command

Clear ecc ON bit while sending read command as all types
of read command(like reading spare) doesnt need ECC to be
enabled. It has been anyway taken care in other places
whereever required using arasan_nand_enable_ecc().

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Get chipid from ATF using SMC
Siva Durga Prasad Paladugu [Wed, 24 Aug 2016 09:19:12 +0000 (14:49 +0530)] 
zynqmp: Get chipid from ATF using SMC

Get the chipid from ATF using SMC as ATF
is supporting it now.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agofpga: zynqmp: Add support to load PL bistream
Siva Durga Prasad Paladugu [Wed, 24 Aug 2016 09:19:11 +0000 (14:49 +0530)] 
fpga: zynqmp: Add support to load PL bistream

Update PL bitstream load support by updating the
smc arguments as per latest ATF changes.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: xilinx_spi: Modify transfer logic for quad mode
Siva Durga Prasad Paladugu [Tue, 23 Aug 2016 05:15:52 +0000 (10:45 +0530)] 
spi: xilinx_spi: Modify transfer logic for quad mode

Modify the transfer logic to get it working for both single
and quad modes. The controller expects 4 dummy bytes for
quad read and also expects the txfifo filled with full command
and required args before starting the transfer. This fixes
an issue in reading from device using quad read command.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Extend malloc len for zc702
Michal Simek [Mon, 22 Aug 2016 13:31:14 +0000 (15:31 +0200)] 
ARM: zynq: Extend malloc len for zc702

There is an issue in SPL with insufficient malloc space.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Make the board configuration name user definable
Sai Pavan Boddu [Tue, 16 Aug 2016 11:42:05 +0000 (17:12 +0530)] 
microblaze: Make the board configuration name user definable

Add a prompt for editing in menuconfig

Signed-off-by: Sai Pavan Boddu <saipava@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: Add early support for zcu100
Michal Simek [Mon, 8 Aug 2016 08:26:49 +0000 (10:26 +0200)] 
ARM64: Add early support for zcu100

DTS file contains a lot of FIXMEs which need to be validated prior board
bring-up.

Board has 1GB memory
Uart over extension connector MIO 8/9.
DP - used fixed clock for LG monitor.

Enable SPL: (Generated May 25th)
/group/siv2/work/ronaldo/kevant/alto/vnc/vnc1_0/hw/hwflow_local/clk/
Vivado:
/proj/xbuilds/2016.3_0513_1/installs/lin64/Vivado/2016.3/settings64.sh
Disabled DDR init from psu_init - broken.

Also with disabled internal pull-ups on pin 76 and 77.

GT description for USBs and DP.
Reference input clock for USB is commit from CLK lane 0
and for DP from lane 1 that's why LANE_NUM reflects that.
Lane 0 - PS_MGTREFCLK0, Lane 1 - PS_MGTREFCLK1.
USB GTs are disabled because ULPI PHY reset in Linux also causing reset
for spi/wifi/bt chips.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix USB ulpi phy sequence
Michal Simek [Tue, 16 Aug 2016 13:40:05 +0000 (15:40 +0200)] 
ARM64: zynqmp: Fix USB ulpi phy sequence

It should be enough to call low(5us)->high pulse for all cases
to provide proper reset. There is no need to call high->low->high.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add support for USB ulpi phy reset via mode pins
Michal Simek [Mon, 15 Aug 2016 07:41:36 +0000 (09:41 +0200)] 
ARM64: zynqmp: Add support for USB ulpi phy reset via mode pins

Mode pins can be used as output for reset. Xilinx boards are using
this feature as additional way how to reset USB phys and also others
chips on the boards.
Mode1 is used on all these boards for this feature.
Let SPL toggle reset on this pin by default.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoimage-fit: fix fit_image_load() OS check
Andreas Bießmann [Sun, 14 Aug 2016 18:31:24 +0000 (20:31 +0200)] 
image-fit: fix fit_image_load() OS check

Commit 62afc601883e788f3f22291202d5b2a23c1a8b06 introduced fpga image load via
bootm but broke the OS check in fit_image_load().

This commit removes following compiler warning:

---8<---
In file included from tools/common/image-fit.c:1:
/Volumes/devel/u-boot/tools/../common/image-fit.c:1715:39: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
        os_ok = image_type == IH_TYPE_FLATDT || IH_TYPE_FPGA ||
                                             ^  ~~~~~~~~~~~~
/Volumes/devel/u-boot/tools/../common/image-fit.c:1715:39: note: use '|' for a bitwise operation
        os_ok = image_type == IH_TYPE_FLATDT || IH_TYPE_FPGA ||
                                             ^~
                                             |
1 warning generated.
--->8---

Signed-off-by: Andreas Bießmann <andreas@biessmann.org>
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Wire up PSCI reset
Michal Simek [Wed, 27 Jul 2016 11:40:19 +0000 (13:40 +0200)] 
ARM64: zynqmp: Wire up PSCI reset

Using PSCI to reset the system.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agolibfdt: Introduce new ARCH_FIXUP_FDT option
Michal Simek [Thu, 28 Jul 2016 07:06:41 +0000 (09:06 +0200)] 
libfdt: Introduce new ARCH_FIXUP_FDT option

Add new Kconfig option to disable arch_fixup_fdt() calls for cases where
U-Boot shouldn't update memory setup in DTB file.
One example of usage of this option is to boot OS with different memory
setup than U-Boot use.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agoRevert "libfdt: Add option to disable arch_fixup_fdt() calls"
Michal Simek [Wed, 10 Aug 2016 05:50:26 +0000 (07:50 +0200)] 
Revert "libfdt: Add option to disable arch_fixup_fdt() calls"

This reverts commit fd03516f7b53e135e1cb0029a899851a01d0fbde.

This patch went to mainline with positive logic that's why revert this
patch and apply mainline one instead.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Remove unnnecessary board config file for DC4
Siva Durga Prasad Paladugu [Mon, 1 Aug 2016 05:06:21 +0000 (10:36 +0530)] 
zynqmp: Remove unnnecessary board config file for DC4

Remove unnecessary board specific config file for DC4
board.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Move config IDENT_STRING to defconfig
Siva Durga Prasad Paladugu [Mon, 1 Aug 2016 05:06:20 +0000 (10:36 +0530)] 
zynqmp: Move config IDENT_STRING to defconfig

Move config IDENT_STRING to defconfig for all
zynqmp boards

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoKconfig: Added new kconfig entry for IDENT_STRING
Siva Durga Prasad Paladugu [Mon, 1 Aug 2016 05:06:19 +0000 (10:36 +0530)] 
Kconfig: Added new kconfig entry for IDENT_STRING

Added new Kconfig entry for config IDENT_STRING.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Wire up both USBs available on ZynqMP
Michal Simek [Mon, 8 Aug 2016 08:11:26 +0000 (10:11 +0200)] 
ARM64: zynqmp: Wire up both USBs available on ZynqMP

The second USB wasn't enabled. This patch fixes it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix psu_init_gpl* violations
Michal Simek [Mon, 8 Aug 2016 11:17:07 +0000 (13:17 +0200)] 
ARM64: zynqmp: Fix psu_init_gpl* violations

psu_init_gpl.c/h have pretty bad quality which requires additional fixes
to remove all reported warnings. Also coding style is bad.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Update psu_init_gpl* files for v2 silicon
Michal Simek [Mon, 8 Aug 2016 11:13:25 +0000 (13:13 +0200)] 
ARM64: zynqmp: Update psu_init_gpl* files for v2 silicon

Update configuration for 15eg silicon instead of 9eg v1.

Also with manual patch:
"xilinx_zynqmp_zcu102: Set QSPI clock divisor to "9""
(sha1: 39ba61813bd35969e94f8a355167d61ce2cd1fab)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoxilinx_zynqmp_zcu102: Set QSPI clock divisor to "9"
Mike Looijmans [Fri, 29 Jul 2016 08:07:57 +0000 (10:07 +0200)] 
xilinx_zynqmp_zcu102: Set QSPI clock divisor to "9"

The zynqmp_qspi driver assumes that the QSPI clock runs at 166666666 Hz,
set the divisor such that this is true. The IOPLL runs at 1500, so a
divisor of 0x0c would results in 125MHz.

The optimal divisor for the zcu102 would be "7", which would run the
clock at 214MHz and could thus generate almost 108MHz which is the max
clock rate for the flash chips on the board.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Acked-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Update Xen boot commands
Alistair Francis [Thu, 28 Jul 2016 22:44:38 +0000 (15:44 -0700)] 
ARM64: zynqmp: Update Xen boot commands

Update the Xen boot commands to add in all the required options for hardware
boot and QEMU boot.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix stack pointer initialization
Soren Brinkmann [Wed, 27 Jul 2016 21:12:03 +0000 (14:12 -0700)] 
ARM64: zynqmp: Fix stack pointer initialization

This partly reverts commit:
"ARM64: zynqmp: Add SPL support support"
(sha1: e6a9ed04e78cf87ec97e306fa4e7a1669ef98df6)

Stack can rewrite ATF code.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Fix cc108 support
Michal Simek [Tue, 10 May 2016 11:27:18 +0000 (13:27 +0200)] 
ARM: zynq: Fix cc108 support

There is incorrect reference to cc108 SPL
and also fix dts file to be aligned with the latest bitstream for this
board.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynq: defconfig: Remove unnecessary board specifc config files
Siva Durga Prasad Paladugu [Wed, 27 Jul 2016 10:31:46 +0000 (16:01 +0530)] 
zynq: defconfig: Remove unnecessary board specifc config files

Remove unnecessary board specifc config files for
zynq boards(microzed, picozed, ZC770(all), zed) and point
to zynq common config file.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynq: config: Enable CONFIG_NAND_ZYNQ through Kconfig
Siva Durga Prasad Paladugu [Wed, 27 Jul 2016 10:31:45 +0000 (16:01 +0530)] 
zynq: config: Enable CONFIG_NAND_ZYNQ through Kconfig

Enable config CONFIG_NAND_ZYNQ through kconfig for Zynq
XM011 board.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoKconfig: Move option CONFIG_NAND_ZYNQ to Kconfig
Siva Durga Prasad Paladugu [Wed, 27 Jul 2016 10:31:44 +0000 (16:01 +0530)] 
Kconfig: Move option CONFIG_NAND_ZYNQ to Kconfig

Move config option CONFIG_NAND_ZYNQ as Kconfig
option. All the board which needs to enable this
option canbe done through Kconfig.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynq: config: Enable CONFIG_SYS_NO_FLASH through defconfig
Siva Durga Prasad Paladugu [Wed, 27 Jul 2016 10:31:43 +0000 (16:01 +0530)] 
zynq: config: Enable CONFIG_SYS_NO_FLASH through defconfig

Enable config CONFIG_SYS_NO_FLASH through defconfig
for all zynq boards.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoKconfig: Move option CONFIG_SYS_NO_FLASH to Kconfig
Siva Durga Prasad Paladugu [Wed, 27 Jul 2016 10:31:42 +0000 (16:01 +0530)] 
Kconfig: Move option CONFIG_SYS_NO_FLASH to Kconfig

Move config option CONFIG_SYS_NO_FLASH as Kconfig
option. All the boards which needs to enable this
option can be done through defconfigs

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Define config USB_STORAGE through defconfig
Michal Simek [Wed, 27 Jul 2016 12:56:49 +0000 (14:56 +0200)] 
ARM64: zynqmp: Define config USB_STORAGE through defconfig

Define config USB_STORAGE through defconfig for all
Xilinx ZynqMP boards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agousb: zynq: Define config USB_STORAGE through defconfig
Siva Durga Prasad Paladugu [Wed, 27 Jul 2016 10:31:41 +0000 (16:01 +0530)] 
usb: zynq: Define config USB_STORAGE through defconfig

Define config USB_STORAGE through defconfig for all
respective zynq boards

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agousb: Kconfig: Add Kconfigs entry USB_EHCI_ZYNQ
Siva Durga Prasad Paladugu [Wed, 27 Jul 2016 10:31:40 +0000 (16:01 +0530)] 
usb: Kconfig: Add Kconfigs entry USB_EHCI_ZYNQ

Add Kconfig entry config option for USB_EHCI_ZYNQ
and update the same to enable for all zynq boards
which supports USB

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Remove untested RSA configuration
Michal Simek [Thu, 28 Jul 2016 05:58:50 +0000 (07:58 +0200)] 
ARM: zynq: Remove untested RSA configuration

It is getting hard and hard to keep all defconfigs
up2date that's why remove all RSA defconfigs which are not regularly
tested. Keep only zc702 with RSA support.

Any board can support it by enabling
CONFIG_CMD_ZYNQ_AES=y
CONFIG_CMD_ZYNQ_RSA=y

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Remove undef from mini configuration
Michal Simek [Wed, 27 Jul 2016 12:45:25 +0000 (14:45 +0200)] 
ARM64: zynqmp: Remove undef from mini configuration

The patch:
"ARM64: zynqmp: Remove CONFIG_BOOTP_SERVERIP"
(sha1: a8b6a156c0f7fb99502229e454bc9c3b38645280)
removed symbol that's why there is no need to have undef
in mini configuration.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Remove CONFIG_BOOTP_SERVERIP
Michal Simek [Wed, 27 Jul 2016 12:44:30 +0000 (14:44 +0200)] 
ARM: zynq: Remove CONFIG_BOOTP_SERVERIP

Do the same change which was done in ZynqMP by:
"ARM64: zynqmp: Remove CONFIG_BOOTP_SERVERIP"
(sha1: a8b6a156c0f7fb99502229e454bc9c3b38645280)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: net_boot: Align timeout for reaching prompt
Michal Simek [Tue, 19 Jul 2016 07:38:58 +0000 (09:38 +0200)] 
test/py: net_boot: Align timeout for reaching prompt

Align the first test with the second one to have the same timeout.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Make booting from SD possible without uEnv.txt
Mike Looijmans [Thu, 21 Jul 2016 13:55:02 +0000 (15:55 +0200)] 
ARM64: zynqmp: Make booting from SD possible without uEnv.txt

When booting from SD card, the kernel cannot find any rootfs.
It only works if you provide a "uEnv.txt" file on the SD card that
patches the bootargs.

If uEnv.txt does not exist, assume that the rootfs is on the second
partition of the SD card (or mmc device). To make this work, rename
"sdroot" to "sdroot0" so a simple script can switch between sd0 and sd1.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add missing loadbootenv_addr
Michal Simek [Fri, 22 Jul 2016 13:19:59 +0000 (15:19 +0200)] 
ARM64: zynqmp: Add missing loadbootenv_addr

Variable as incorrectly removed by:
"Merge tag 'v2016.05' into master"
(sha1: d61a4869f8f1b4debd2fcec3dbae405e096a2b06)

This patch take it back to the origin value.

Reported-by: Alexey Firago <alexey_firago@mentor.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Remove empty ifdef around caches
Michal Simek [Thu, 21 Jul 2016 11:47:52 +0000 (13:47 +0200)] 
microblaze: Remove empty ifdef around caches

Code around was removed because of move to Kconfig.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Fix mdio test case
Michal Simek [Fri, 22 Jul 2016 09:59:54 +0000 (11:59 +0200)] 
test/py: Fix mdio test case

Use correct name for mdio.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Remove get_uart_clk()
Michal Simek [Thu, 14 Jul 2016 12:41:28 +0000 (14:41 +0200)] 
ARM64: zynqmp: Remove get_uart_clk()

ZynqMP will use reading clock freq directly from DT.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: zynq: Read information about clock from DT
Michal Simek [Thu, 14 Jul 2016 12:40:03 +0000 (14:40 +0200)] 
serial: zynq: Read information about clock from DT

Read information about clock frequency from DT.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Enable CLK and SPL_CLK by default
Michal Simek [Thu, 14 Jul 2016 12:41:28 +0000 (14:41 +0200)] 
ARM64: zynqmp: Enable CLK and SPL_CLK by default

Serial driver starts to use clk framework that's why
enable it by default.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodm: clk: Remove simple version of clk_get_by_index/name()
Michal Simek [Thu, 14 Jul 2016 11:11:37 +0000 (13:11 +0200)] 
dm: clk: Remove simple version of clk_get_by_index/name()

Simple version of clk_get_by_index() added by:
"dm: clk: Add a simple version of clk_get_by_index()"
(sha1: a4b10c088c4f6ef2e2bba33e8cfea369bcbbce44)
is only working for #clock-cells=<1> but not for
any other values. Fixed clocks is using #clock-cells=<0>
which requires full implementation.

Remove simplified versions of clk_get_by_index() and use full version.
Also remove empty clk_get_by_name() which is failing when it is called
which is useless.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Add simple dm commands run without checking
Michal Simek [Thu, 14 Jul 2016 13:45:50 +0000 (15:45 +0200)] 
test/py: Add simple dm commands run without checking

Just to make sure that dm commands can operate.
This was problem on Microblaze in past.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Add basic i2c tests
Michal Simek [Fri, 6 May 2016 11:31:17 +0000 (13:31 +0200)] 
test/py: Add basic i2c tests

This was tested on zcu102.

zc702 and zc706 are not working for me.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Add basic mii and mdio tests
Michal Simek [Fri, 6 May 2016 11:30:48 +0000 (13:30 +0200)] 
test/py: Add basic mii and mdio tests

Add simple mii and mdio testing functions.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Add experimental code for mmc testing
Michal Simek [Mon, 9 May 2016 12:45:54 +0000 (14:45 +0200)] 
test/py: Add experimental code for mmc testing

More partitions are handled.
Save information about saved file to structure.
Also use fs_generic commands to handle files.
Support fat, ext2 and ext4 filesystems.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Add support for boot kernel with netboot
Michal Simek [Fri, 29 Apr 2016 13:21:27 +0000 (15:21 +0200)] 
test/py: Add support for boot kernel with netboot

Tested on zc706 and zcu102.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Add loading stuff to QSPI for qspi boot
Michal Simek [Tue, 17 May 2016 14:00:38 +0000 (16:00 +0200)] 
test/py: Add loading stuff to QSPI for qspi boot

Load images over ethernet to qspi to test qspi boot.
This is experimental patch.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Add basic QSPI testing
Michal Simek [Wed, 16 Mar 2016 22:05:39 +0000 (23:05 +0100)] 
test/py: Add basic QSPI testing

This is the first attempt how to test qspi.
Detect SPI size. Read it all, random size, erase every block,
write random data with random size and read it back,
erase the whole qspi and at the end load kernel image via tftp
and save it to memory.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Detect timeout in phy negotiation
Michal Simek [Fri, 29 Apr 2016 11:53:37 +0000 (13:53 +0200)] 
test/py: Detect timeout in phy negotiation

If timeout happen it should be reported as fault.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
9 years agotest/py: Add support for extending timeout for large files
Michal Simek [Fri, 29 Apr 2016 13:52:48 +0000 (15:52 +0200)] 
test/py: Add support for extending timeout for large files

Slow network or big image filesize is not able to be finished
in 30s. Add option to user to extend timeout(in miliseconds).

env__net_tftp_readable_file = {
    "fn": "192.168.0.105:zc706/image.ub",
    "addr": 0x20000000,
    "size": 20484981,
    "crc32": "873a30ae",
    "timeout": 50000,
}

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agolibfdt: Add option to disable arch_fixup_fdt() calls
Michal Simek [Thu, 9 Jun 2016 14:00:30 +0000 (16:00 +0200)] 
libfdt: Add option to disable arch_fixup_fdt() calls

Disable arch_fixup_fdt() calls for cases where U-Boot shouldn't update
memory setup in DTB file.
One example of usage of this option is to boot OS with different memory
setup than U-Boot use.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Enable debug uart for zc770 dc1
Michal Simek [Wed, 13 Jul 2016 09:40:12 +0000 (11:40 +0200)] 
ARM: zynq: Enable debug uart for zc770 dc1

For debugging purpose.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Increase malloc space size
Michal Simek [Wed, 13 Jul 2016 09:39:18 +0000 (11:39 +0200)] 
ARM: zynq: Increase malloc space size

DM requires more and more space for boot.
Increase malloc space and make it align with ZynqMP boards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add information about usb status on zcu102
Michal Simek [Wed, 13 Jul 2016 14:12:33 +0000 (16:12 +0200)] 
ARM64: zynqmp: Add information about usb status on zcu102

Extend dts with information about USB status.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add USB boot mode
Michal Simek [Fri, 29 Apr 2016 11:00:10 +0000 (13:00 +0200)] 
ARM64: zynqmp: Add USB boot mode

Add USB boot mode.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add support for zc1751-dc3 and enable SPL
Michal Simek [Wed, 18 May 2016 12:04:06 +0000 (14:04 +0200)] 
ARM64: zynqmp: Add support for zc1751-dc3 and enable SPL

Enable DC3 and SPL.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add init files for zynqmp boards and enable SPL
Michal Simek [Wed, 13 Jan 2016 11:44:47 +0000 (12:44 +0100)] 
ARM64: zynqmp: Add init files for zynqmp boards and enable SPL

zcu102 - PetaLinux v2015.4 zcu102 BSP.
zc1751 - internal build May 18.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Ignore warnings from autogenerated files
Michal Simek [Thu, 14 Jul 2016 09:13:04 +0000 (11:13 +0200)] 
ARM64: zynqmp: Ignore warnings from autogenerated files

Autogenerated files contain casting issues and missing function
declaration and even usleep implementation. Suppress them for now
till these files are fixed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add prog_reg to xil_io.h
Michal Simek [Tue, 12 Jul 2016 12:25:45 +0000 (14:25 +0200)] 
ARM64: zynqmp: Add prog_reg to xil_io.h

Vivado is not putting this function to psu_init.c
file that's why this function is missing is some versions.
Make this function as weak to make sure that compilation is fine.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix warning for SPL builds
Michal Simek [Tue, 12 Jul 2016 13:46:34 +0000 (15:46 +0200)] 
ARM64: zynqmp: Fix warning for SPL builds

FPGA code is not called from SPL.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospl: Fix compilation warnings for arm64
Michal Simek [Wed, 27 Apr 2016 14:07:20 +0000 (16:07 +0200)] 
spl: Fix compilation warnings for arm64

Make code 64bit aware.

Warnings:
+../arch/arm/lib/spl.c: In function ‘jump_to_image_linux’:
+../arch/arm/lib/spl.c:63:3: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
+../common/spl/spl_fat.c: In function ‘spl_load_image_fat’:
+../common/spl/spl_fat.c:91:33: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Add ps7_init_gpl* for zc770 targets
Michal Simek [Fri, 20 May 2016 13:31:01 +0000 (15:31 +0200)] 
ARM: zynq: Add ps7_init_gpl* for zc770 targets

xm012 - nand x8

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: xilinx: Read reg base address from DTS file
Michal Simek [Mon, 23 May 2016 12:35:28 +0000 (14:35 +0200)] 
spi: xilinx: Read reg base address from DTS file

Do not use DM with reg base hardcoding.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoapi: Disable api_net when DM is used
Michal Simek [Mon, 6 Jun 2016 08:58:40 +0000 (10:58 +0200)] 
api: Disable api_net when DM is used

When CONFIG_API is selected with DM_ETH this
error is present:
api/api_net.c: In function 'dev_enum_net':
api/api_net.c:61:35: warning: initialization from incompatible pointer
type
  struct eth_device *eth_current = eth_get_dev();
                                   ^
api/api_net.c:68:39: error: dereferencing pointer to incomplete type
  memcpy(di->di_net.hwaddr, eth_current->enetaddr, 6);
                                       ^
Disable api_net functions when ETH_DM is selected.

Signed-off-by: Chris Johns <chrisj@rtems.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq/zynqmp: Use the default CONFIG_BOOTDELAY=2
Michal Simek [Tue, 21 Jun 2016 12:39:11 +0000 (14:39 +0200)] 
ARM: zynq/zynqmp: Use the default CONFIG_BOOTDELAY=2

Based on:
"ARM: uniphier: use the default CONFIG_BOOTDELAY=2"
(sha1: 7c8ef0feb97586d35b0296b48903daef8c06ab21)

"I do not insist on CONFIG_BOOTDELAY=3. The default value in Kconfig,
CONFIG_BOOTDELAY=2, is just fine for these boards."

Reported-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoMerge tag 'v2016.07' into master
Michal Simek [Tue, 12 Jul 2016 09:57:46 +0000 (11:57 +0200)] 
Merge tag 'v2016.07' into master

Prepare v2016.07

- arm64
    Revert "armv8: Enable CPUECTLR.SMPEN for coherency"
    This reverts commit d73718f3236c520a92efa401084c658e6cc067f3.
 because it is breaking starting bootflow with ATF
- zynq_nand - Fix code based on mainline patches
  "mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data"
  (sha1: 17cb4b8f327eb983cef7c510fcf77f1635a00e48)
  "mtd: nand: Add page argument to write_page() etc."
  (sha1: 81c772521ff26054a3fe75efa87d8daeae83e9b4)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add support for chip ID detection
Michal Simek [Mon, 1 Feb 2016 14:05:58 +0000 (15:05 +0100)] 
ARM64: zynqmp: Add support for chip ID detection

Chip ID needs to be known for loading bitstream because
U-Boot checks ID from bitstream header in BIT format.
BIN format is completely unchecked.

SMC calls are disabled because code depends on ATF changes which are not
in release version.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoPrepare v2016.07 v2016.07
Tom Rini [Mon, 11 Jul 2016 19:01:01 +0000 (15:01 -0400)] 
Prepare v2016.07

Signed-off-by: Tom Rini <trini@konsulko.com>
9 years agodoc: ARMv8: add README.pine64
Andre Przywara [Fri, 8 Jul 2016 14:25:23 +0000 (15:25 +0100)] 
doc: ARMv8: add README.pine64

Since we lack information about the DRAM initialization for the
Allwinner A64 SoC, booting any A64 based board like the Pine64 is a bit
involved at the moment.
Add a README file to explain the process.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
[trini: Move to board/sunxi/ from doc/]
Signed-off-by: Tom Rini <trini@konsulko.com>
9 years agomkimage -l is broken for images after gpimage
Stefano Babic [Mon, 11 Jul 2016 14:09:48 +0000 (16:09 +0200)] 
mkimage -l is broken for images after gpimage

Because a gpimage cannot be detected, a false
GP header is printed instead of checking
for further image types.

Move gpimage as last to be linked, letting check
all other image types and printing a GP header just
in case no image is detected.

Signed-off-by: Stefano Babic <sbabic@denx.de>