]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
8 years agotest: py: qspi: Add dependency on bdinfo command
Michal Simek [Tue, 9 May 2017 13:36:13 +0000 (15:36 +0200)] 
test: py: qspi: Add dependency on bdinfo command

There is another dependency on looking for ram base
from bdinfo command. This should be probably fixed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove CPU_RELEASE_ADDR macro
Michal Simek [Wed, 3 May 2017 14:22:30 +0000 (16:22 +0200)] 
arm64: zynqmp: Remove CPU_RELEASE_ADDR macro

CPU_RELEASE_ADDR is used only when CONFIG_ARMV8_MULTIENTRY
is enabled. ZynqMP is running ATF which takes care about this
that's why no need to have this macro.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonand: zynq: Add support for 16-bit buswidth
Siva Durga Prasad Paladugu [Thu, 25 May 2017 08:55:55 +0000 (14:25 +0530)] 
nand: zynq: Add support for 16-bit buswidth

This patch adds support for 16-but buswidth by determining
the bus width based on mio configuration.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonand: zynq: Send address cycles as per onfi parameter page
Siva Durga Prasad Paladugu [Thu, 25 May 2017 06:45:24 +0000 (12:15 +0530)] 
nand: zynq: 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>
8 years agonand: zynq: Correct mtd initialization
Siva Durga Prasad Paladugu [Thu, 25 May 2017 06:45:23 +0000 (12:15 +0530)] 
nand: zynq: Correct mtd initialization

This patch corrects the mtd initialization. With out this, it
results in wrong zynq_nand_info and nand_chip extraction and
hence failed nand operations. This patch fixes the issue of
nand on zynq boards.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoFix for : Seeing multiple 'INIT: Id "X0" respawning too fast: disabled for 5 minutes...
Bhargava Sreekantappa Gayathri [Wed, 10 May 2017 00:20:02 +0000 (17:20 -0700)] 
Fix for : Seeing multiple 'INIT: Id "X0" respawning too fast: disabled for 5 minutes' messages and changing dom0_mem.

Some consoles mentioned in inittab are not present on the device. We get
the above message when inittab keeps respawning such a console.

Added SERIAL_CONSOLES_CHECK to meta-xilinx layer, which will check
for available consoles by reading /proc/consoles and remove non
existent consoles. This check removes hvc0 when booted via tftp
since /proc/consoles has xen0 and not hvc0. This patch fixes this
issue by renaming xen0 to hvc0 in /proc/consoles.

Renaming dom0-bootargs console to hvc0 and changing dom0_mem to be
consistant with petalinux configuration for tftp boot.

Signed-off-by: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-gayathri@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonand: arasan_nfc: Add support for ondie ecc
Siva Durga Prasad Paladugu [Mon, 15 May 2017 07:33:48 +0000 (13:03 +0530)] 
nand: arasan_nfc: Add support for ondie ecc

This patch adds support for ondie ecc. As of now
this adds support for micron parts which supports
ondie ecc.
Didnt found any better way to detect ondie ecc
support by a device except sorting out with
manufacture and device id's.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonand: arasan_nfc: Move common ecc struct initialization init routine
Siva Durga Prasad Paladugu [Mon, 15 May 2017 07:33:47 +0000 (13:03 +0530)] 
nand: arasan_nfc: Move common ecc struct initialization init routine

Move common part of ecc structure initialization to
arasan_nand_init() routine.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agozynq: Kconfig: Dont enable unnecessary configs by default
Siva Durga Prasad Paladugu [Fri, 28 Apr 2017 10:44:40 +0000 (16:14 +0530)] 
zynq: Kconfig: Dont enable unnecessary configs by default

Dont enable unnecessary configs by default, instead enable
the required ones through defconfig. This patch moves configs
DM_ETH, DM_MMC, DM_MMC_OPS, BLK, GPIO to defconfigs. This saves
memory for memory constrained boards.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove unused macros/variable in clk_zynqmp.c
Michal Simek [Mon, 24 Apr 2017 12:06:27 +0000 (14:06 +0200)] 
arm64: zynqmp: Remove unused macros/variable in clk_zynqmp.c

These macros and one variable is not used anywhere that's why
it should be removed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoclk: zynqmp: Dont panic incase of mmio write/read failures
Siva Durga Prasad Paladugu [Thu, 13 Apr 2017 11:29:38 +0000 (16:59 +0530)] 
clk: zynqmp: Dont panic incase of mmio write/read failures

Dont panic incase of mmio write/read failures instead return
error and let the peripheral driver take care of clock get
and set failures.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agommc: zynq_sdhci: improve debug print
Jean-Francois Dagenais [Mon, 3 Apr 2017 01:44:36 +0000 (21:44 -0400)] 
mmc: zynq_sdhci: improve debug print

When debugging dual SDHCI controller setup, printing strings and bank info
is very helpful.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: spl: use given boot_device instead of fetching it again
Jean-Francois Dagenais [Mon, 3 Apr 2017 01:44:35 +0000 (21:44 -0400)] 
arm64: zynqmp: spl: use given boot_device instead of fetching it again

The boot_device argument to spl_boot_mode was massively added without
actually modifying the existing functions.

This commit actually makes use of the handed value, which is the same.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: spl: fix dual SD controller support
Jean-Francois Dagenais [Mon, 3 Apr 2017 01:44:34 +0000 (21:44 -0400)] 
arm64: zynqmp: spl: fix dual SD controller support

When enabling both SDHCI controllers, spl_mmc.c would actually choose
device sdhci0 even if booted from sdhci1 (boot_device). This is because
spl_mmc_get_device_index(boot_device) expects BOOT_DEVICE_MMC2[_2] in
order to return index 1 instead of 0.

The #if defined(...) statement is copied from board/xilinx/zynqmp/zynqmp.c

So the key to properly enabling both controllers as boot sources is
defining both CONFIG_ZYNQ_SDHCI0 and CONFIG_ZYNQ_SDHCI1 in your board's
include/configs/*.h.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agotools: zynqmpimage: adjust ug1085 reference to v1.4 of the document
Jean-Francois Dagenais [Thu, 23 Mar 2017 11:39:14 +0000 (07:39 -0400)] 
tools: zynqmpimage: adjust ug1085 reference to v1.4 of the document

The chapter in which the table explaining the image format changed
chapter as the document evolved. This should help people track the
info down faster.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agotest: py: Generate value in 02x format for i2c cases
Michal Simek [Thu, 23 Mar 2017 13:55:04 +0000 (14:55 +0100)] 
test: py: Generate value in 02x format for i2c cases

If single digit random value was generated then it didn't match with
reading value because of fixed two digit format returning back from i2c md
command. Generate value in two digit format to fix this issue.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agotest: py: Setup only specific i2c mux line for zc70x
Michal Simek [Thu, 23 Mar 2017 12:25:45 +0000 (13:25 +0100)] 
test: py: Setup only specific i2c mux line for zc70x

On zcu106 there is an issue if all i2c mux lines are enabled
at the same time. Select only one is needed for eeprom.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agospi: spi_flash: Set 4byte mode in upper flash device
Siva Durga Prasad Paladugu [Thu, 6 Apr 2017 09:49:59 +0000 (15:19 +0530)] 
spi: spi_flash: Set 4byte mode in upper flash device

Set 4-byte mode in upper flash device as well incase of
dual stacked mode. This fixes the issue of read/write
failure to upper flash memory incase of dual stacked.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agospi: spi_flash: Update spi flags incase of dual stacked mode
Siva Durga Prasad Paladugu [Thu, 6 Apr 2017 09:49:58 +0000 (15:19 +0530)] 
spi: spi_flash: Update spi flags incase of dual stacked mode

Update spi flags in case of dual stacked mode. Set upper page
access bit if accessing upper flash otherwise just clear it.
This will be used by driver to access upper flash.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonet: zynq_gem: Dont flush dummy descriptors
Siva Durga Prasad Paladugu [Thu, 23 Mar 2017 06:20:38 +0000 (11:50 +0530)] 
net: zynq_gem: Dont flush dummy descriptors

Dont flush dummy descriptors as they are already
allocated from a region with dcache off. Tested
this on Zynq(zc702) and ZynqMP(zcu102) boards.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agommc: sdhci: Use ACMD12 only for multiple block read/write
Siva Durga Prasad Paladugu [Sun, 19 Mar 2017 05:16:37 +0000 (10:46 +0530)] 
mmc: sdhci: Use ACMD12 only for multiple block read/write

Use ACMD12 only for multiple block read/write as single
block read and write need not to have stop command.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agommc: zynq_sdhci: Add quirk for using ACM12
Siva Durga Prasad Paladugu [Thu, 16 Mar 2017 11:02:09 +0000 (16:32 +0530)] 
mmc: zynq_sdhci: Add quirk for using ACM12

Add quirk for using ACMD12 as host controller is
capabale of it.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agommc: sdhci: Add support for sending ACMD12 if host supports it
Siva Durga Prasad Paladugu [Thu, 16 Mar 2017 11:02:08 +0000 (16:32 +0530)] 
mmc: sdhci: Add support for sending ACMD12 if host supports it

Use auto transmission of stop command feature(ACMD12) if host
can support it by getting this info in the form of quirk from host
controller driver. This patch fixes the issue with specific
card(Sony SDHC class4 4GB) but however this can be applicable
to all if host controller has feature to support ACMD12.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm: zynq: Add device-type property for zynq ethernet phy nodes
Sai Pavan Boddu [Mon, 6 Mar 2017 12:47:19 +0000 (18:17 +0530)] 
arm: zynq: Add device-type property for zynq ethernet phy nodes

Mention device-type = "ethernet-phy", as qemu will need this in absence
of compatible.

Signed-off-by: Sai Pavan Boddu <saipava@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: dwc3: Uncomment snps,quirk-frame-length-adjustment flag
Anurag Kumar Vulisha [Fri, 10 Mar 2017 13:48:17 +0000 (19:18 +0530)] 
devicetree: dwc3: Uncomment snps,quirk-frame-length-adjustment flag

This patch uncomments snps,quirk-frame-length-adjustment which has
the value to adjust the SOF/ITP generated from the controller.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: disable smmu
Naga Sureshkumar Relli [Thu, 9 Mar 2017 14:30:13 +0000 (20:00 +0530)] 
arm64: zynqmp: disable smmu

This patch disables the smmu and also removes the mmu-masters

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: dwc3: Add support reading SoC revision using nvmem driver
Anurag Kumar Vulisha [Thu, 2 Mar 2017 09:10:51 +0000 (14:40 +0530)] 
devicetree: dwc3: Add support reading SoC revision using nvmem driver

This patch adds support for reading silicon revision using zynqmp nvmem
driver.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agozynqmp-zcu106.dts: Remove si570 from Xilinx_drm node
Madhurkiran Harikrishnan [Fri, 10 Mar 2017 18:05:08 +0000 (10:05 -0800)] 
zynqmp-zcu106.dts: Remove si570 from Xilinx_drm node

This patch will remove the si570 clock for xilinx
drm for zcu106 as CCF already takes care of it.

Signed-off-by: Madhurkiran Harikrishnan <madhurki@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: gem: Correct phy address for ZCU106
Harini Katakam [Fri, 3 Mar 2017 12:22:05 +0000 (17:52 +0530)] 
devicetree: gem: Correct phy address for ZCU106

Phy address on ZCU106 is 0xC.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: Correct typo in zcu102 revA dts TI PHY workaround flag
Harini Katakam [Fri, 10 Mar 2017 11:12:22 +0000 (16:42 +0530)] 
devicetree: Correct typo in zcu102 revA dts TI PHY workaround flag

ti,rxctrl-strap-wrka -> ti,rxctrl-strap-worka

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable AMS for zcu100-revB
Michal Simek [Thu, 2 Mar 2017 13:01:30 +0000 (14:01 +0100)] 
arm64: zynqmp: Enable AMS for zcu100-revB

Enable AMS for iio chip monitoring features.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove incorrect comment about tps6586x
Michal Simek [Fri, 3 Mar 2017 09:12:30 +0000 (10:12 +0100)] 
arm64: zynqmp: Remove incorrect comment about tps6586x

zcu100s have tps65086 not tps6586 that's why comments are
wrong.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: Add workaround flag in TI DP83867 phy node
Harini Katakam [Tue, 7 Mar 2017 10:50:17 +0000 (16:20 +0530)] 
devicetree: Add workaround flag in TI DP83867 phy node

RX_CTRL must be strapped to MODE 3 or 4 but this is not the case
in all these boards with TI phy. Add DT flag to use the SW
workaround instead.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add the fclk node
Shubhrajyoti Datta [Wed, 8 Mar 2017 04:20:48 +0000 (09:50 +0530)] 
arm64: zynqmp: Add the fclk node

Add fclk node to be simply enabled if needed.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add missing maximum-speed property to usb nodes
Michal Simek [Wed, 8 Mar 2017 08:26:02 +0000 (09:26 +0100)] 
arm64: zynqmp: Add missing maximum-speed property to usb nodes

Add missing properties to dt node.

Error log:
ERROR: usb maximum-speed not found

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodwc3: generic: Add mode detection from DT
Michal Simek [Wed, 8 Mar 2017 08:41:15 +0000 (09:41 +0100)] 
dwc3: generic: Add mode detection from DT

Call generic function for reading dr_mode.
Error out if dr_mode property is not found.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodwc3: generic: Fix max speed detection error path
Michal Simek [Wed, 8 Mar 2017 08:40:11 +0000 (09:40 +0100)] 
dwc3: generic: Fix max speed detection error path

- Check against enum value
- Return -ENODEV if speed is not found

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agousb: common: Fix return value in usb_get_maximum_speed()
Michal Simek [Wed, 8 Mar 2017 08:39:06 +0000 (09:39 +0100)] 
usb: common: Fix return value in usb_get_maximum_speed()

Do not use dr_mode unknown value in speed function.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agommc: zynq: Do not probe driver if pwrseq is present
Michal Simek [Thu, 9 Mar 2017 13:59:49 +0000 (19:29 +0530)] 
mmc: zynq: Do not probe driver if pwrseq is present

mmc-pwrseq property describes that device requires to run specific power
sequence to get device to work.
Detect this property and don't let driver to probe.

mmc-pwrseq require specific driver to be present.
This is the case on zcu100 which has sdio wifi chip which requires power
sequence.

Error log before:
MMC:   Card did not respond to voltage select!
Card did not respond to voltage select!
sdhci@ff170000 - probe failed: -95
sdhci@ff160000: 0 (SD)Card did not respond to voltage select!

After:
MMC:   sdhci@ff160000: 0 (SD), sdhci@ff170000: 1

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
8 years agozynqmp: zcu100: Fix SD xin_clk to be 200MHz
Siva Durga Prasad Paladugu [Thu, 9 Mar 2017 12:19:28 +0000 (17:49 +0530)] 
zynqmp: zcu100: Fix SD xin_clk to be 200MHz

Fix SD xin_clk to be 200 MHz instead of 199Mhz.
Earlier, it was 199MHz as u-boot/Linux is not programming
tap delays, now it needs to be changed both u-boot and Linux
are programming tap delays.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Fixing calling zynqmp_mmio_write in SPL
Michal Simek [Tue, 7 Mar 2017 09:46:09 +0000 (10:46 +0100)] 
arm64: zynqmp: Fixing calling zynqmp_mmio_write in SPL

The bug was introduced by:
"mmc: sdhci: Invoke set_delay() in more generic way"
(sha1: 43f5b9729b7bc2ffdd3bcaf886324435538580e0)
which is calling tap delay programming which contains zynqmp_mmio_write.
By implementing zynqmp_mmio_write for SPL this problem is fixed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agobootstage: Dont print reset entry separately
Siva Durga Prasad Paladugu [Tue, 7 Mar 2017 06:21:44 +0000 (11:51 +0530)] 
bootstage: Dont print reset entry separately

Printing the first entry reset separately is no longer
needed as it now prints the entries with valid name and
timestamp zero. This removes duplicate printing of the reset
record.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agobootstage: print all entries even if recorded time is zero
Siva Durga Prasad Paladugu [Tue, 7 Mar 2017 06:21:43 +0000 (11:51 +0530)] 
bootstage: print all entries even if recorded time is zero

Print all entries in boot stage report even if the recorded
time stamp is zero. This lets the user to know all the recorded
entries that are made into. This helps user to know if something
went wrong with timestamp for that entry.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoboard_f: Move mark_bootstage() to after timer_init()
Siva Durga Prasad Paladugu [Tue, 7 Mar 2017 06:21:42 +0000 (11:51 +0530)] 
board_f: Move mark_bootstage() to after timer_init()

Move mark_bootstage to after timer_init as timer will not be
intialized in case if CONFIG_TIMER is not defined and hence
invoke it in present place if CONFIG_TIMER is defined else
invoke it after timer_init.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agobootstage: Modify routine timer_get_boot_us()
Siva Durga Prasad Paladugu [Tue, 7 Mar 2017 06:21:41 +0000 (11:51 +0530)] 
bootstage: Modify routine timer_get_boot_us()

Modify routine timer_get_boot_us(), as the base_time
will be stored in bss if initialized to zero(observed for
arm compilers, arm and arm64) and for most of the boards
bss was not initialized to zero before relocation and hence
causing a junk timestamp value in boot record if there is an
entry record before relocation(example would be board_init_f
entry). Also, as it is in bss which will be intialized to zero
after relocation, it causes the first entry after relocation
to be missed while printing bootstage report as the
timer_get_boot_us() returns zero if bss_time is zero.
This patch fixes the same by initialzing bss_time to 1 and also
returning current timestamp if bss_time is 1. Intializing it to
1 causes it to be placed in data section and hence no issues.

Before this patch:
ZynqMP> bootstage report
Timer summary in microseconds:
       Mark    Elapsed  Stage
          0          0  reset
    491,000    491,000  id=64
    516,000     25,000  id=65
    522,000      6,000  main_loop
112,092,989,575,347,436,48112,092,989,575,342,216,48  board_init_f

After this patch:
ZynqMP> bootstage report
Timer summary in microseconds:
       Mark    Elapsed  Stage
          0          0  reset
      9,969      9,969  board_init_f
  1,227,000  1,217,031  board_init_r
  1,713,000    486,000  id=64
  1,733,000     20,000  id=65
  1,735,000      2,000  main_loop

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonet: zynq_gem: Use wait_for_bit with non breakable
Siva Durga Prasad Paladugu [Tue, 7 Mar 2017 09:28:23 +0000 (14:58 +0530)] 
net: zynq_gem: Use wait_for_bit with non breakable

Use wait_for_bit to be non breakable as using it with
breakable causes issue of un interruptible auto negotiation.
This is due to the ctrlc pressed will taken for wait_for_bit()
abort during phy_read() and hence not coming out of
auto negotiation.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable QSPI for DC4 board
Siva Durga Prasad Paladugu [Sat, 4 Mar 2017 06:46:48 +0000 (12:16 +0530)] 
arm64: zynqmp: Enable QSPI for DC4 board

Enable QSPI support for DC4 board

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Define and enable qspi node for DC4 board
Siva Durga Prasad Paladugu [Sat, 4 Mar 2017 06:46:47 +0000 (12:16 +0530)] 
arm64: zynqmp: Define and enable qspi node for DC4 board

DC4 board has qspi on it hence define and enable
qspi node for it.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agommc: zynq_sdhci: Initialize mmc immediately after probe
Siva Durga Prasad Paladugu [Sat, 4 Mar 2017 09:37:57 +0000 (15:07 +0530)] 
mmc: zynq_sdhci: Initialize mmc immediately after probe

Initialize mmc immediately after probe as everything
required for mmc initialization was already setup and
intializing here shouldnt be a problem. In some cases
it is really required that mmc need to be intialized during
probe itself as boot process may access mmc/SD for reading
environment while booting.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agommc: sdhci: Invoke set_delay() in more generic way
Siva Durga Prasad Paladugu [Sat, 4 Mar 2017 09:37:56 +0000 (15:07 +0530)] 
mmc: sdhci: Invoke set_delay() in more generic way

Invoke set_delay() in more generic way, this lets the driver
code take care of setting required delays for different
speed modes.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agommc: zynq_sdhci: Modify arasan_sdhci_set_tapdelay()
Siva Durga Prasad Paladugu [Sat, 4 Mar 2017 09:37:55 +0000 (15:07 +0530)] 
mmc: zynq_sdhci: Modify arasan_sdhci_set_tapdelay()

Modify tapdelay setting routine to set required tapdelay
based on timing mode. Get the timing mode from mmc
structure, not as an argument.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add support for verifying authenticated images
Siva Durga Prasad Paladugu [Thu, 2 Mar 2017 13:17:06 +0000 (18:47 +0530)] 
arm64: zynqmp: Add support for verifying authenticated images

This patch adds supports for verifying authenticated images
using rsa hw engine.
The example sequence for verifying authenticated images is
as follows.

tftpb 0x7000000 system.dtb 0x8f17
tftpb 0x3000000 signature_dtb.bin 0x200
tftpb 0x3000200 pubkey-key.pem.bin 0x204
rsa 0x3000000 0x7000000 0x8f17 hw

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agocmd: rsa: Add support for authenticationg images using rsa
Siva Durga Prasad Paladugu [Thu, 2 Mar 2017 13:17:05 +0000 (18:47 +0530)] 
cmd: rsa: Add support for authenticationg images using rsa

This patch adds support to authenticate images using its
signature and public key. The signature will be generated
at host for the images using private key. u-boot uses this
signature and public key to authenticate the given image.
As of now, this patch supports only platform specific
verification using hw option.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agofpga: xilinx: Avoid using local intermediate buffer
Siva Durga Prasad Paladugu [Thu, 2 Mar 2017 13:20:11 +0000 (18:50 +0530)] 
fpga: xilinx: Avoid using local intermediate buffer

Dont use local temporary buffer for printing out the
info instead use directly from memroy. This fixes the
issue of stack corruprion due to local buffer overflow.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable aes support for zcu102 rev1.0
Michal Simek [Thu, 2 Mar 2017 13:58:58 +0000 (14:58 +0100)] 
arm64: zynqmp: Enable aes support for zcu102 rev1.0

This should be the part of:
"zynqmp: Enable aes support for zynqmp"
(sha1: 664287e3bea3aff38de76c455b32ff1c096e533a)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm: zynq: Sync dts file with Linux
Michal Simek [Tue, 28 Feb 2017 10:56:28 +0000 (11:56 +0100)] 
arm: zynq: Sync dts file with Linux

Location of compatible string property is different that's why it should
be synchronized.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: dts: zynq: Add ULPI phys instead of NOP transceivers
Subbaraya Sundeep Bhatta [Mon, 21 Sep 2015 08:18:06 +0000 (13:48 +0530)] 
ARM: dts: zynq: Add ULPI phys instead of NOP transceivers

Zynq USB controller needs explicit access to ULPI PHY registers
so ULPI PHY node is used instead of NOP node.

Also fix for DTC 1.4 which wasn't the part of origin patch.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm: zynq: Add SCL & SDA GPIO entries for recovery
Chirag Parekh [Tue, 27 Dec 2016 16:37:58 +0000 (22:07 +0530)] 
arm: zynq: Add SCL & SDA GPIO entries for recovery

Wire i2c pinmuxing gpio recovery for zc702.

Signed-off-by: Chirag Parekh <chiragp@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm: zynq: Add efuse node for Zynq-7000S devices
Michal Simek [Tue, 28 Feb 2017 10:46:37 +0000 (11:46 +0100)] 
arm: zynq: Add efuse node for Zynq-7000S devices

Add access to efuse for Zynq-7000S device detection.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm: zynq: Label whole PL part as fpga_full region
Michal Simek [Tue, 14 Feb 2017 16:40:21 +0000 (17:40 +0100)] 
arm: zynq: Label whole PL part as fpga_full region

This will simplify dt overlay structure for the whole PL.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodts: xilinx: zynqmp.dtsi: Add clock name for GPU
Madhurkiran Harikrishnan [Fri, 17 Feb 2017 12:14:45 +0000 (04:14 -0800)] 
dts: xilinx: zynqmp.dtsi: Add clock name for GPU

This patch will add names to the clocks used by GPU.

Signed-off-by: Madhurkiran Harikrishnan <madhurki@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodts: zynqmp: Update the OPPs for cpu freq
Shubhrajyoti Datta [Mon, 13 Feb 2017 10:28:55 +0000 (15:58 +0530)] 
dts: zynqmp: Update the OPPs for cpu freq

Update the points to operating-points-v2.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Use only earlycon bootargs instead of full one
Michal Simek [Mon, 27 Feb 2017 07:11:38 +0000 (08:11 +0100)] 
arm64: zynqmp: Use only earlycon bootargs instead of full one

This is the same patch as was done earlier.
Please look at Linux patch:
"arm64: zynqmp: Use only earlycon bootargs instead of full one"
(sha1: f3609c8d4af28b9cc22ca49bf8e529b582ec188c)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add status property to pinctrl node
Michal Simek [Mon, 27 Feb 2017 15:19:59 +0000 (16:19 +0100)] 
arm64: zynqmp: Add status property to pinctrl node

Adding standard status = "disabled"; property to dtsi and enable it for
boards which have pinctrl description.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Fix voltage setting for pins
Michal Simek [Wed, 22 Feb 2017 10:34:07 +0000 (11:34 +0100)] 
arm64: zynqmp: Fix voltage setting for pins

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add pmu pinctrl setup for zcu100-revB
Michal Simek [Fri, 24 Feb 2017 11:05:40 +0000 (12:05 +0100)] 
arm64: zynqmp: Add pmu pinctrl setup for zcu100-revB

MIO34 should be routed to PMU to handle poweroff from PMUFW.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add pinctrl support for uarts on zcu100 revB
Michal Simek [Wed, 22 Feb 2017 08:27:20 +0000 (09:27 +0100)] 
arm64: zynqmp: Add pinctrl support for uarts on zcu100 revB

Wire both uarts interfaces with pinmuxing.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add pinctrl support for usbs on zcu100 revB
Michal Simek [Wed, 22 Feb 2017 08:12:19 +0000 (09:12 +0100)] 
arm64: zynqmp: Add pinctrl support for usbs on zcu100 revB

Wire both usbs interfaces with pinmuxing.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add pinctrl support for spi on zcu100 revB
Michal Simek [Wed, 22 Feb 2017 07:44:24 +0000 (08:44 +0100)] 
arm64: zynqmp: Add pinctrl support for spi on zcu100 revB

Wire both spi interfaces with pinmuxing.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add i2c pinctrl description for zcu100
Michal Simek [Mon, 13 Feb 2017 15:22:36 +0000 (16:22 +0100)] 
arm64: zynqmp: Add i2c pinctrl description for zcu100

Also add recovery mode via gpio. I2C1 is at MIO4/5.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable usb phy driver on zcu100
Michal Simek [Mon, 13 Feb 2017 11:48:13 +0000 (12:48 +0100)] 
arm64: zynqmp: Enable usb phy driver on zcu100

Use usb phy driver which should be configured properly now.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add pinctrl description for SD0/SD1 for zcu100
Michal Simek [Mon, 13 Feb 2017 11:48:50 +0000 (12:48 +0100)] 
arm64: zynqmp: Add pinctrl description for SD0/SD1 for zcu100

SD0 is used for MMC card with CD and without WP.
SD1 is connected to wifi chip without CD and WP.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Fix tps65086 pmic i2c entry
Michal Simek [Mon, 13 Feb 2017 12:24:27 +0000 (13:24 +0100)] 
arm64: zynqmp: Fix tps65086 pmic i2c entry

Enable pmic i2c and gpio controller.
There is also regulator part which can be enabled
and it is question what that brings up.
This is done for firmware version detection.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Updated dts for pin control
Chirag Parekh [Wed, 8 Feb 2017 11:08:51 +0000 (03:08 -0800)] 
ARM64: zynqmp: Updated dts for pin control

Added pin control support in dts for
zynqmp-zc1751-xm015-dc1
zynqmp-zc1751-xm016-dc2
zynqmp-zc1751-xm019-dc5
zynqmp-zcu106

Signed-off-by: Chirag Parekh <chirag.parekh@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove local-mac-address from dtsi file
Michal Simek [Fri, 10 Feb 2017 13:11:54 +0000 (14:11 +0100)] 
arm64: zynqmp: Remove local-mac-address from dtsi file

Generic dtsi file can't use the same mac address for all.
U-Boot read mac from eeprom in zcu102 case and for others random mac
address is generated.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: ccf: Correct USB bus and ref clock nodes
Anurag Kumar Vulisha [Sat, 11 Feb 2017 13:17:07 +0000 (18:47 +0530)] 
devicetree: ccf: Correct USB bus and ref clock nodes

Usb "bus_clk" & "ref_clk" nodes are wrongly mapped.
This patch fixes the USB0/1 bus and ref clock nodes and fixes
the error shown below

[ 39.216536] xhci-hcd xhci-hcd.0.auto: Stopped the command ring failed, maybe the host is dead
[ 39.241437] xhci-hcd xhci-hcd.0.auto: Abort command ring failed
[ 39.247391] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up

This patch corrects the changes on commit "5410386d9b6c7c91892a4961c998bf1bc54e795e"

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodts: xilinx: zynqmp-clk-ccf.dtsi: Add clock specifier for GPU
Madhurkiran Harikrishnan [Fri, 17 Feb 2017 12:14:44 +0000 (04:14 -0800)] 
dts: xilinx: zynqmp-clk-ccf.dtsi: Add clock specifier for GPU

This patch will add clock specifier for GPU in PS.

Signed-off-by: Madhurkiran Harikrishnan <madhurki@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Do not map unused OCM/TCM region
Michal Simek [Sat, 25 Feb 2017 17:17:11 +0000 (18:17 +0100)] 
arm64: zynqmp: Do not map unused OCM/TCM region

When OCM or TCM is protected this mapping still exist and it is causing access
violation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Setup default bootargs with clk_ignore_unused
Michal Simek [Fri, 24 Feb 2017 08:35:42 +0000 (09:35 +0100)] 
arm64: zynqmp: Setup default bootargs with clk_ignore_unused

Add default bootargs to u-boot not change all DTS files.
The important part is clk_ignore_unused which caused that clocks which
are unused won't be asked for disabling.
The problem lies in CCF design which is accessing clock tree directly.
It means when there is another master in the system Linux can disable
clock for IPs which this master uses because there is no
synchronization.
That's why solution for now is do not disable any unused clock because it
can be used by someone else.
earlycon is enabled by default for all dtses in the Linux kernel that's
why it is added here too.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable fpga loadp/loadbp commands
Michal Simek [Fri, 24 Feb 2017 08:11:54 +0000 (09:11 +0100)] 
arm64: zynqmp: Enable fpga loadp/loadbp commands

Enable partial bitstream loading for zynqmp targets.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agocmd: Add fpga loadp and loadbp to Kconfig
Michal Simek [Fri, 24 Feb 2017 08:11:23 +0000 (09:11 +0100)] 
cmd: Add fpga loadp and loadbp to Kconfig

Add old fpga commands to Kconfig.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agozynqmp: Dont write to system timestamp generator
Siva Durga Prasad Paladugu [Tue, 21 Feb 2017 12:28:29 +0000 (17:58 +0530)] 
zynqmp: Dont write to system timestamp generator

Remove incorrect code of writing to system timestamp
counter registers. This register writes does nothing
and can be removed.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agozynqmp: Read boot mode register using zynqmp_mmio_read
Siva Durga Prasad Paladugu [Tue, 21 Feb 2017 12:28:28 +0000 (17:58 +0530)] 
zynqmp: Read boot mode register using zynqmp_mmio_read

Dont read boot mode register directly read it using
zynqmp_mmio_read().

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove SF command from zcu100 revB
Michal Simek [Fri, 17 Feb 2017 13:16:34 +0000 (14:16 +0100)] 
arm64: zynqmp: Remove SF command from zcu100 revB

revB has not qspi flash on it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Update dom0 bootargs to allow device passthrough
Alistair Francis [Fri, 17 Feb 2017 18:49:58 +0000 (10:49 -0800)] 
arm64: zynqmp: Update dom0 bootargs to allow device passthrough

Dom0 has access to all of the clocks and turns off clocks that it isn't
using. This breaks device passthrough for other guests. This patch tells
Dom0 to not disable the clocks allowing device passthrough.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoxilinx: zynqmp: Add support for loading encrypted images
Siva Durga Prasad Paladugu [Fri, 17 Feb 2017 10:46:02 +0000 (16:16 +0530)] 
xilinx: zynqmp: Add support for loading encrypted images

This patch adds support for loading encrypted images by
decrypting and load back to memory.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agozynqmp: Enable aes support for zynqmp
Siva Durga Prasad Paladugu [Fri, 17 Feb 2017 10:46:03 +0000 (16:16 +0530)] 
zynqmp: Enable aes support for zynqmp

Enable aes supprt for zynqmp, zynqmp uses hw engine for
decryption and hence use always hw feature supported in aes
command for decryption.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoKconfig: Move configs AES and CMD_AES to Kconfig
Siva Durga Prasad Paladugu [Fri, 17 Feb 2017 10:45:59 +0000 (16:15 +0530)] 
Kconfig: Move configs AES and CMD_AES to Kconfig

Move the configs AED and CMD_AES to respective
Kconfigs.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agocmd: aes: Extend aes command to use hw engine if available.
Siva Durga Prasad Paladugu [Fri, 17 Feb 2017 10:45:58 +0000 (16:15 +0530)] 
cmd: aes: Extend aes command to use hw engine if available.

Extend aes command to use hw engine for decryption if available
in hardware.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agofpga: zynqmp: Add support to load authenticated bitsreams
Siva Durga Prasad Paladugu [Sat, 18 Feb 2017 09:09:47 +0000 (14:39 +0530)] 
fpga: zynqmp: Add support to load authenticated bitsreams

This patch adds support to load authenticated images using
fpga loads command.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agofpga: zynqmppl: Reuse invoke_smc routine
Siva Durga Prasad Paladugu [Fri, 17 Feb 2017 10:46:01 +0000 (16:16 +0530)] 
fpga: zynqmppl: Reuse invoke_smc routine

Reuse invoke_smc() routine which is already defined
instead of duplicating same at multiple places.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agozynqmp: Make invoke_smc as global for reuse
Siva Durga Prasad Paladugu [Fri, 17 Feb 2017 10:46:00 +0000 (16:16 +0530)] 
zynqmp: Make invoke_smc as global for reuse

Make invoke_smc as global so that it can be reused in
multile places where ever possible.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agofpga: Extend loads command to load all secure images
Siva Durga Prasad Paladugu [Sat, 18 Feb 2017 09:09:46 +0000 (14:39 +0530)] 
fpga: Extend loads command to load all secure images

Extend loads command to loads to load all secure images
by providing an option to specify the secure image type
whose valueof 0 corresponds to authenticated image type
and 1 to encrypted image stype.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agofpga: zynqmp: Enable support of fpga loads for all boards
Siva Durga Prasad Paladugu [Fri, 10 Feb 2017 10:07:59 +0000 (15:37 +0530)] 
fpga: zynqmp: Enable support of fpga loads for all boards

Enable support of fpga loads for all ZynqMP boards. With
this support, it can load encrypted bitstreams.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agocmd: Kconfig: Add config CMD_FPGA_LOAD_SECURE to Kconfig
Siva Durga Prasad Paladugu [Tue, 14 Feb 2017 10:27:22 +0000 (15:57 +0530)] 
cmd: Kconfig: Add config CMD_FPGA_LOAD_SECURE to Kconfig

Add new config CMD_FPGA_LOAD_SECURE to Kconfig. This config
enables the support for loading encrypted bitstreams.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agofpga: zynqmp: Define loads operation for encrypted bitstream
Siva Durga Prasad Paladugu [Tue, 14 Feb 2017 10:27:21 +0000 (15:57 +0530)] 
fpga: zynqmp: Define loads operation for encrypted bitstream

Define loads operation for ZynqMP. This is used for loading
encrypted bitstream by making a smc call to ATF.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynqnpo

8 years agofpga: xilinx: Add support for loading encrypted bitstreams
Siva Durga Prasad Paladugu [Tue, 14 Feb 2017 10:27:20 +0000 (15:57 +0530)] 
fpga: xilinx: Add support for loading encrypted bitstreams

This patch adds support to load encrypted bitstreams using
new command "fpga loads".

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Increase fdt size during Xen boot
Alistair Francis [Tue, 14 Feb 2017 23:06:56 +0000 (15:06 -0800)] 
arm64: zynqmp: Increase fdt size during Xen boot

If we are modifying the device tree to perform a Xen boot we need a
larger device tree then the default fdt resize command gives us.
To avoid having to resize it multiple times increase the fdt resize
size.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agomicroblaze: Build only DTBs for selected target
Michal Simek [Wed, 15 Feb 2017 07:22:04 +0000 (08:22 +0100)] 
microblaze: Build only DTBs for selected target

Adding more targets to repository requires some additional
changes not simply just adding config file, defconfig and dts.
This patch makes this process easier by building only
particular DTB which is selected via defconfig
that Makefile doesn't need to contain all dts files in the repository.

Reported-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add new defconfig for zcu102 rev1.0
Michal Simek [Wed, 15 Feb 2017 07:22:24 +0000 (08:22 +0100)] 
arm64: zynqmp: Add new defconfig for zcu102 rev1.0

Wire zcu102 rev1.0 with config files for SPL.
Configuration files target silicon v4.

Comment empty and not called psu_init_xppu_aper_ram().

Signed-off-by: Michal Simek <michal.simek@xilinx.com>