]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
9 years agoARM64: zynqmp: Enable SF test command
Michal Simek [Mon, 15 Feb 2016 10:13:24 +0000 (11:13 +0100)] 
ARM64: zynqmp: Enable SF test command

Add option to test flash memory.
Please make sure you have enough malloc space if you want to test larger
memories (CONFIG_SYS_MALLOC_LEN).

ZynqMP> sf test 0 20000
SPI flash test:
0 erase: 2906 ticks, 44 KiB/s 0.352 Mbps
1 check: 9 ticks, 14222 KiB/s 113.776 Mbps
2 write: 166 ticks, 771 KiB/s 6.168 Mbps
3 read: 8 ticks, 16000 KiB/s 128.000 Mbps
Test passed
0 erase: 2906 ticks, 44 KiB/s 0.352 Mbps
1 check: 9 ticks, 14222 KiB/s 113.776 Mbps
2 write: 166 ticks, 771 KiB/s 6.168 Mbps
3 read: 8 ticks, 16000 KiB/s 128.000 Mbps

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Remove !OF_CONTROL code for timer and interrupt
Michal Simek [Mon, 15 Feb 2016 12:44:19 +0000 (13:44 +0100)] 
microblaze: Remove !OF_CONTROL code for timer and interrupt

OF_CONTROL is enabled by default that's why this is dead code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Read information about timer/interrupts from DT
Michal Simek [Mon, 15 Feb 2016 11:10:32 +0000 (12:10 +0100)] 
microblaze: Read information about timer/interrupts from DT

Read information about timer and interrupts from DT. This is the first
small step to move timer and intc to DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Do not enable CMD_GPIO in board config file
Michal Simek [Tue, 16 Feb 2016 15:32:36 +0000 (16:32 +0100)] 
microblaze: Do not enable CMD_GPIO in board config file

CMD_GPIO is enabled (and can be enabled) via menuconfig
that's why it should be removed from board config file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Do not setup the same mac adress for all boards
Michal Simek [Tue, 16 Feb 2016 09:35:52 +0000 (10:35 +0100)] 
ARM64: zynqmp: Do not setup the same mac adress for all boards

This was fixed in mainline some time ago and none board should hardcode
mac address.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Remove earlyconX helper variables
Michal Simek [Tue, 16 Feb 2016 08:56:01 +0000 (09:56 +0100)] 
ARM64: zynqmp: Remove earlyconX helper variables

There is no need to specify earlycon for certain because only earlycon
can be add to bootargs. Linux kernel read information about console from
stdout-path property.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodm: ns16550: Add support for reg-offset property
Michal Simek [Tue, 16 Feb 2016 15:05:23 +0000 (16:05 +0100)] 
dm: ns16550: Add support for reg-offset property

reg-offset is the part of standard 8250 binding in the kernel.
It is shifting start of address space by reg-offset.
On Xilinx platform this offset is typically 0x1000.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Sai Pavan Boddu <saipava@xilinx.com>
Acked-by: Alistair Francis <alistair.francis@xilinx.com>
Tested-by: Alistair Francis <alistair.francis@xilinx.com>
9 years agophy: ti: Do not use binary specification in macros
Michal Simek [Thu, 4 Feb 2016 08:14:31 +0000 (09:14 +0100)] 
phy: ti: Do not use binary specification in macros

Sync it with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoRevert "microblaze: Overwrite default GCC-5.x behavior"
Michal Simek [Thu, 4 Feb 2016 08:10:13 +0000 (09:10 +0100)] 
Revert "microblaze: Overwrite default GCC-5.x behavior"

This reverts commit 2cf38db35bc4644717d151d42f636dc5a93f294b.

All gnu89 inlining functions were fixed that's why this flag is not
needed anymore.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoRevert "arm: smc: Add helper asm code for invoking smc"
Michal Simek [Thu, 4 Feb 2016 07:40:00 +0000 (08:40 +0100)] 
Revert "arm: smc: Add helper asm code for invoking smc"

This reverts commit 1f4dc97747abd75fb23f8d9f43f9acbf49408da6.

SMC call is replaced by mainline patch:
"armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure"
(sha1: a5b9fa30cebd91082f9fea93d7ef33812910da6a)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agofpga: zynqmp: Use mainline smc_call() instead of own
Michal Simek [Thu, 4 Feb 2016 07:45:40 +0000 (08:45 +0100)] 
fpga: zynqmp: Use mainline smc_call() instead of own

Use mainline smc_call() instead of our out of tree smc implementation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoarmv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure
Sergey Temerkhanov [Wed, 14 Oct 2015 16:55:46 +0000 (09:55 -0700)] 
armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure

This commit adds functions issuing calls to secure monitor or
hypervisore. This allows using services such as Power State
Coordination Interface (PSCI) provided by firmware, e.g. ARM
Trusted Firmware (ATF)

The SMC call can destroy all registers declared temporary by the
calling conventions. The clobber list is "x0..x17" because of
this

Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
9 years agozynq-common: Enable phy driver for Xilinx PCS/PMA core
Siva Durga Prasad Paladugu [Fri, 5 Feb 2016 07:52:12 +0000 (13:22 +0530)] 
zynq-common: Enable phy driver for Xilinx PCS/PMA core

Add support of Xilinx PCS/PMA core phy for Zynq

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: zynq_gem: Add support for SGMII interface
Siva Durga Prasad Paladugu [Fri, 5 Feb 2016 07:52:11 +0000 (13:22 +0530)] 
net: zynq_gem: Add support for SGMII interface

Add support of SGMII interface for zynq GEM.
Read xlnx,emio property from DT.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agophy: Add phy driver support for xilinx PCS/PMA core
Siva Durga Prasad Paladugu [Fri, 5 Feb 2016 07:52:10 +0000 (13:22 +0530)] 
phy: Add phy driver support for xilinx PCS/PMA core

Add phy driver support for xilinx PCS/PMA core

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use SPDX header in zcu102 revB
Michal Simek [Thu, 11 Feb 2016 14:50:26 +0000 (15:50 +0100)] 
ARM64: zynqmp: Use SPDX header in zcu102 revB

No functional changes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Prepade DT for include headers
Michal Simek [Mon, 18 Jan 2016 15:06:42 +0000 (16:06 +0100)] 
ARM64: zynqmp: Prepade DT for include headers

To be able to include headers from dt generic location.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: zcu102: dp: Use si570_1 for pixel clock
Hyun Kwon [Tue, 24 Nov 2015 01:12:59 +0000 (17:12 -0800)] 
ARM64: zynqmp: zcu102: dp: Use si570_1 for pixel clock

Enable the video clock from PL, and set phandle to si570_1.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: zcu102: Enable DisplayPort
Hyun Kwon [Tue, 24 Nov 2015 01:12:57 +0000 (17:12 -0800)] 
ARM64: zynqmp: zcu102: Enable DisplayPort

Enable DisplayPort related drivers.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add property snps,quirk-frame-length-adjustment
Subbaraya Sundeep Bhatta [Wed, 27 Jan 2016 14:27:03 +0000 (19:57 +0530)] 
ARM64: zynqmp: Add property snps,quirk-frame-length-adjustment

Added snps,quirk-frame-length-adjustment and snps,refclk_fladj
for USB

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Move usb description to the latest state
Michal Simek [Thu, 11 Feb 2016 14:39:15 +0000 (15:39 +0100)] 
ARM64: zynqmp: Move usb description to the latest state

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Align node address with parent node for dpdma
Michal Simek [Wed, 27 Jan 2016 18:04:56 +0000 (19:04 +0100)] 
ARM64: zynqmp: Align node address with parent node for dpdma

Use right addresses for channel names

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use correct addresses in node names
Hyun Kwon [Tue, 24 Nov 2015 01:12:54 +0000 (17:12 -0800)] 
ARM64: zynqmp: Use correct addresses in node names

Reflect acutal silicon addresses in DT node names.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Added PM domains for PLLs
Filip Drazic [Wed, 10 Feb 2016 11:00:43 +0000 (12:00 +0100)] 
ARM64: zynqmp: DT: Added PM domains for PLLs

Signed-off-by: Filip Drazic <filip.drazic@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Added PM domain for DDR
Filip Drazic [Fri, 29 Jan 2016 17:56:08 +0000 (18:56 +0100)] 
ARM64: zynqmp: DT: Added PM domain for DDR

Signed-off-by: Filip Drazic <filip.drazic@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Add power domains
Soren Brinkmann [Mon, 11 Jan 2016 23:34:42 +0000 (15:34 -0800)] 
ARM64: zynqmp: DT: Add power domains

Add power-domains to the DT and attach devices to them.
The power-domains are all logical domains as understood by firmware.
Each PD is identified by a unique identifier that the platform firmware
understands.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add backward compatible string for uart
Michal Simek [Fri, 27 Nov 2015 12:22:58 +0000 (13:22 +0100)] 
ARM64: zynqmp: Add backward compatible string for uart

Mainline kernel has no r1p12 compatible string that's why console stops
to work with the latest DTS files. Append generic compatible string.
Keep in your mind that using this generic compatible string not all uart
features will be available.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Sync GEM nodes with Linux
Michal Simek [Thu, 11 Feb 2016 14:26:46 +0000 (15:26 +0100)] 
ARM64: zynqmp: Sync GEM nodes with Linux

Remove jumbo properties which are handled in the driver directly
and use mainline compatible string which is already handled by the
driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Hook up the GEMs to the SMMU
Edgar E. Iglesias [Thu, 26 Nov 2015 13:12:20 +0000 (14:12 +0100)] 
ARM64: zynqmp: Hook up the GEMs to the SMMU

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Correct IRQ nr for the SMMU
Edgar E. Iglesias [Thu, 26 Nov 2015 13:12:19 +0000 (14:12 +0100)] 
ARM64: zynqmp: Correct IRQ nr for the SMMU

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added broken-tuning property to SD, eMMC nodes
P L Sai Krishna [Tue, 19 Jan 2016 13:31:10 +0000 (19:01 +0530)] 
ARM64: zynqmp: Added broken-tuning property to SD, eMMC nodes

This patch adds broken-tuning property to SD and
eMMC nodes.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix coding style for pcie
Michal Simek [Wed, 20 Jan 2016 11:59:23 +0000 (12:59 +0100)] 
ARM64: zynqmp: Fix coding style for pcie

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add interrupt-controller property to gpio nodes
Michal Simek [Mon, 23 Nov 2015 12:26:15 +0000 (13:26 +0100)] 
ARM64: zynqmp: Add interrupt-controller property to gpio nodes

GPIO driver supports an input interrupt that's why gpio node itself can
be labeled as interrupt controller.

Reported-by: John Linn <linnj@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add CCI-400 node
Michal Simek [Thu, 26 Nov 2015 10:21:25 +0000 (11:21 +0100)] 
ARM64: zynqmp: Add CCI-400 node

Add CCI-400 node to DTSI.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Add power domains
Soren Brinkmann [Mon, 11 Jan 2016 23:34:42 +0000 (15:34 -0800)] 
ARM64: zynqmp: DT: Add power domains

Add power-domains to the DT and attach devices to them.
The power-domains are all logical domains as understood by firmware.
Each PD is identified by a unique identifier that the platform firmware
understands.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Put qspi size to comment for zcu102 rev A
Michal Simek [Tue, 2 Feb 2016 10:55:24 +0000 (11:55 +0100)] 
ARM64: zynqmp: Put qspi size to comment for zcu102 rev A

Different board revisions have different QSPI parts.
Use comments to mentioned it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Disable PCIe for zcu102
Michal Simek [Fri, 15 Jan 2016 11:25:44 +0000 (12:25 +0100)] 
ARM64: zynqmp: Disable PCIe for zcu102

PCIe is valid configuration for this board but GT muxes are setup to use
DP, USB and SATA instead of PCIe x4.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added OOB timing settings in zynqmp-zcu102.dts
Anurag Kumar Vulisha [Thu, 5 Nov 2015 11:51:39 +0000 (17:21 +0530)] 
ARM64: zynqmp: Added OOB timing settings in zynqmp-zcu102.dts

This patch adds the sata port phy OOB timing values in the sata
device-tree node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add missing compatible property for si5328
Michal Simek [Thu, 4 Feb 2016 12:56:23 +0000 (13:56 +0100)] 
ARM64: zynqmp: Add missing compatible property for si5328

Missing compatible string It is causing error in bootlog
i2c i2c-10: of_i2c: modalias failure on
/amba/i2c@ff030000/i2cswitch@74/i2c@4/clock-generator4@69

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: zcu102: Change factory-fout of si570_1 to 300Hz
Hyun Kwon [Tue, 24 Nov 2015 01:12:58 +0000 (17:12 -0800)] 
ARM64: zynqmp: zcu102: Change factory-fout of si570_1 to 300Hz

'factory-fout' should reflect correct default value.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use different clock-generator names
Michal Simek [Wed, 27 Jan 2016 18:09:35 +0000 (19:09 +0100)] 
ARM64: zynqmp: Use different clock-generator names

If the same names in front of @ are used si570 driver reject clock
registration.
Error message:
si570: probe of 10-005d failed with error -17

Change all names to avoid it.

Reported-by: Chris Kohn <ckohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix i2c u8 chip address on rev B
Michal Simek [Wed, 20 Jan 2016 12:32:37 +0000 (13:32 +0100)] 
ARM64: zynqmp: Fix i2c u8 chip address on rev B

There was conflict with 0x20 with i2c mux that's why it was changed on
rev B board.
Disable unreachable i2c chip.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add missing compatible string for zcu102
Michal Simek [Mon, 18 Jan 2016 15:53:46 +0000 (16:53 +0100)] 
ARM64: zynqmp: Add missing compatible string for zcu102

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zcu102: GT selection via DT
Michal Simek [Thu, 26 Nov 2015 14:02:01 +0000 (15:02 +0100)] 
ARM64: zcu102: GT selection via DT

Use gpio hogs to select GT muxes based on HW design.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zcu102: Fix i2c gpio GT muxes description
Michal Simek [Mon, 18 Jan 2016 15:39:33 +0000 (16:39 +0100)] 
ARM64: zcu102: Fix i2c gpio GT muxes description

Add simple u-boot i2c command to know how to setup GPIO gt outputs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Mark zcu102 revision A in DTS
Michal Simek [Thu, 11 Feb 2016 14:01:34 +0000 (15:01 +0100)] 
ARM64: zynqmp: Mark zcu102 revision A in DTS

Extend model description for zcu102 revA.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: dc1: Remove default properties
Hyun Kwon [Tue, 24 Nov 2015 01:12:56 +0000 (17:12 -0800)] 
ARM64: zynqmp: dc1: Remove default properties

Remove default properies which are present in zynqmp.dtsi.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: dp: Add default properties to zynqmp.dtsi
Hyun Kwon [Tue, 24 Nov 2015 01:12:55 +0000 (17:12 -0800)] 
ARM64: zynqmp: dp: Add default properties to zynqmp.dtsi

Add some default properties to zynqmp.dtsi.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add no-1-8-v property to SD node.
P L Sai Krishna [Thu, 7 Jan 2016 09:27:28 +0000 (14:57 +0530)] 
ARM64: zynqmp: Add no-1-8-v property to SD node.

There is no support to switch to 1.8V and use
UHS mode on 1.0 silicon. Hence, this patch add
no-1-8-v property to SD node to denotes 1.8v card
voltage is not supported on this system, even if
the controller claims it is.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added OOB timing settings in zynqmp-zc1751-xm015-dc1.dts
Anurag Kumar Vulisha [Thu, 5 Nov 2015 11:51:38 +0000 (17:21 +0530)] 
ARM64: zynqmp: Added OOB timing settings in zynqmp-zc1751-xm015-dc1.dts

This patch adds the sata port phy OOB timing values in the sata
device-tree node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add 8-bit bus width property.
P L Sai Krishna [Thu, 7 Jan 2016 09:27:27 +0000 (14:57 +0530)] 
ARM64: zynqmp: Add 8-bit bus width property.

This patch add 8-bit bus width property to eMMC node.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added OOB timing settings in zynqmp-ep108.dts
Anurag Kumar Vulisha [Thu, 5 Nov 2015 11:51:37 +0000 (17:21 +0530)] 
ARM64: zynqmp: Added OOB timing settings in zynqmp-ep108.dts

This patch adds the sata port phy OOB timing values in the sata
device-tree node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: dt: Change qspi node compatible string
Ranjit Waghmode [Wed, 2 Dec 2015 04:36:58 +0000 (10:06 +0530)] 
ARM64: zynqmp: dt: Change qspi node compatible string

This patch makes compatible string as "m25p80" for qspi node in
ep108 device tree file

Signed-off-by: Ranjit Waghmode <ranjit.waghmode@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Add earlycon to EP108
Soren Brinkmann [Wed, 13 Jan 2016 18:19:53 +0000 (10:19 -0800)] 
ARM64: zynqmp: DT: Add earlycon to EP108

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: clk: Enable the aud_clk for ALSA drivers
Hyun Kwon [Tue, 24 Nov 2015 01:13:00 +0000 (17:13 -0800)] 
ARM64: zynqmp: clk: Enable the aud_clk for ALSA drivers

Enable audio clock for ALSA drivers.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use 64bit size cell format
Michal Simek [Tue, 9 Feb 2016 11:35:06 +0000 (12:35 +0100)] 
ARM64: zynqmp: Use 64bit size cell format

Use 64bit size cell format instead of 32bit for memory
description. Change 64bit sizes also for all others IPs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add serdes address space dp driver
Michal Simek [Wed, 27 Jan 2016 18:02:37 +0000 (19:02 +0100)] 
ARM64: zynqmp: Add serdes address space dp driver

Probably for run time serdes adjustment.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Read RAM information from DT
Michal Simek [Mon, 8 Feb 2016 08:34:53 +0000 (09:34 +0100)] 
ARM64: zynqmp: Read RAM information from DT

Read information about memory from DT. This patch simplify life with
synchronization between DT and board files.

zynqmp-mini-nand, zynqmp-mini-qspi are not converted because they need
specific settings which needs to be tested.

dram_init() only needs maximum RAM size below 4GB that's why please sort
banks in memory node.
dram_init_banksize() copies memory setup to bi_dram[].
This will avoid reading information from DT twice.

Memory test start/end were changed to DDR location to let memtest still
compiled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agofdt: Try to read address-cells/size-cells from parent
Michal Simek [Wed, 10 Feb 2016 11:46:23 +0000 (12:46 +0100)] 
fdt: Try to read address-cells/size-cells from parent

Read address-cells and size-cells from parent if they are not present in
current node.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Enable libfdt for mini configurations
Michal Simek [Thu, 11 Feb 2016 15:25:50 +0000 (16:25 +0100)] 
ARM64: zynqmp: Enable libfdt for mini configurations

Even mini configuration requires libfdt because of DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Separate qspi register to two blocks
Michal Simek [Tue, 9 Feb 2016 11:42:53 +0000 (12:42 +0100)] 
ARM64: zynqmp: Separate qspi register to two blocks

Separation is easier for reading.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix mics_clk alignment
Michal Simek [Tue, 9 Feb 2016 11:35:27 +0000 (12:35 +0100)] 
ARM64: zynqmp: Fix mics_clk alignment

Fix mics_clk alignment to follow rules.
Also remove one blank line.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: axi_emac: Report phy-node error message permanently
Michal Simek [Mon, 8 Feb 2016 12:54:05 +0000 (13:54 +0100)] 
net: axi_emac: Report phy-node error message permanently

Do not use debug() when printing error message. Use printf instead.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Remove ZYNQ_BOOT_FREEBSD option
Michal Simek [Thu, 4 Feb 2016 10:08:26 +0000 (11:08 +0100)] 
ARM: zynq: Remove ZYNQ_BOOT_FREEBSD option

Remove CONFIG_ZYNQ_BOOT_FREEBSD configuration option and setup
CONFIG_SYS_MMC_MAX_DEVICE 1 for all Zynq boards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynq: Serial driver is enabled by default if DCC is not enabled
Michal Simek [Thu, 4 Feb 2016 09:44:10 +0000 (10:44 +0100)] 
zynq: Serial driver is enabled by default if DCC is not enabled

Remove ancient definitions.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynq: cc108: Information about memory is taken from DTS
Michal Simek [Thu, 4 Feb 2016 09:38:05 +0000 (10:38 +0100)] 
zynq: cc108: Information about memory is taken from DTS

Remove unneeded macro from board file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynq: cc108: Enable gem for cc108
Michal Simek [Thu, 4 Feb 2016 09:34:54 +0000 (10:34 +0100)] 
zynq: cc108: Enable gem for cc108

And remove definition from config file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Remove unused SPI base addresses
Michal Simek [Thu, 4 Feb 2016 07:35:53 +0000 (08:35 +0100)] 
ARM: zynq: Remove unused SPI base addresses

Remove unused macros. Adresses are taken from DT.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: zynqmp: Load qspi based address from DT
Michal Simek [Thu, 4 Feb 2016 07:34:24 +0000 (08:34 +0100)] 
spi: zynqmp: Load qspi based address from DT

Read information from DT instead of hardcoded it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix indentation in cpu.c
Michal Simek [Thu, 4 Feb 2016 06:50:44 +0000 (07:50 +0100)] 
ARM64: zynqmp: Fix indentation in cpu.c

Fix coding style problems.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: zynq: Change logic in putc
Michal Simek [Wed, 3 Feb 2016 14:16:51 +0000 (15:16 +0100)] 
serial: zynq: Change logic in putc

Sync logic with Linux kernel where TX empty flag is checked before char
is sent.
This logic is fixing problem with console on zynqmp platform.

For example:
DRAM:  2 GiB
Enabling Caches...
EL Level: ��   sdhci@ff170000: 0
Using default environment

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Decrease boot delay
Soren Brinkmann [Mon, 1 Feb 2016 22:56:20 +0000 (14:56 -0800)] 
zynqmp: Decrease boot delay

Synchronize it with zynq platform.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agommc: mmc_write: Write only single block at a time
Siva Durga Prasad Paladugu [Tue, 2 Feb 2016 05:10:16 +0000 (10:40 +0530)] 
mmc: mmc_write: Write only single block at a time

Write only single block at a time while doing write
operations mmc/SD/eMMC
This is workaround for an issue with multiple block write

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Add GEM to zc1751-dc(1|2)
Soren Brinkmann [Mon, 1 Feb 2016 21:56:51 +0000 (13:56 -0800)] 
zynqmp: Add GEM to zc1751-dc(1|2)

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomtd: nand: arasan: Correct nand ecc initialization
Siva Durga Prasad Paladugu [Mon, 1 Feb 2016 06:36:35 +0000 (12:06 +0530)] 
mtd: nand: arasan: Correct nand ecc initialization

Correct the nand ecc initialization code
This fixes the issue of incorrect nand ecc
init if no device is found in ecc_matric then
it endsup ecc init with junk intialization
instead of the most suited one.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Resize fdt to prepare for DT changes
Michal Simek [Fri, 22 Jan 2016 11:21:19 +0000 (12:21 +0100)] 
ARM64: zynqmp: Resize fdt to prepare for DT changes

It is good to resize fdt before it is changed to ensure that there is
enough space for changes which veloce command does.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: zynqmp: Line up checkboard message
Michal Simek [Mon, 25 Jan 2016 10:04:21 +0000 (11:04 +0100)] 
ARM: zynq: zynqmp: Line up checkboard message

Use space instead of tab in checkboard print to aligned
it with others boards.

Reported-by: David Glessner <david.glessner@rockwellcollins.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
9 years agoARM64: zynqmp: Add sataboot command
Michal Simek [Wed, 20 Jan 2016 15:55:22 +0000 (16:55 +0100)] 
ARM64: zynqmp: Add sataboot command

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoblock: Add support for Ceva sata
Michal Simek [Wed, 30 Sep 2015 15:26:55 +0000 (17:26 +0200)] 
block: Add support for Ceva sata

Initial Ceva Sata init code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Overwrite default GCC-5.x behavior
Michal Simek [Wed, 20 Jan 2016 07:34:53 +0000 (08:34 +0100)] 
microblaze: Overwrite default GCC-5.x behavior

From GCC-5.x version the default mode for C is -std=gnu11
instead of -std=gnu89 but the is still the code in u-boot which doesn't
full fill gnu11 standard. Enable gnu89 inlining.

https://gcc.gnu.org/gcc-5/porting_to.html (go through the
“C languages issues” section).

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: add a test for the sleep command
Stephen Warren [Fri, 15 Jan 2016 18:15:31 +0000 (11:15 -0700)] 
test/py: add a test for the sleep command

Execute "sleep", and validate that it sleeps for approximately the correct
amount of time.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: test the ums command
Stephen Warren [Fri, 15 Jan 2016 18:15:30 +0000 (11:15 -0700)] 
test/py: test the ums command

This test invokes the "ums" command in U-Boot, and validates that a USB
storage device is enumerated on the test host system, and can be read
from.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: test the shell if command
Stephen Warren [Fri, 15 Jan 2016 18:15:29 +0000 (11:15 -0700)] 
test/py: test the shell if command

Migrate all most tests from command_ut.c into the Python test system.
This allows the tests to be run against any U-Boot binary that supports
the if command (i.e. where hush is enabled) without requiring that
binary to be permanently bloated with the code from command_ut.

Some tests in command_ut.c can only be executed from C code, since they
test internal (more unit-level) features of various U-Boot APIs. The
migrated tests can all operate directly from the U-Boot console.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: add test of basic shell functionality
Stephen Warren [Fri, 15 Jan 2016 18:15:28 +0000 (11:15 -0700)] 
test/py: add test of basic shell functionality

This tests whether the following features of the U-Boot shell:
- Execution of a directly entered command.
- Compound commands (; delimiter).
- Quoting of arguments containing spaces.
- Executing commands from environment variables.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: test the md/mw commands
Stephen Warren [Fri, 15 Jan 2016 18:15:27 +0000 (11:15 -0700)] 
test/py: test the md/mw commands

This tests whether md/mw work, and affect each-other.

Command repeat is also tested.

test/cmd_repeat.sh is removed, since the new Python-based test does
everything it used to.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: add test of setenv/printenv/echo
Stephen Warren [Fri, 15 Jan 2016 18:15:26 +0000 (11:15 -0700)] 
test/py: add test of setenv/printenv/echo

This tests basic environment variable functionality.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: test that sandbox exits when asked
Stephen Warren [Fri, 15 Jan 2016 18:15:25 +0000 (11:15 -0700)] 
test/py: test that sandbox exits when asked

Test the sandbox port's implementation of the reset command and SIGHUP
handling. These should both cause the U-Boot process to exit gracefully.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agotest/py: Implement pytest infrastructure
Stephen Warren [Fri, 15 Jan 2016 18:15:24 +0000 (11:15 -0700)] 
test/py: Implement pytest infrastructure

This tool aims to test U-Boot by executing U-Boot shell commands using the
console interface. A single top-level script exists to execute or attach
to the U-Boot console, run the entire script of tests against it, and
summarize the results. Advantages of this approach are:

- Testing is performed in the same way a user or script would interact
  with U-Boot; there can be no disconnect.
- There is no need to write or embed test-related code into U-Boot itself.
  It is asserted that writing test-related code in Python is simpler and
  more flexible that writing it all in C.
- It is reasonably simple to interact with U-Boot in this way.

A few simple tests are provided as examples. Soon, we should convert as
many as possible of the other tests in test/* and test/cmd_ut.c too.

The hook scripts, relay control utilities, and udev rules I use for my
own HW setup are published at https://github.com/swarren/uboot-test-hooks.

See README.md for more details!

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org> #v3
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add missing entry about zynqmp_mini_nand
Michal Simek [Thu, 14 Jan 2016 08:05:25 +0000 (09:05 +0100)] 
ARM64: zynqmp: Add missing entry about zynqmp_mini_nand

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Fix board_init calling sequence
Michal Simek [Fri, 11 Dec 2015 14:01:28 +0000 (15:01 +0100)] 
microblaze: Fix board_init calling sequence

board_init() is in final elf file but it is not called at all.
Use board_init_late() instead and call gpio_init() from it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Enable HUSH via Kconfig
Michal Simek [Fri, 11 Dec 2015 13:59:03 +0000 (14:59 +0100)] 
microblaze: Enable HUSH via Kconfig

Cleanup board file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Read information about RAM from DT
Michal Simek [Fri, 11 Dec 2015 13:45:29 +0000 (14:45 +0100)] 
microblaze: Read information about RAM from DT

Do not setup ram start/size in board file. Read it from DT instead.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Remove empty file - cpu.c
Michal Simek [Fri, 11 Dec 2015 12:17:35 +0000 (13:17 +0100)] 
microblaze: Remove empty file - cpu.c

No need to have empty unused file in architecture code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Move CONFIG_NETCONSOLE to Kconfig
Michal Simek [Fri, 11 Dec 2015 12:16:16 +0000 (13:16 +0100)] 
microblaze: Move CONFIG_NETCONSOLE to Kconfig

Cleanup board file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Remove CONFIG_FIT from board file
Michal Simek [Fri, 11 Dec 2015 12:12:42 +0000 (13:12 +0100)] 
microblaze: Remove CONFIG_FIT from board file

And enable it via defconfig by default.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Remove systemace from board file
Michal Simek [Fri, 11 Dec 2015 12:06:55 +0000 (13:06 +0100)] 
microblaze: Remove systemace from board file

Systemace is ancient IP which is not tested. Remove it from default
configuration.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Move eth configuration to Kconfig
Michal Simek [Fri, 11 Dec 2015 09:27:57 +0000 (10:27 +0100)] 
microblaze: Move eth configuration to Kconfig

Cleanup board specific file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Enable axi emac via Kconfig
Michal Simek [Wed, 9 Dec 2015 15:54:42 +0000 (16:54 +0100)] 
microblaze: Enable axi emac via Kconfig

Enable driver by default for all platforms.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: emaclite: Move emaclite to Kconfig
Michal Simek [Fri, 11 Dec 2015 08:41:49 +0000 (09:41 +0100)] 
net: emaclite: Move emaclite to Kconfig

Add PHYLIB and MII dependencies and enable it by default for Microblaze.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: emaclite: Let core to handle received packet
Michal Simek [Wed, 16 Dec 2015 09:52:39 +0000 (10:52 +0100)] 
net: emaclite: Let core to handle received packet

Pass pointer to core to handle packet.

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