]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
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>
9 years agonet: emaclite: Rename start and stop functions
Michal Simek [Wed, 16 Dec 2015 09:40:05 +0000 (10:40 +0100)] 
net: emaclite: Rename start and stop functions

Rename start and stop functions to align with DM functions names.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: emaclite: Move driver to DM
Michal Simek [Thu, 10 Dec 2015 16:15:52 +0000 (17:15 +0100)] 
net: emaclite: Move driver to DM

Move driver to DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: emaclite: Use indirect access in emaclite_recv
Michal Simek [Thu, 10 Dec 2015 15:31:38 +0000 (16:31 +0100)] 
net: emaclite: Use indirect access in emaclite_recv

When IP is configured with pong buffers, IP is receiving packets to ping
and then to pong buffer and than ping again.
The original logic in the driver remains there that when ping buffer is
free, pong buffer is checked too and return if both are free.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: emaclite: Use indirect reg access in send
Michal Simek [Thu, 10 Dec 2015 15:01:50 +0000 (16:01 +0100)] 
net: emaclite: Use indirect reg access in send

The original logic in the driver was exchanging buffers which are used for
sending packet and tx_ping and tx_pong buffers were exchanged all the
time to ensure that IP has enough time to send the packet out.
Based on this "feature" send function was using nextbuffertouse variable
to save which buffer should be used.
Before this algorithm was called driver checked that there is free
buffer available.
This checking remains in the driver but driver tries to use tx_ping
first if available. If not, tx_pong buffer is used instead.
To reach this code the original condition is met that at least one of the
buffer should be available.
Testing doesn't show any performance drop when this patch is applied.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: emaclite: Remove XEL_TSR_XMIT_ACTIVE_MASK flag
Michal Simek [Thu, 10 Dec 2015 15:06:07 +0000 (16:06 +0100)] 
net: emaclite: Remove XEL_TSR_XMIT_ACTIVE_MASK flag

This flag is not documented anywhere in the latest documentation that's
why this patch removes it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: emaclite: Fix logic around available TX buffers
Michal Simek [Thu, 10 Dec 2015 14:42:01 +0000 (15:42 +0100)] 
net: emaclite: Fix logic around available TX buffers

Simplify logic how to find out if there is free TX buffer.
Both buffers are checked all the time that's why logic around order
can be removed.
Also add check when only one buffer is available.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: emaclite: Use indirect register access for TX reset
Michal Simek [Thu, 10 Dec 2015 14:32:11 +0000 (15:32 +0100)] 
net: emaclite: Use indirect register access for TX reset

Move to use indirect register access when timeout expires for resetting
TX buffers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: emaclite: Use indirect register access for rx_ping/pong
Michal Simek [Thu, 10 Dec 2015 14:24:23 +0000 (15:24 +0100)] 
net: emaclite: Use indirect register access for rx_ping/pong

Do initialization via indirect register access.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: emaclite: Use indirect register access for tx_ping/pong
Michal Simek [Thu, 10 Dec 2015 14:22:21 +0000 (15:22 +0100)] 
net: emaclite: Use indirect register access for tx_ping/pong

Do initialization via indirect register access.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: emaclite: Convert MDIO to use register offset
Michal Simek [Thu, 10 Dec 2015 13:18:15 +0000 (14:18 +0100)] 
net: emaclite: Convert MDIO to use register offset

Use u-boot coding style how to setup and access MDIO bus.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: emaclite: Sync MDIO support with mainline
Michal Simek [Thu, 14 Jan 2016 08:56:04 +0000 (09:56 +0100)] 
net: emaclite: Sync MDIO support with mainline

Sync MDIO support before move to DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: emaclite: Remove ancient OF probe function
Michal Simek [Tue, 8 Dec 2015 13:57:33 +0000 (14:57 +0100)] 
net: emaclite: Remove ancient OF probe function

Prepare for DM move.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: Add axi emac to Kconfig
Michal Simek [Wed, 9 Dec 2015 15:54:42 +0000 (16:54 +0100)] 
net: Add axi emac to Kconfig

Also add dependency on PHYLIB and MII which is required.
Clean PHYLIB dependency from the driver too.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: axi_emac: Rename start, stop, write_hwaddr functions
Michal Simek [Wed, 16 Dec 2015 08:18:12 +0000 (09:18 +0100)] 
net: axi_emac: Rename start, stop, write_hwaddr functions

Rename few functions to fit to the new name convention used by DM.

Suggested-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: axi_emac: Split recv from free_pkt
Michal Simek [Wed, 9 Dec 2015 13:13:23 +0000 (14:13 +0100)] 
net: axi_emac: Split recv from free_pkt

Call net_process_received_packet() by core.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: axi_emac: Enable access to MDIO in probe
Michal Simek [Tue, 8 Dec 2015 15:10:05 +0000 (16:10 +0100)] 
net: axi_emac: Enable access to MDIO in probe

Detect phy when driver probes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: axi_emac: Move driver to DM
Michal Simek [Tue, 8 Dec 2015 14:44:41 +0000 (15:44 +0100)] 
net: axi_emac: Move driver to DM

Move driver to DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: axi_emac: Pass private structure where possible
Michal Simek [Wed, 9 Dec 2015 13:53:51 +0000 (14:53 +0100)] 
net: axi_emac: Pass private structure where possible

Use axidma_priv instead of ethdevice in preparation of the DM move.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: axi_emac: Pass private structure to phyread/phywrite
Michal Simek [Wed, 9 Dec 2015 13:44:38 +0000 (14:44 +0100)] 
net: axi_emac: Pass private structure to phyread/phywrite

Prepare for move to DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: axi_emac: Put iobase to private structure
Michal Simek [Wed, 9 Dec 2015 13:39:42 +0000 (14:39 +0100)] 
net: axi_emac: Put iobase to private structure

Saving iobase directly to private structure helps with moving to DM.
There is an option to load iobase from pdata but it is additional load.
Pointer to private structure is available all the time.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: axi_emac: Pass directly pointer to register space
Michal Simek [Wed, 9 Dec 2015 13:36:31 +0000 (14:36 +0100)] 
net: axi_emac: Pass directly pointer to register space

Simplify mdio_wait function by passing regs directly.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agonet: axi_emac: Show phy address instead of register content
Michal Simek [Wed, 9 Dec 2015 09:54:53 +0000 (10:54 +0100)] 
net: axi_emac: Show phy address instead of register content

Fix debug message.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agomicroblaze: Enable MICREL_KSZ9021
Michal Simek [Thu, 14 Jan 2016 08:15:33 +0000 (09:15 +0100)] 
microblaze: Enable MICREL_KSZ9021

To solve enabling ETH_DM where ksz90x1_reg_field is defined only when
additional Micrel type is defined.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Wire-up debug_uart in asm
Michal Simek [Thu, 10 Dec 2015 11:55:39 +0000 (12:55 +0100)] 
microblaze: Wire-up debug_uart in asm

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Remove unused I2C macros
Michal Simek [Wed, 9 Dec 2015 12:02:10 +0000 (13:02 +0100)] 
microblaze: Remove unused I2C macros

There is no i2c driver in the current u-boot.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Enable PHYLIB via Kconfig
Michal Simek [Tue, 8 Dec 2015 14:01:31 +0000 (15:01 +0100)] 
microblaze: Enable PHYLIB via Kconfig

Cleanup board configuration.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Do not print eth device when DM_ETH is enabled
Michal Simek [Tue, 8 Dec 2015 14:39:24 +0000 (15:39 +0100)] 
microblaze: Do not print eth device when DM_ETH is enabled

Doing the same fix as is done for ARM by:
"Avoid calling print_eths() with driver model"
(sha1: ff97380015b6b5d7d6267417a1cd6fc0e67b81bc)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
9 years agomicroblaze: Enable uart16550 DM by default
Michal Simek [Wed, 9 Dec 2015 11:50:05 +0000 (12:50 +0100)] 
microblaze: Enable uart16550 DM by default

Microblaze is uses uartlite or uart16550 as console drivers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: uartlite: Add uartlite to Kconfig
Michal Simek [Wed, 9 Dec 2015 11:50:05 +0000 (12:50 +0100)] 
serial: uartlite: Add uartlite to Kconfig

- Move config option out of board file.
- Remove uartlite address from config file

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Thomas Chou <thomas@wytron.com.tw>
9 years agoserial: uartlite: Add support for debug console
Michal Simek [Mon, 14 Dec 2015 15:55:10 +0000 (16:55 +0100)] 
serial: uartlite: Add support for debug console

Add support for debug console.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Thomas Chou <thomas@wytron.com.tw>