]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
7 years agonet: zynq_gem: Dont run any phy detection logic for GMII case
Siva Durga Prasad Paladugu [Tue, 20 Feb 2018 06:26:19 +0000 (11:56 +0530)] 
net: zynq_gem: Dont run any phy detection logic for GMII case

This patch bypasses phy detection logic for GMII interface
and just depend on phy address received from DT. This patch
is required as phy detection logic is different for some phys
like xilinx phy which can be connected over SGMII and GMII
interface.
This fixes the issue of ethernet failures when xilinx phy is
connected over GMII interface.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add support to load an app at EL1
Nitin Jain [Fri, 16 Feb 2018 07:26:17 +0000 (12:56 +0530)] 
arm64: zynqmp: Add support to load an app at EL1

This patch is adding support to switch to EL1 while loading an EL1
application with u-boot running at EL above EL1 in aarch64 mode.

Signed-off-by: Nitin Jain <nitinj@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoRevert "pytest: Mark memtest_ddr as xfail"
Michal Simek [Thu, 15 Feb 2018 08:52:58 +0000 (09:52 +0100)] 
Revert "pytest: Mark memtest_ddr as xfail"

This reverts commit dfb16ce1b29a246e3a2e210721c880fa157e0f18.

The previous patch
"arm64: zynqmp: Changed scratch address used by the alternate memory
test" is fixing this test failure.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Changed scratch address used by the alternate memory test
Vipul Kumar [Thu, 15 Feb 2018 05:54:41 +0000 (11:24 +0530)] 
arm64: zynqmp: Changed scratch address used by the alternate memory test

This patch changed CONFIG_SYS_MEMTEST_SCRATCH address to the
accessible DDR address used by alternate memory test.
Before this, 0xfffc0000 address was used, which is the OCM
address and not enabled in MMU table. So, whenever trying
to access 0xfffc0000 address, got Synchronous Abort exception.

After changing CONFIG_SYS_MEMTEST_SCRATCH address, alternate
memory test is working fine.
Keep origin setting just for mini configurations.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoenv: Relocate env drivers if manual reloc is required
Siva Durga Prasad Paladugu [Sat, 10 Feb 2018 09:35:20 +0000 (15:05 +0530)] 
env: Relocate env drivers if manual reloc is required

Relocate env drivers if manual relocation is enabled. This
patch fixes the issue of u-boot hang incase if env is
present in any of the flash devices.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Move bootargs setting to Kconfig
Michal Simek [Mon, 12 Feb 2018 07:15:01 +0000 (08:15 +0100)] 
arm64: zynqmp: Move bootargs setting to Kconfig

bootargs should be setup via Kconfig. There are still xilinx commands
which are changing command line based on bootmode which are not moved.
Moving to distro default is probably the best thing to do.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
7 years agoarm64: zynqmp: Enable newer pmufw versions
Michal Simek [Thu, 8 Feb 2018 07:51:36 +0000 (08:51 +0100)] 
arm64: zynqmp: Enable newer pmufw versions

As of now newer pmufw is keeping old interfaces. That's why permit
u-boot to run on newer version. Recommended version will be setup later.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Cleanup zc12XX defconfigs
Michal Simek [Fri, 9 Feb 2018 10:04:56 +0000 (11:04 +0100)] 
arm64: zynqmp: Cleanup zc12XX defconfigs

The patch
"Kconfig: Select networking commands only when NET is enabled"
(sha1: 99dcbdd8a3c3b6b9d7a4adb32bce73e51e51b7c9)
introduced dependency on NET which is not enabled on zc12xx targets.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoKconfig: Select networking commands only when NET is enabled
Michal Simek [Tue, 6 Feb 2018 12:28:36 +0000 (13:28 +0100)] 
Kconfig: Select networking commands only when NET is enabled

There is no reason to unconditially select network commands as distro
defaults without networking enable.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoKconfig: net: phylib: Phylib should depends on NET
Michal Simek [Tue, 6 Feb 2018 12:23:52 +0000 (13:23 +0100)] 
Kconfig: net: phylib: Phylib should depends on NET

There is no value to enable phylib without networking support.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
7 years agoomap4: sdp4430: Enable CONFIG_NET for this platform
Michal Simek [Thu, 8 Feb 2018 07:58:59 +0000 (08:58 +0100)] 
omap4: sdp4430: Enable CONFIG_NET for this platform

Distro default configuration contains also dhcp and pxe setting which
can't working without enabling CONFIG_NET.
EFI is not required that's why it is not enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agosandbox: Fixed spi-flash sandbox compilation warnings
Vipul Kumar [Thu, 8 Feb 2018 11:06:16 +0000 (16:36 +0530)] 
sandbox: Fixed spi-flash sandbox compilation warnings

This patch fixed spi-flash sandbox compilation warnings.
There is a variable bank_addr which was set but unused.
Defined this variable on the basis of configs and used
according to that configs.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: cse-nand: Added pre-relocation property in cse-nand dts
Vipul Kumar [Thu, 8 Feb 2018 07:28:55 +0000 (12:58 +0530)] 
arm: cse-nand: Added pre-relocation property in cse-nand dts

This patch added u-boot,dm-pre-reloc property in the
dts of cse-nand. Without this property, the device was not
getting probe and timer initialization was getting
fail. This property enable the pre-relocation support.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agozynqmp: aes: Print error code incase of decryption failure
Siva Durga Prasad Paladugu [Wed, 7 Feb 2018 06:01:49 +0000 (11:31 +0530)] 
zynqmp: aes: Print error code incase of decryption failure

This patch prints error code incase of decryption failure
Also used __func__ instead of function name to avoid checkpatch
warning

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospl: fit: move fdt_record_loadable out of ARCH_FIXUP_FDT_MEMORY guard
Philipp Tomsich [Fri, 2 Feb 2018 11:01:44 +0000 (12:01 +0100)] 
spl: fit: move fdt_record_loadable out of ARCH_FIXUP_FDT_MEMORY guard

The fdt_record_loadable()-function was wedged between other functions
that were guarded by ARCH_FIXUP_FDT_MEMORY.  This could lead to linker
errors on some configurations.

With this change, fdt_record_loadable() is moved out of the
ARCH_FIXUP_FDT_MEMORY guard (plus I tried to retain alphabetical
ordering for functions by placing it appropriately).

References: 9f45aeb ("spl: fit: implement fdt_record_loadable")
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reported-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoRevert "asm-generic: atomic: Remove unused functions"
Michal Simek [Thu, 1 Feb 2018 07:57:50 +0000 (08:57 +0100)] 
Revert "asm-generic: atomic: Remove unused functions"

This reverts commit c47d9122713e419c6af2faddf47c75b6ae009720.

And also squashed with mainline patch which solves it differently
"atomic-long: Fix warnings on arm64"
(sha1: 9c3264ce40130966897fb9c1b91c120f588531d0)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Disable ethernet commands for zc12xx platforms
Michal Simek [Wed, 31 Jan 2018 15:11:36 +0000 (16:11 +0100)] 
arm64: zynqmp: Disable ethernet commands for zc12xx platforms

These board have no ethernet inteface or usb to ethernet interfaces
that's why ethernet commands are not needed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agopytest: Mark memtest_ddr as xfail
Michal Simek [Wed, 31 Jan 2018 13:57:26 +0000 (14:57 +0100)] 
pytest: Mark memtest_ddr as xfail

This test is failing on ZynqMP. Mark it as xfail to make sure that it
gets to different category.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Enable debug uart on Zedboard
Siva Durga Prasad Paladugu [Wed, 24 Jan 2018 11:50:32 +0000 (17:20 +0530)] 
arm: zynq: Enable debug uart on Zedboard

It helps with debugging.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Fix misspelled choice default
Ulf Magnusson [Tue, 30 Jan 2018 13:02:01 +0000 (14:02 +0100)] 
arm64: zynqmp: Fix misspelled choice default

There is no JTAG symbol in the "Boot mode" choice. JTAG_MODE was
probably intended.

No functional changes. Kconfig choices fall back on using the first
(visible) symbol in the choice as the default if the default symbol is
not visible.

Discovered in Kconfiglib (https://github.com/ulfalizer/Kconfiglib),
which prints the following warning:

warning: the default selection JTAG (undefined) of <choice> (defined at arch/arm/cpu/armv8/zynqmp/Kconfig:107) is not contained in the choice

I've added a corresponding warning to the C tools too, which is
currently in linux-next: https://patchwork.kernel.org/patch/9983667/

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoconfigs: zynqmp: Enable Fixed link support
Siva Durga Prasad Paladugu [Thu, 25 Jan 2018 12:19:23 +0000 (17:49 +0530)] 
configs: zynqmp: Enable Fixed link support

This patch enables the fixed link support for
all ZynqMP boards.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agotest: py: Move ram base address detection out of loop
Michal Simek [Tue, 23 Jan 2018 12:35:09 +0000 (13:35 +0100)] 
test: py: Move ram base address detection out of loop

There is no reason to read base address in a loop. Do it just once.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agotest: py: Create qspi write continue test
Michal Simek [Tue, 23 Jan 2018 13:51:15 +0000 (14:51 +0100)] 
test: py: Create qspi write continue test

test_qspi_write_twice() is not checking if read back is rewriting
location around start and end in DDR.
Test is doing these steps:
- erasing qspi
- crc32 over full qspi size in DDR
- sf write with 3 writes
  - first write inside page size
  - second write with size over page size
  - third write with rest of data till total size
- sf read the whole qspi back to different DDR location
- crc32 over it

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agotest: py: Erase qspi before writing data
Michal Simek [Tue, 23 Jan 2018 11:43:22 +0000 (12:43 +0100)] 
test: py: Erase qspi before writing data

Every test should be able to run independently that's why test should
clear qspi before write.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomicroblaze: Moved ethernet PHY configs of Microblaze board to defconfig
Vipul Kumar [Wed, 24 Jan 2018 05:21:32 +0000 (10:51 +0530)] 
microblaze: Moved ethernet PHY configs of Microblaze board to defconfig

This patch moved ethernet PHY configs of Microblaze board to
respective defconfig.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Moved ethernet PHY configs of ZynqMP boards to defconfig
Vipul Kumar [Wed, 24 Jan 2018 05:21:31 +0000 (10:51 +0530)] 
arm64: zynqmp: Moved ethernet PHY configs of ZynqMP boards to defconfig

This patch moved ethernet PHY configs of ZynqMP boards
to respective defconfig.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Moved ethernet PHY configs of Zynq boards to defconfig
Vipul Kumar [Wed, 24 Jan 2018 05:21:30 +0000 (10:51 +0530)] 
arm: zynq: Moved ethernet PHY configs of Zynq boards to defconfig

This patch moved ethernet PHY configs of Zynq boards
to respective defconfig.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoaxi: ethernet: Added support for 64 bit addressing for axi-ethernet
Vipul Kumar [Tue, 23 Jan 2018 09:22:35 +0000 (14:52 +0530)] 
axi: ethernet: Added support for 64 bit addressing for axi-ethernet

This patch uses writeq() function to enable greater than 32 bit
addressing of axi-ethernet for the ZynqMP devices.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: zynq_qspi: Typecast rxbuf properly
Siva Durga Prasad Paladugu [Tue, 23 Jan 2018 06:41:18 +0000 (12:11 +0530)] 
spi: zynq_qspi: Typecast rxbuf properly

This patch typecasts and accesses rx buf properly as
an unaligned rxbuf, typecasting with u16 and accessing
it causes data abort excpetion and this patch fixes it.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: Add support for spi part sst26wf016b
Siva Durga Prasad Paladugu [Fri, 13 Oct 2017 05:35:04 +0000 (11:05 +0530)] 
spi: Add support for spi part sst26wf016b

This patch adds spi device sst26wf016b to the
supported spi flash ids

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agotest: py: DDR address for writing data back is also randomized
Michal Simek [Fri, 19 Jan 2018 09:43:05 +0000 (10:43 +0100)] 
test: py: DDR address for writing data back is also randomized

Make sure that test is using diferent offsets for reading data back.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agopy: test: Fix qspi crc handling
Michal Simek [Fri, 19 Jan 2018 09:20:09 +0000 (10:20 +0100)] 
py: test: Fix qspi crc handling

Read the whole CRC string not just one char.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: zynq_qspi: Read only one byte at a time from txbuf
Siva Durga Prasad Paladugu [Fri, 19 Jan 2018 06:17:56 +0000 (11:47 +0530)] 
spi: zynq_qspi: Read only one byte at a time from txbuf

Read only one byte at a time from txbuf as txbuf may not be
aligned and accessing more than a byte at a time may cause
alignment issues. This fixes the issue of data abort exception
while writing to flash device.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agonet: zynq_gem: Use max-speed property from dt
Siva Durga Prasad Paladugu [Thu, 21 Sep 2017 04:52:21 +0000 (10:22 +0530)] 
net: zynq_gem: Use max-speed property from dt

Add support to use max-speed property from dt for
determining the supported speed. Use 1000Mbps as
default.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomtd: spi-nor: Added support to check addressing mode before calling clean_bar()
Vipul Kumar [Tue, 16 Jan 2018 10:48:00 +0000 (16:18 +0530)] 
mtd: spi-nor: Added support to check addressing mode before calling clean_bar()

SPI erase, write and read operations were not happening properly and due to
this compare operation was getting failed. This patch checks addressing
mode before calling clean_bar() function. There is no need to set bank
address in 4 bytes addressing mode. This is to be inline with write_bar()
function.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agotest: py: Add generic sata test
Michal Simek [Thu, 18 Jan 2018 08:20:50 +0000 (09:20 +0100)] 
test: py: Add generic sata test

This sata test should be run on zc1751 xm017 dc3.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agotest: py: Use proper boardspec for zcu102 i2c device test
Michal Simek [Thu, 18 Jan 2018 07:23:54 +0000 (08:23 +0100)] 
test: py: Use proper boardspec for zcu102 i2c device test

Add full board name which is required. Wildcard are not supported yet.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Enable gem on zc1751-dc5
Michal Simek [Wed, 17 Jan 2018 11:51:30 +0000 (12:51 +0100)] 
arm64: zynqmp: Enable gem on zc1751-dc5

Gem is available on dc5 but it wasn't enabled.
Enable also random mac address generation and phy handling.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Enable mtest command at least on one platform
Michal Simek [Wed, 17 Jan 2018 07:41:13 +0000 (08:41 +0100)] 
arm: zynq: Enable mtest command at least on one platform

mtest is being checked by test/py framework and this test should run at
least on one platform that's why enabling mtest on zc702.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agopy: test: Add simple sata test for zcu102
Michal Simek [Tue, 16 Jan 2018 14:43:51 +0000 (15:43 +0100)] 
py: test: Add simple sata test for zcu102

Sata is supported on zcu102. It is testing proper serdes setting from
psu_init* and also at least HDD detection.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zcu100-revC
Michal Simek [Wed, 10 Jan 2018 13:02:45 +0000 (14:02 +0100)] 
arm64: zynqmp: Clean psu_init* files for zcu100-revC

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zcu106-revA
Michal Simek [Mon, 15 Jan 2018 12:42:51 +0000 (13:42 +0100)] 
arm64: zynqmp: Clean psu_init* files for zcu106-revA

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zcu104-revA
Michal Simek [Mon, 15 Jan 2018 09:10:21 +0000 (10:10 +0100)] 
arm64: zynqmp: Clean psu_init* files for zcu104-revA

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zc1254-revA
Michal Simek [Mon, 15 Jan 2018 09:23:45 +0000 (10:23 +0100)] 
arm64: zynqmp: Clean psu_init* files for zc1254-revA

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zc1232-revA
Michal Simek [Mon, 15 Jan 2018 09:22:24 +0000 (10:22 +0100)] 
arm64: zynqmp: Clean psu_init* files for zc1232-revA

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zc1751-dc1
Michal Simek [Mon, 15 Jan 2018 09:50:33 +0000 (10:50 +0100)] 
arm64: zynqmp: Clean psu_init* files for zc1751-dc1

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zc1751-dc2
Michal Simek [Mon, 15 Jan 2018 09:25:12 +0000 (10:25 +0100)] 
arm64: zynqmp: Clean psu_init* files for zc1751-dc2

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zc1751-dc3
Michal Simek [Mon, 15 Jan 2018 09:49:29 +0000 (10:49 +0100)] 
arm64: zynqmp: Clean psu_init* files for zc1751-dc3

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zc1751-dc4
Michal Simek [Mon, 15 Jan 2018 09:26:52 +0000 (10:26 +0100)] 
arm64: zynqmp: Clean psu_init* files for zc1751-dc4

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zc1751-dc5
Michal Simek [Mon, 15 Jan 2018 09:29:05 +0000 (10:29 +0100)] 
arm64: zynqmp: Clean psu_init* files for zc1751-dc5

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for ep108
Michal Simek [Mon, 15 Jan 2018 09:51:28 +0000 (10:51 +0100)] 
arm64: zynqmp: Clean psu_init* files for ep108

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

And also remove psu_ddr_phybringup_data(), psu_ddr_init_data() which are
not called at all.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Clean psu_init* files for zcu102-revA
Michal Simek [Mon, 15 Jan 2018 12:37:28 +0000 (13:37 +0100)] 
arm64: zynqmp: Clean psu_init* files for zcu102-revA

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years ago arm64: zynqmp: Clean psu_init* files for zcu102-rev1.0
Michal Simek [Wed, 10 Jan 2018 13:48:53 +0000 (14:48 +0100)] 
 arm64: zynqmp: Clean psu_init* files for zcu102-rev1.0

- Remove common shared functions
- Remove camelcase
- Remove psu_init_gpl.h
- Remove additional whitespaces
- Remove all comments
- Remove all protection functions
- Mark functions as static

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Prepare psu_init rework
Michal Simek [Wed, 10 Jan 2018 08:36:09 +0000 (09:36 +0100)] 
arm64: zynqmp: Prepare psu_init rework

Move generic functions to common location psu_spl_init.c. Function
declarations are added to private header.
These changes are done in connection to the fact that still files from
HDF can be copied over and compilation should pass.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Call psu_init() only when ZYNQMP_PSU_INIT_ENABLED
Michal Simek [Mon, 15 Jan 2018 11:52:59 +0000 (12:52 +0100)] 
arm64: zynqmp: Call psu_init() only when ZYNQMP_PSU_INIT_ENABLED

Remove SPL_BUILD dependency from zynqmp.c and move it to header file.
Use only one symbol for including psu_init.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove zcu100-revA/revB board
Michal Simek [Mon, 15 Jan 2018 08:59:54 +0000 (09:59 +0100)] 
arm64: zynqmp: Remove zcu100-revA/revB board

None is going to run this revA board again. RevB/revC/revD are reworked
and different.
There were only some revBs with ES2 which are also no longer used.

If someone wants to run revA or revB please revert this patch.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Enable distro defaults setting
Michal Simek [Wed, 31 Jan 2018 12:12:48 +0000 (13:12 +0100)] 
arm: zynq: Enable distro defaults setting

BOOTCOMMAND is composed with distro_bootcmd but this variable is not
present. Enabling distro defaults setting is fixing it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agodoc: zynq: Describe status of zc770-xm011
Michal Simek [Mon, 15 Jan 2018 06:38:21 +0000 (07:38 +0100)] 
doc: zynq: Describe status of zc770-xm011

zc770-xm011 is also added and supported. Reflect this in README.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agodoc: Update the zynq u-boot status
Ezequiel Garcia [Sat, 13 Jan 2018 20:48:27 +0000 (17:48 -0300)] 
doc: Update the zynq u-boot status

NAND and QSPI devices are now supported, so mark
them as such.

Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Enable SPL_CLK only if SPL is enabled
Ezequiel Garcia [Fri, 12 Jan 2018 15:33:24 +0000 (12:33 -0300)] 
arm: zynq: Enable SPL_CLK only if SPL is enabled

Setup proper dependency in Kconfig for SPL_CLK.
If SPL is not enabled, SPL_CLK shouldn't be selected.

Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: mini_qspi: Enable config option to remove DDR from MMU table
Siva Durga Prasad Paladugu [Fri, 12 Jan 2018 10:05:47 +0000 (15:35 +0530)] 
arm64: zynqmp: mini_qspi: Enable config option to remove DDR from MMU table

This patch enables configs option to remove DDR entry from MMU table
This fixes the issue of u-boot hang when DDR is not present in the
design.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Provide a config to not map DDR region in MMU table
Siva Durga Prasad Paladugu [Fri, 12 Jan 2018 10:05:46 +0000 (15:35 +0530)] 
arm64: zynqmp: Provide a config to not map DDR region in MMU table

DDR less systems are possible for configuration like mini qspi
and making DDR region as normal memory may cause speculative
access which results u-boot hang if DDR is absent. So, this
patch fixes the issue by not making DDR memory region
entry into MMU table.

Future solution is to prepare MMU table per memory node in dts instead
of hard code DDR addresses.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Fix zc770-xm013 spl configuration
Michal Simek [Fri, 12 Jan 2018 13:46:19 +0000 (14:46 +0100)] 
arm: zynq: Fix zc770-xm013 spl configuration

Simplify ps7_init* initialization.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Fix zc770-xm012 spl configuration
Michal Simek [Fri, 12 Jan 2018 13:46:00 +0000 (14:46 +0100)] 
arm: zynq: Fix zc770-xm012 spl configuration

Simplify ps7_init* initialization.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Fix zc770-xm010 spl configuration
Michal Simek [Fri, 12 Jan 2018 13:45:28 +0000 (14:45 +0100)] 
arm: zynq: Fix zc770-xm010 spl configuration

Simplify ps7_init* initialization.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Fix zc770-xm011 spl configuration
Michal Simek [Fri, 12 Jan 2018 13:34:43 +0000 (14:34 +0100)] 
arm: zynq: Fix zc770-xm011 spl configuration

Simplify ps7_init* initialization.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Fix zc770-xm011-x16 spl configuration
Michal Simek [Fri, 12 Jan 2018 13:25:52 +0000 (14:25 +0100)] 
arm: zynq: Fix zc770-xm011-x16 spl configuration

Cleanup origin ps7_init file. The reason for adding full file in
previous patch was that it was straight copy from HDF which is easier
for diffing with new HDF files.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Add support for zc770-xm011-x16 configuration
Michal Simek [Mon, 8 Jan 2018 15:52:49 +0000 (16:52 +0100)] 
arm: zynq: Add support for zc770-xm011-x16 configuration

zc770-xm011 is x8 width configuration. This FMC card has also x16
variant which requires different ps7_init configuration. This patch adds
it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Fix types in ps7_spl_init
Michal Simek [Fri, 12 Jan 2018 13:24:50 +0000 (14:24 +0100)] 
arm: zynq: Fix types in ps7_spl_init

The patch is fixing the following Warning:
arch/arm/mach-zynq/ps7_spl_init.c:133:24: warning: comparison between
signed and unsigned integer expressions [-Wsign-compare]
    while (ioread(addr) < delay)
                        ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agonet: phy: xilinx_phy: Read phytype using property xlnx,phy-type
Siva Durga Prasad Paladugu [Fri, 12 Jan 2018 07:14:54 +0000 (12:44 +0530)] 
net: phy: xilinx_phy: Read phytype using property xlnx,phy-type

This patch reads phytype from property "xlnx,phy-type" instead
od simply looking for "phy-type". This is to be inline with
Linux and also fixes the issue of detecting it wrongly in
u-boot

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Enable i2c via Kconfig
Michal Simek [Tue, 16 Jan 2018 13:38:35 +0000 (14:38 +0100)] 
arm64: zynqmp: Enable i2c via Kconfig

Simplify board configurations.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomtd: spi-nor: Added support for MACRONIX 1Gb 1.8v flash part
Vipul Kumar [Thu, 4 Jan 2018 10:00:41 +0000 (15:30 +0530)] 
mtd: spi-nor: Added support for MACRONIX 1Gb 1.8v flash part

JEDEC ID for mx66u1g45g flash part is added.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Propagate error value from psu_init()
Michal Simek [Wed, 10 Jan 2018 10:48:48 +0000 (11:48 +0100)] 
arm64: zynqmp: Propagate error value from psu_init()

psu_init() returns int which wasn't declared and checked.
The patch is fixing function declarations and code to handle return
values properly.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Fix pmu register description coding style
Michal Simek [Wed, 16 Nov 2016 08:29:57 +0000 (09:29 +0100)] 
arm: zynq: Fix pmu register description coding style

Drop the space before/after '<' and '>'; and
separate the entries to be a bit more readable.

Reported-by: Julia Cartwright <julia@ni.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Enable eth and mmc if subsystem is enabled
Michal Simek [Tue, 9 Jan 2018 11:57:54 +0000 (12:57 +0100)] 
arm: zynq: Enable eth and mmc if subsystem is enabled

The patch
"zynq: Kconfig: Dont enable unnecessary configs by default"
(sha1: 1ab628aef402eb3230734dda3e571ca38b92d9d4)
removes some Kconfig entries which

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove whitespaces in psu_init() comment
Michal Simek [Tue, 9 Jan 2018 13:21:48 +0000 (14:21 +0100)] 
arm64: zynqmp: Remove whitespaces in psu_init() comment

Remove additional spaces before comment.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove unused empty functions
Michal Simek [Tue, 9 Jan 2018 13:25:38 +0000 (14:25 +0100)] 
arm64: zynqmp: Remove unused empty functions

Remove functions which are no longer renerated by PCW.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoxilinx: zynqmp: Use strlen only if env_get doesn't return null
Siva Durga Prasad Paladugu [Wed, 20 Dec 2017 11:05:06 +0000 (16:35 +0530)] 
xilinx: zynqmp: Use strlen only if env_get doesn't return null

Add check if boot_targets exists in environment and then
generate new_targets env accordingly. Performing strlen on
null address causes it to fail with exception if isolation
is enabled with DDR address zero as secure. It works with out
isolation enabled as zero is valid address but it may lead to
junk values in boot_targets.
This patch fixes the issue by checking return value of env_get
so that it generate boot_targets properly.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Remove ZC770_ config option
Michal Simek [Mon, 8 Jan 2018 15:56:50 +0000 (16:56 +0100)] 
arm: zynq: Remove ZC770_ config option

This option is obsolete and it is no longer valid.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agotest: mmc: Do not run mmc/sd test if sd/mmc is not present
Michal Simek [Mon, 8 Jan 2018 15:16:55 +0000 (16:16 +0100)] 
test: mmc: Do not run mmc/sd test if sd/mmc is not present

Skip tests if card is not present.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Disable networking for zc770 xm011
Michal Simek [Mon, 8 Jan 2018 15:43:59 +0000 (16:43 +0100)] 
arm: zynq: Disable networking for zc770 xm011

Ethernet cable is not connected for xm011 that's why disable all
ethernet related configurations.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomtd: spi-nor: Added support for SPANSION 1Gb 1.8v flash part
Vipul Kumar [Fri, 5 Jan 2018 06:23:13 +0000 (11:53 +0530)] 
mtd: spi-nor: Added support for SPANSION 1Gb 1.8v flash part

JEDEC ID for s70fs01gs flash part is added.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomtd: spi-nor: Added flags for ISSI 256Mb 1.8v and 3.3v part
Vipul Kumar [Mon, 27 Nov 2017 06:09:18 +0000 (11:39 +0530)] 
mtd: spi-nor: Added flags for ISSI 256Mb 1.8v and 3.3v part

Added RD_QUAD flag and enabled quad_enable() func for is25lp256d and
is25wp256d flash parts.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoRevert "spl: spl_spi: Fix warnings"
Michal Simek [Fri, 1 Dec 2017 14:26:23 +0000 (15:26 +0100)] 
Revert "spl: spl_spi: Fix warnings"

This reverts commit 76e59ba9fcc171c4f4d300b199c60457cb9bbff9.
This issue is not there anymore.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add support for zcu111 revA
Michal Simek [Wed, 6 Dec 2017 14:27:16 +0000 (15:27 +0100)] 
arm64: zynqmp: Add support for zcu111 revA

zcu111 contains zu28drf chip. It is very similar to zcu106 with these
changes:
- uart1 is routed to PL instead of PS
- can is not wired
- additional 4GB memory connected to PL
- different i2c bus topology - addresses need to be validated

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add support for zcu104 revC
Michal Simek [Wed, 6 Dec 2017 09:38:47 +0000 (10:38 +0100)] 
arm64: zynqmp: Add support for zcu104 revC

There is a change on i2c bus where u97 i2c gpio expander is directly
connected to i2c1 instead of via MUX.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove zynq_slcr_gem_clk_setup()
Michal Simek [Wed, 6 Dec 2017 15:28:23 +0000 (16:28 +0100)] 
arm64: zynqmp: Remove zynq_slcr_gem_clk_setup()

This function is not used anywhere.
Reference was removed by:
"zynq: Move zynq to clock framework"
(sha1: 781745bd87710c5604a0ae005153d0c9578d616a)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Setup bootcommand via defconfig
Michal Simek [Fri, 5 Jan 2018 12:08:02 +0000 (13:08 +0100)] 
arm64: zynqmp: Setup bootcommand via defconfig

It will simplify our config files.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Enable SPL spi support for zcu102 revB/rev1.0
Michal Simek [Thu, 4 Jan 2018 14:10:12 +0000 (15:10 +0100)] 
arm64: zynqmp: Enable SPL spi support for zcu102 revB/rev1.0

The same functionality was tested on zcu102 and this patch is keeping
configs align.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomicroblaze: Dont enable UBI support by default for microblaze
Siva Durga Prasad Paladugu [Wed, 3 Jan 2018 07:45:29 +0000 (13:15 +0530)] 
microblaze: Dont enable UBI support by default for microblaze

This patch removes UBI support from defconfig and it can
be enabled from menuconfig as per need

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: zynq_qspi: Correct baud rate divisor calculation
Siva Durga Prasad Paladugu [Wed, 24 Jan 2018 11:50:33 +0000 (17:20 +0530)] 
spi: zynq_qspi: Correct baud rate divisor calculation

This patch corrects the baud rate divisor calculation by
checking with max baud rate value and assigning default
baud rate value if it exceeds max value.
This fixes the issue of qspi flash detection as writing
the overflown value results in setting unintended bits
in the register.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoMerge tag 'v2018.01' into master
Michal Simek [Tue, 9 Jan 2018 07:09:05 +0000 (08:09 +0100)] 
Merge tag 'v2018.01' into master

Prepare v2018.01

- Move options to defconfig
- Fix sd3.0 support (by DP)
- Fix spi-nor support (by DP/Vipul)
- Add SPI_GENERIC Kconfig option (by DP/Vipul)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoPrepare v2018.01 v2018.01
Tom Rini [Tue, 9 Jan 2018 01:25:29 +0000 (20:25 -0500)] 
Prepare v2018.01

Signed-off-by: Tom Rini <trini@konsulko.com>
7 years agoMerge git://git.denx.de/u-boot-imx
Tom Rini [Mon, 8 Jan 2018 17:51:47 +0000 (12:51 -0500)] 
Merge git://git.denx.de/u-boot-imx

7 years agomtd: nand: mxs_nand_spl: Remove nand size print
Jagan Teki [Fri, 5 Jan 2018 07:04:23 +0000 (12:34 +0530)] 
mtd: nand: mxs_nand_spl: Remove nand size print

It is not much needed to print nand size in SPL during nand boot,
and most of nand spl drivers doesn't print the same.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agoboard: engicam: Fix to remove legacy board/icorem6_rqs
Jagan Teki [Fri, 5 Jan 2018 07:04:21 +0000 (12:34 +0530)] 
board: engicam: Fix to remove legacy board/icorem6_rqs

board/icorem6_rqs/ is forgot to remove while moving
common board files together in
(sha1: 52aaddd6f415397bb2eae0d68a8cc1c5c4a98bb3)
"i..MX6: engicam: Add imx6q/imx6ul boards for existing boards"

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agoimx: initialize and use generic timer on i.MX 6UL/ULL
Stefan Agner [Fri, 5 Jan 2018 14:08:19 +0000 (15:08 +0100)] 
imx: initialize and use generic timer on i.MX 6UL/ULL

The i.MX 6UL/ULL feature a Cortex-A7 CPU which suppor the ARM
generic timer. This change makes use of the ARM generic timer in
U-Boot.

This is crucial to make the ARM generic timers usable in Linux since
timer_init() initalizes the system counter module, which is necessary
to use the generic timers CP15 registers.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
7 years agoimx: introduce CONFIG_GPT_TIMER
Stefan Agner [Fri, 5 Jan 2018 14:08:18 +0000 (15:08 +0100)] 
imx: introduce CONFIG_GPT_TIMER

Introduce a new config symbol to select the i.MX
General Purpose Timer (GPT).

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
7 years agoimx: move CONFIG_SYSCOUNTER_TIMER to Kconfig
Stefan Agner [Fri, 5 Jan 2018 14:08:17 +0000 (15:08 +0100)] 
imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
7 years agoMerge git://git.denx.de/u-boot-x86
Tom Rini [Mon, 8 Jan 2018 13:26:46 +0000 (08:26 -0500)] 
Merge git://git.denx.de/u-boot-x86