]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
6 years agoarm64: versal: Increase SYS_MALLOC_F_LEN
Siva Durga Prasad Paladugu [Tue, 2 Jul 2019 11:14:17 +0000 (16:44 +0530)] 
arm64: versal: Increase SYS_MALLOC_F_LEN

This patch increases SYS_MALLOC_F_LEN as the versal clock
driver needs to be probed before relocation itself inorder
to get required clocks before relocation.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
6 years agodt: versal-ospi: Updated compatible string
Sai Krishna Potthuri [Mon, 1 Jul 2019 09:03:12 +0000 (14:33 +0530)] 
dt: versal-ospi: Updated compatible string

This patch updates the ospi node with required properties for linux driver
along with compatible string and partition nodes for testing purpose.

Signed-off-by: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>
6 years agodts: versal: Updated OSPI node properties
Sai Krishna Potthuri [Mon, 1 Jul 2019 09:03:11 +0000 (14:33 +0530)] 
dts: versal: Updated OSPI node properties

This patch updates the following properties in ospi node
-> reg - Linux driver expects AHB base addr in reg property.
       - Fixed length of controller register set.
-> interrupt - Corrected the interrupt number for ospi.
-> cdns,fifo-depth - Corrected ospi fifo-depth property.

Signed-off-by: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>
6 years agoarm64: versal: Add power domain for OSPI and WDT
Ravi Patel [Fri, 28 Jun 2019 10:34:36 +0000 (03:34 -0700)] 
arm64: versal: Add power domain for OSPI and WDT

Add power domain property for OSPI and WDT node.

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomtd: spi_flash: Add device mt35xu01g to spi flash ids list
Jyotheeswar Reddy Mutthareddyvari [Wed, 26 Jun 2019 23:12:45 +0000 (16:12 -0700)] 
mtd: spi_flash: Add device mt35xu01g to spi flash ids list

This patch adds new spi flash device mt35xu01g to spi
flash ids table.

Signed-off-by: Jyotheeswar Reddy Mutthareddyvari <jyotheeswar.reddy.mutthareddyvari@xilinx.com>
6 years agoarm64: versal: Add frequency scaling support
Izhar Ameer Shaikh [Fri, 14 Jun 2019 19:47:25 +0000 (12:47 -0700)] 
arm64: versal: Add frequency scaling support

Add CPU Operating Performance Points (OPP) table and ACPU clock for
cpu0. This is needed by cpufreq driver to manage CPU frequency scaling.

e.g.
In the design if we have 72 as the multiplier and 33.333 MHz as the ref
frequency:

pllfreq = 33.33*72 = 2399.76 MHz
It is the pll output.

Now, with the integral divisors we can achieve:

2399.76 / 2 = 1199.88 MHz
2399.76 / 3 = 799.92 MHz
2399.76 / 4 = 599.94 MHz
2399.76 / 5 = 479.95 MHz
2399.76 / 6 = 399.96 MHz
2399.76 / 7 = 342.82 MHz
etc.

Therefore, some of them are chosen to be in the device tree.

For more reference: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841831/CPU+frequency+scaling

Signed-off-by: Izhar Ameer Shaikh <izhar.ameer.shaikh@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Switch all versal platform to firmware clocks
Michal Simek [Fri, 28 Jun 2019 08:51:33 +0000 (10:51 +0200)] 
arm64: versal: Switch all versal platform to firmware clocks

Do not use fixed clock and move to firmware managed clocks for all current
platforms. versal-fixed.dtsi can be removed at this point.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Add missing dt-bindings headers for clk and power
Michal Simek [Mon, 8 Apr 2019 11:43:51 +0000 (13:43 +0200)] 
arm64: versal: Add missing dt-bindings headers for clk and power

Add missing files.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Add description for a2197-e-revA board
Michal Simek [Wed, 26 Jun 2019 13:34:06 +0000 (15:34 +0200)] 
arm64: versal: Add description for a2197-e-revA board

It is pretty much subset of a2197-p with some differences.
It is the first evaluation/customer board with Versal.
Also called vck190.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add support for a2197-e-revA board
Michal Simek [Wed, 26 Jun 2019 13:12:08 +0000 (15:12 +0200)] 
arm64: zynqmp: Add support for a2197-e-revA board

Add support for System Controller available on a2197-e board.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Add description for a2197-p x-prc-05
Michal Simek [Tue, 25 Jun 2019 13:52:15 +0000 (15:52 +0200)] 
arm64: versal: Add description for a2197-p x-prc-05

Description is done without schematics only based on spec. It needs to be
validated when HW is ready.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add x-prc-01/02/03/04 revA support from SC
Michal Simek [Wed, 10 Apr 2019 12:30:50 +0000 (14:30 +0200)] 
arm64: zynqmp: Add x-prc-01/02/03/04 revA support from SC

Add i2c accessible devices with description.
There is versal specific eeprom and i2c-gpio controller.

SE3 has also clock chip present.

Also remove x-prc description from SC dts.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Add description for a2197-p x-prc-04
Michal Simek [Mon, 24 Jun 2019 13:31:50 +0000 (15:31 +0200)] 
arm64: versal: Add description for a2197-p x-prc-04

Add description based on specification and schematics.
All FIXMEs should be fixed when HW is ready.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Add description for a2197-p x-prc-03
Michal Simek [Mon, 24 Jun 2019 12:17:45 +0000 (14:17 +0200)] 
arm64: versal: Add description for a2197-p x-prc-03

Add description based on specification and schematics.
All FIXMEs should be fixed when HW is ready.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add new jtag distro boot command
Siva Durga Prasad Paladugu [Tue, 25 Jun 2019 12:11:09 +0000 (17:41 +0530)] 
arm64: zynqmp: Add new jtag distro boot command

This patch adds new jtag distro boot command to look for bootscript file in
DDR and execute it first incase of jtag bootmode.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Update scriptaddr value to 512MB
Siva Durga Prasad Paladugu [Tue, 25 Jun 2019 12:11:08 +0000 (17:41 +0530)] 
arm64: zynqmp: Update scriptaddr value to 512MB

This patch updates scriptaddr value to 512MB as having it at 32MB has high
chance of script corruption incase of bigger kernel.

Be aware that 512MB is used for SPL malloc area that's why images should be
loaded after SPL (the best after u-boot relocation).

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Add new jtag distro boot command
Siva Durga Prasad Paladugu [Tue, 25 Jun 2019 11:43:14 +0000 (17:13 +0530)] 
arm64: versal: Add new jtag distro boot command

This patch adds new jtag distro boot command to look for bootscript file
in DDR and execute it first incase of jtag bootmode.
This patch also updates scriptaddr to 512MB as there is high of script
corruption incase of bigger kernel image.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Remove unneeded configs
Siva Durga Prasad Paladugu [Tue, 25 Jun 2019 11:21:37 +0000 (16:51 +0530)] 
arm64: versal: Remove unneeded configs

The PSCI_RESET and EXPERT are not needed for mini
configurations so remove them to save space.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Enable watchdog node
Srinivas Goud [Tue, 25 Jun 2019 10:25:07 +0000 (15:55 +0530)] 
arm64: versal: Enable watchdog node

This patch enable watchdog module in the versal system.

Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Set watchdog default timeout
Srinivas Goud [Tue, 25 Jun 2019 10:25:06 +0000 (15:55 +0530)] 
arm64: versal: Set watchdog default timeout

This patch sets the watchdog timeout-sec property to 60 seconds as default value.

Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Remove some FIXME from System Controller
Michal Simek [Tue, 25 Jun 2019 07:22:57 +0000 (09:22 +0200)] 
arm64: zynqmp: Remove some FIXME from System Controller

Remove some FIXMEs from DT. All of them are checked and not needed now.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Sync si570 setup and clock names
Michal Simek [Tue, 25 Jun 2019 06:55:52 +0000 (08:55 +0200)] 
arm64: zynqmp: Sync si570 setup and clock names

Setup proper si570 names and default factory setup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Fix ina226/u12 setup for System Controller
Michal Simek [Tue, 25 Jun 2019 07:09:15 +0000 (09:09 +0200)] 
arm64: zynqmp: Fix ina226/u12 setup for System Controller

Linux driver is not capable to handle 10Ohm shunt resistor.
That's why setup 1Ohm and setup proper calculation in user space.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Enable serdes driver for usb3.0
Michal Simek [Tue, 25 Jun 2019 06:43:44 +0000 (08:43 +0200)] 
arm64: zynqmp: Enable serdes driver for usb3.0

Enable PHY serdes driver for usb3.0.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agospi: ospi: Update ospi node with required properties
Siva Durga Prasad Paladugu [Mon, 24 Jun 2019 12:39:03 +0000 (18:09 +0530)] 
spi: ospi: Update ospi node with required properties

This patch updates ospi node with all required
properties for ospi.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodts: versal: Update AHB trigger address for ospi node
Siva Durga Prasad Paladugu [Mon, 24 Jun 2019 12:39:02 +0000 (18:09 +0530)] 
dts: versal: Update AHB trigger address for ospi node

This patch updates the AHB trigger adress that will be used by
the DAC/INDAC controllers for data transfers.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Enable clock driver support for versal
Siva Durga Prasad Paladugu [Sun, 23 Jun 2019 06:54:59 +0000 (12:24 +0530)] 
arm64: versal: Enable clock driver support for versal

This ptach enables clock driver support for Versal
platform.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
6 years agoclk: versal: Add clock driver support
Siva Durga Prasad Paladugu [Sun, 23 Jun 2019 06:54:57 +0000 (12:24 +0530)] 
clk: versal: Add clock driver support

This patch adds clock driver support for Versal
platform. The clock driver queries and performs
clock operations using PLM firmware by communicating
with it using SMC calls.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Add GFLADJ quirks for correcting SOF generation to DWC3
Anurag Kumar Vulisha [Fri, 21 Jun 2019 13:48:01 +0000 (19:18 +0530)] 
arm64: versal: Add GFLADJ quirks for correcting SOF generation to DWC3

Add quirk for adjusting the GFLADJ register (global frame length
adjustment register) to trigger SOFs exactly at 125us time period.

Signed-off-by: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Enable RTC node for a2197-x-prc-01
Amit Sunil Dhamne [Tue, 18 Jun 2019 21:05:06 +0000 (14:05 -0700)] 
arm64: versal: Enable RTC node for a2197-x-prc-01

Enable RTC node. RTC is used as a wakeup source for APU suspend-resume
use case. Also add alias for "rtc" as "rtc0".

Signed-off-by: Amit Sunil Dhamne <amit.sunil.dhamne@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agozynqmp: Set sd boot device number to sdbootdev
T Karthik Reddy [Wed, 19 Jun 2019 09:36:45 +0000 (15:06 +0530)] 
zynqmp: Set sd boot device number to sdbootdev

In case of multiple sd devices to identify proper sd boot device
assign "sdbootdev" variable with device sequence number. While
auto-booting "sdboot" picks appropriate sd device from "sdbootdev".
This fix is for old way auto-boot process, it will be
deprecated in 2020.1 & all the functionality will be removed.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoxilinx: Add missing headers
Michal Simek [Wed, 19 Jun 2019 11:46:03 +0000 (13:46 +0200)] 
xilinx: Add missing headers

make W=1 indicates that there are missing headers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agotools: zynqmp_psu_init_minimize.sh: fix return lines coding style
Luca Ceresoli [Tue, 11 Jun 2019 16:39:40 +0000 (18:39 +0200)] 
tools: zynqmp_psu_init_minimize.sh: fix return lines coding style

Remove unneeded parenthess around return value. E.g.:
    return (0);   ->   return 0;

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: phy: ti: Use auto MDI crossover for SGMII
Harini Katakam [Wed, 12 Jun 2019 08:29:45 +0000 (13:59 +0530)] 
net: phy: ti: Use auto MDI crossover for SGMII

Use auto MDI crossover for SGMII to support all cable setups.
Also correct MDIX mask bit.

Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agommc: zynq_sdhci: Move UHS mode macros
T Karthik Reddy [Mon, 10 Jun 2019 04:04:04 +0000 (09:34 +0530)] 
mmc: zynq_sdhci: Move UHS mode macros

This patch moves UHS mode macros from mmc.h to zynq_sdhci.c.
Moving UHS mode macros in mmc.h avoids redefinition of macros when
xenon_sdhci.c is compiled.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agommc: sdhci: Read sdhci card detect properties from DT
T Karthik Reddy [Wed, 5 Jun 2019 18:40:57 +0000 (00:10 +0530)] 
mmc: sdhci: Read sdhci card detect properties from DT

This patch reads card detect properties from device tree.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agommc: sdhci: Implement SDHCI card detect
T Karthik Reddy [Wed, 5 Jun 2019 18:40:56 +0000 (00:10 +0530)] 
mmc: sdhci: Implement SDHCI card detect

Card detect function implemented for SDHCI framework.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Add support for vc-d-d1760-01
Michal Simek [Mon, 27 May 2019 12:15:04 +0000 (14:15 +0200)] 
arm64: versal: Add support for vc-d-d1760-01

Add support for the first data center card. Only memory and uart is
specified for initial bringup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agommc: zynq_sdhci: Fix SD at 25MHz
Siva Durga Prasad Paladugu [Mon, 27 May 2019 09:03:15 +0000 (14:33 +0530)] 
mmc: zynq_sdhci: Fix SD at 25MHz

High speeds were broken in versal. This patch workarounds the issue and operates
SD in 25MHz.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Add a2197 base board support with x-prc01/02 cards
Michal Simek [Wed, 10 Apr 2019 10:27:20 +0000 (12:27 +0200)] 
arm64: versal: Add a2197 base board support with x-prc01/02 cards

There is generic defconfig designed for autodetection (not added yet)
and then separate defconfigs directly used for certain x-prc card.

Octal SPI dts is added but not wired for x-prc specific defconfig.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
6 years agoarm64: versal: Add platform detection code to versal_virt
Michal Simek [Thu, 6 Jun 2019 13:00:35 +0000 (15:00 +0200)] 
arm64: versal: Add platform detection code to versal_virt

Detect which platform U-Boot is running at and based on that choose DTS
file which U-Boot uses for own configuration.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add DT for zcu216 revA board
Michal Simek [Sun, 26 May 2019 12:38:41 +0000 (14:38 +0200)] 
arm64: zynqmp: Add DT for zcu216 revA board

Add preliminary support for zcu216 board.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add a2197 memory board revA
Michal Simek [Fri, 12 Apr 2019 10:19:22 +0000 (12:19 +0200)] 
arm64: zynqmp: Add a2197 memory board revA

Similar to processor board but i2c structure is completely different.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add System Controller for a2197-g/p
Michal Simek [Wed, 27 Mar 2019 19:14:19 +0000 (20:14 +0100)] 
arm64: zynqmp: Add System Controller for a2197-g/p

Similar SCs but different wiring.

- dc_i2c is connected to X-PRC cards that's why label is required to have
  an option to hook up some devices.
- Exactly identify i2c devices on x-prc boards.
  In case of missing i2c connection devices won't be accessible.
- USB 0 should be device mode with super speed.
- USB 1 should be host mode.
- Fix i2c mux reset pin entry - commented, not verified.
- Fix i2c1 eeprom compatible string - it is an ST 128Kbit device.
  Need to use atmel fallback.
- Fix si570 I2C slave address and add corresponding part numbers.
- Enable AMS for system monitoring.
- phy reset property should be commented because it will throw a
  warning dump when called from context that can sleep.
  No support for phys property (zynqmp phy driver) with SGMII.
  Add is-internal-pcspma property required by uboot.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
6 years agoarm64: zynqmp: Add generic a2197 system controller config
Michal Simek [Thu, 11 Apr 2019 08:35:37 +0000 (10:35 +0200)] 
arm64: zynqmp: Add generic a2197 system controller config

Add generic configuration for a2197-p/-m/-g boards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add board detection based on FRU
Michal Simek [Fri, 12 Apr 2019 09:26:29 +0000 (11:26 +0200)] 
arm64: zynqmp: Add board detection based on FRU

Identification depends on eeprom with FRU content.

For example 2 eeproms to check.
chosen {
xlnx,eeprom = <&eeprom>, <&eeprom2>;
};

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Add fru to versal maintainer fragment
Michal Simek [Tue, 16 Apr 2019 08:37:56 +0000 (10:37 +0200)] 
cmd: fru: Add fru to versal maintainer fragment

Just record responsiblity.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Add basic fru format generator
Michal Simek [Mon, 15 Apr 2019 11:54:09 +0000 (13:54 +0200)] 
cmd: fru: Add basic fru format generator

Idea is to have something what can be used for board bringup from
generic board perspective.

There is a violation compare to spec that FRU ID is ASCII8 instead of
binary format but this is really for having something to pass boot and
boot to OS which has better generating options.
Also time should be filled properly.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Simplify do_fru_capture()
Michal Simek [Tue, 16 Apr 2019 06:08:21 +0000 (08:08 +0200)] 
cmd: fru: Simplify do_fru_capture()

Remove ret and check already recorded maximum number of args via
cmdtp->maxargs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Use the same format in long help
Michal Simek [Tue, 16 Apr 2019 06:04:04 +0000 (08:04 +0200)] 
cmd: fru: Use the same format in long help

Use the same format for both capture/display options.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Also write terminating char to arrays
Michal Simek [Tue, 16 Apr 2019 06:27:30 +0000 (08:27 +0200)] 
cmd: fru: Also write terminating char to arrays

There is a need to also end up strings with terminating char \0 to be
able to reread different structures.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Fix structure format for board info
Michal Simek [Mon, 15 Apr 2019 12:42:55 +0000 (14:42 +0200)] 
cmd: fru: Fix structure format for board info

Origin code was targeting product area which is not what will be used at
first place.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Separate checksum routine
Michal Simek [Mon, 15 Apr 2019 09:04:42 +0000 (11:04 +0200)] 
cmd: fru: Separate checksum routine

There is a need to call this function from different places too.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Save fru decoding address to variables
Michal Simek [Fri, 12 Apr 2019 09:36:37 +0000 (11:36 +0200)] 
cmd: fru: Save fru decoding address to variables

Keep record of place where fru is.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Move fru_data to data section instead of bss section
Michal Simek [Fri, 12 Apr 2019 09:37:02 +0000 (11:37 +0200)] 
cmd: fru: Move fru_data to data section instead of bss section

I didn't fully check it but I think that there is an issue to use FIT
images with dtb again when bss section is cleared. U-Boot copy just
origin DTB and if embedded_dtb_select() doesn't find new DTB then can't
go back to origin DTB file.
Move this structure to data section for now.
It should be allocated by malloc anyway.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Move structures to header
Michal Simek [Fri, 12 Apr 2019 09:23:21 +0000 (11:23 +0200)] 
cmd: fru: Move structures to header

There is no reason to keep them private just in C.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocmd: fru: Add support for FRU commands
Siva Durga Prasad Paladugu [Wed, 10 Apr 2019 07:08:10 +0000 (12:38 +0530)] 
cmd: fru: Add support for FRU commands

This patch adds support for fru commands "fru capture"
and "fru display". The fru capture parses the FRU table
present at an address and stores in a structure for later
use. The fru display prints the content of captured structured
in a readable format.

As of now, it supports only common header and board area of FRU.
Also, its supports only English language code and ASCII8 format.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Do not remove dpll_prog from psu_init
Michal Simek [Thu, 6 Jun 2019 11:39:53 +0000 (13:39 +0200)] 
arm64: zynqmp: Do not remove dpll_prog from psu_init

dpll_prog is available in some psu_init files that's why this function
should stay there.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: add tool to minimize psu_init_gpl.c files
Luca Ceresoli [Fri, 24 May 2019 13:40:02 +0000 (15:40 +0200)] 
arm64: zynqmp: add tool to minimize psu_init_gpl.c files

This script transforms a pair of psu_init_gpl.c and .h files produced by
the Xilinx Vivado tool for ZynqMP into a smaller psu_init_gpl.c file that
is almost checkpatch compliant.

Based on a script by Michal Simek.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Enable BDI for mini mtest configuration
Michal Simek [Mon, 27 May 2019 12:55:01 +0000 (14:55 +0200)] 
arm64: versal: Enable BDI for mini mtest configuration

bdi is useful to see how memory is mapped.
Also enable 3 memory banks to be mapped.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Align model name with DT
Michal Simek [Mon, 27 May 2019 09:03:51 +0000 (11:03 +0200)] 
arm64: versal: Align model name with DT

All qspi configurations are marked as MINI QSPI which is wrong.
Use model property to distinguish different configurations.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Update compatible string in ospi node
Siva Durga Prasad Paladugu [Wed, 1 May 2019 10:23:43 +0000 (15:53 +0530)] 
arm64: versal: Update compatible string in ospi node

This patch updates ospi node compatible strings to match
with latest source.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Enable memory mapping via DT
Michal Simek [Mon, 29 Apr 2019 16:39:09 +0000 (09:39 -0700)] 
arm64: versal: Enable memory mapping via DT

Code reads DT and setup MMU table based on memory node.
This will ensure that only DT needs to be changed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Enable USB driver support
Siva Durga Prasad Paladugu [Mon, 22 Apr 2019 09:15:05 +0000 (14:45 +0530)] 
arm64: versal: Enable USB driver support

This patch adds usb host and device mode support for Xilinx
Versal virtual platform. By default USB host functionality
is enabled. To use in usb device mode, set dr_mode property
in DT to peripheral.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Define configs related to USB DFU functionality
Siva Durga Prasad Paladugu [Mon, 22 Apr 2019 09:15:04 +0000 (14:45 +0530)] 
arm64: versal: Define configs related to USB DFU functionality

This patch defines macros required for DFU functionality
for Xilinx Versal platform.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Rename zc1275 to zcu1275
Michal Simek [Tue, 21 May 2019 10:07:23 +0000 (12:07 +0200)] 
arm64: zynqmp: Rename zc1275 to zcu1275

Name of this platform has changed and released to customers that's why
name has also changed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Series-to: uboot
6 years agoarm64: zynqmp: Align model name with DT
Michal Simek [Mon, 27 May 2019 08:02:20 +0000 (10:02 +0200)] 
arm64: zynqmp: Align model name with DT

All qspi configurations are marked as MINI QSPI which is wrong.
Use model property to distinguish different configurations.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm: zynq: Align model name with DT
Michal Simek [Mon, 27 May 2019 08:13:34 +0000 (10:13 +0200)] 
arm: zynq: Align model name with DT

All qspi configurations are marked as MINI QSPI which is wrong.
Use model property to distinguish different configurations.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: add tool to convert PMU config object .c to binary
Luca Ceresoli [Tue, 21 May 2019 16:06:44 +0000 (18:06 +0200)] 
arm64: zynqmp: add tool to convert PMU config object .c to binary

The recently-added ZYNQMP_SPL_PM_CFG_OBJ_FILE option allows SPL to load a
PMUFW configuration object from a binary blob. However the configuration
object is produced by Xilinx proprietary tools as a C source file and no
tool exists to easily convert it to a binary blob in an embedded Linux
build system for U-Boot to use.

Add a simple Python script to do the conversion.

It is definitely not a complete C language parser, but it is enough to
parse the known patterns generated by Xilinx tools, including:

 - defines
 - literal integers, optionally with a 'U' suffix
 - bitwise OR between them

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: spl: install a PMU firmware config object at runtime
Luca Ceresoli [Tue, 21 May 2019 16:06:43 +0000 (18:06 +0200)] 
arm64: zynqmp: spl: install a PMU firmware config object at runtime

Optionally allow U-Boot to load a configuration object into the Power
Management Unit (PMU) firmware on Xilinx ZynqMP.

The configuration object is required by the PMU FW to enable most SoC
peripherals. So far the only way to boot using U-Boot SPL was to hard-code
the configuration object in the PMU firmware. Allow a different boot
process, where the PMU FW is equal for any ZynqMP chip and its
configuration is passed at runtime by U-Boot SPL.

All the code for Inter-processor communication with the PMU is isolated in
a new file (pmu_ipc.c). The code is inspired by the same feature as
implemented in the Xilinx First Stage Bootloader (FSBL) and Arm Trusted
Firmware:

 * https://github.com/Xilinx/embeddedsw/blob/fb647e6b4c00f5154eba52a88b948195b6f1dc2b/lib/sw_apps/zynqmp_fsbl/src/xfsbl_misc_drivers.c#L295
 * https://github.com/ARM-software/arm-trusted-firmware/blob/c48d02bade88b07fa7f43aa44e5217f68e5d047f/plat/xilinx/zynqmp/pm_service/pm_api_sys.c#L357

SPL logs on the console before loading the configuration object:

  U-Boot SPL 2019.07-rc1-00511-gaec224515c87 (May 15 2019 - 08:43:41 +0200)
  Loading PMUFW cfg obj (2008 bytes)
  EL Level: EL3
  ...

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoKconfig: fix FIT offset prompt text
Ibai Erkiaga [Wed, 15 May 2019 21:10:04 +0000 (22:10 +0100)] 
Kconfig: fix FIT offset prompt text

The current prompt text for FIT external offset is identical to
SYS_TEXT_BASE which might confuse the users. Provided more accurate
description for the prompt text.

Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com>
Reviewed-by: Marek Vasut <marex@denx.de>
6 years agoarm64: zynqmp: fix preprocessor check for SPL_ZYNQMP_TWO_SDHCI
Luca Ceresoli [Mon, 15 Apr 2019 14:18:18 +0000 (16:18 +0200)] 
arm64: zynqmp: fix preprocessor check for SPL_ZYNQMP_TWO_SDHCI

A missing CONFIG_ prefix while checking for this Kconfig variable makes the
check always fail. Fix it. While there also switch from the '#if defined'
form to the '#ifdef' form as the other checks in this function.

Fixes: 35e2b92344b1 ("arm64: zynqmp: Fix logic around CONFIG_ZYNQ_SDHCI")
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Enable spi flash split read
Siva Durga Prasad Paladugu [Tue, 28 May 2019 07:33:10 +0000 (13:03 +0530)] 
arm64: zynqmp: Enable spi flash split read

This patch enables spi flash spilt read for ZynqMP
platform.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomtd: spi: Split read transactions per bank
Siva Durga Prasad Paladugu [Tue, 28 May 2019 07:33:09 +0000 (13:03 +0530)] 
mtd: spi: Split read transactions per bank

The patch splits the read transaction into multiple
read transactions which means incase of read requested
across multiple banks, it splits and sends one read per
bank. This can be enabled using new config option
CONFIG_SPI_FLASH_SPLIT_READ.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agommc: sdhci: Move ZYNQ_HISPD_BROKEN to Kconfig
Siva Durga Prasad Paladugu [Mon, 27 May 2019 09:03:14 +0000 (14:33 +0530)] 
mmc: sdhci: Move ZYNQ_HISPD_BROKEN to Kconfig

This patch moves CONFIG_ZYNQ_HISPD_BROKEN to Kconfig

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agospi: zynqmp_gqspi: do not round immediate_data field
Wojciech Tatarski [Fri, 26 Apr 2019 15:09:03 +0000 (17:09 +0200)] 
spi: zynqmp_gqspi: do not round immediate_data field

Immediate_data is 8 bit value in generic FIFO command. When fields
data_xfer=1 and exponent=0 this field specifies the absolute number of data
bytes to read into the RXFIFO. Values from range 0xfd to 0xff are rounded
up to 0x100. It causes overwriting the next bit field which is data_xfer.
According to Zynq US+ TRM only DMA transfers should be word aligned. So
there is no reason to round up the immediate_data field.

Signed-off-by: Wojciech Tatarski <wtatarski@antmicro.com>
Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
Tested-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agospi: zynqmp_gqspi: DMA transfers should be world aligned
Wojciech Tatarski [Fri, 26 Apr 2019 15:09:02 +0000 (17:09 +0200)] 
spi: zynqmp_gqspi: DMA transfers should be world aligned

According to Zynq US+ TRM all the data transfers are word aligned. So
there is no reason to round up size of DMA transfer to ARCH_DMA_MINALIGN
(0x40)

Signed-off-by: Wojciech Tatarski <wtatarski@antmicro.com>
Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
Tested-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrivers: usb: dwc3: setup phy before dwc3 core soft reset
T Karthik Reddy [Wed, 1 May 2019 04:44:49 +0000 (10:14 +0530)] 
drivers: usb: dwc3: setup phy before dwc3 core soft reset

Phy setup should be done before dwc3 soft core reset as it is done
in linux & this fixes unreliable detection of usb cable on host side.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: composite: add BOS descriptor support to composite framework
T Karthik Reddy [Wed, 1 May 2019 04:44:48 +0000 (10:14 +0530)] 
usb: composite: add BOS descriptor support to composite framework

To add usb-3.0 support to peripheral device add BOS & SS capability
descriptors to gadget composite framework.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomtd: spi_flash: Add device mt35ux02g to spi flash ids list
Siva Durga Prasad Paladugu [Wed, 1 May 2019 10:23:42 +0000 (15:53 +0530)] 
mtd: spi_flash: Add device mt35ux02g to spi flash ids list

This patch adds new spi flash device mt35ux02g to spi
flash ids table.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agospi: Add support for 4Byte addressing commands
Siva Durga Prasad Paladugu [Sat, 27 Apr 2019 06:29:00 +0000 (11:59 +0530)] 
spi: Add support for 4Byte addressing commands

Thsi patch adds support for 4-byte addressing Read, write
and erase commands.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
6 years agospi: cadence_qspi: Fix stig write issue
Siva Durga Prasad Paladugu [Thu, 25 Apr 2019 13:12:32 +0000 (18:42 +0530)] 
spi: cadence_qspi: Fix stig write issue

This patch fixes the stig programming issue by checking
the status and flag status register register for every
write.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
6 years agoMakefile.lib: include /__symbols__ in dtb if OF_LIBFDT_OVERLAY is enabled
Jean-Jacques Hiblot [Fri, 22 Mar 2019 14:39:49 +0000 (15:39 +0100)] 
Makefile.lib: include /__symbols__ in dtb if OF_LIBFDT_OVERLAY is enabled

In order to apply an overlay to a DTB. The DTB must have been generated
with the option '-@'.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: Add versal compatibility string to dwc3 glue ids
Siva Durga Prasad Paladugu [Mon, 22 Apr 2019 09:15:03 +0000 (14:45 +0530)] 
usb: dwc3: Add versal compatibility string to dwc3 glue ids

Xilinx Versal platform uses dwc3 and hence its compatible string
needs to be added to dwc3 glue ids.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: Read phy suspend quirk from DT
Siva Durga Prasad Paladugu [Mon, 22 Apr 2019 09:15:02 +0000 (14:45 +0530)] 
usb: dwc3: Read phy suspend quirk from DT

This patch reads the suspend phy quirk from DT property
"snps,dis_u2_susphy_quirk" and update in dwc3 structure.
This suspend phy quirk will disable suspend functionality
of phy.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoARM: zynq: delete long-dead CONFIG_USB_CABLE_CHECK
Robert P. J. Day [Thu, 18 Apr 2019 14:50:23 +0000 (10:50 -0400)] 
ARM: zynq: delete long-dead CONFIG_USB_CABLE_CHECK

This Kbuild option disappeared way back in 2014:

 commit 75504e9592745021006cb8905b5ff5a51d9d1cb3
 Author: Mateusz Zalega <m.zalega@samsung.com>
 Date:   Wed Apr 30 13:07:48 2014 +0200

    ... snip ...

    CONFIG_USB_CABLE_CHECK was removed.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: gem: Remove DECLARE_GLOBAL_DATA_PTR from gem driver
Michal Simek [Thu, 25 Apr 2019 18:30:22 +0000 (11:30 -0700)] 
net: gem: Remove DECLARE_GLOBAL_DATA_PTR from gem driver

GD is not used anywhere that's why there is no reason to have this macro
in the driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomtd: spi: Add octal read flag for part mt35xu512g
Siva Durga Prasad Paladugu [Wed, 10 Apr 2019 11:23:33 +0000 (16:53 +0530)] 
mtd: spi: Add octal read flag for part mt35xu512g

This patch adds octal read support for flash
mt35xu512g.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: gem: Remove phy autodetection code
Michal Simek [Fri, 29 Mar 2019 08:25:09 +0000 (09:25 +0100)] 
net: gem: Remove phy autodetection code

There is no reason to detect phy when core is doing it for us.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Series-to: uboot
---
Based on https://lists.denx.de/pipermail/u-boot/2019-March/363225.html

6 years agonet: phy: implement fallback mechanism for negative phy adresses
Hannes Schmelzer [Fri, 29 Mar 2019 08:54:05 +0000 (09:54 +0100)] 
net: phy: implement fallback mechanism for negative phy adresses

Negative phy-addresses can occour if the caller function was not able to
determine a valid phy address (from device-tree for example). In this
case we catch this here and search for ANY phy device on the given mdio-
bus.

Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Enable 2 NAND chips support for zynqmp_mini_nand
T Karthik Reddy [Fri, 19 Apr 2019 03:40:37 +0000 (09:10 +0530)] 
arm64: zynqmp: Enable 2 NAND chips support for zynqmp_mini_nand

This patch enables 2 nand chips support for zynqmp mini nand

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: versal: Update boot delay to perform autoboot
Siva Durga Prasad Paladugu [Sat, 27 Apr 2019 05:47:04 +0000 (11:17 +0530)] 
arm64: versal: Update boot delay to perform autoboot

Update boot delay to 5 for performing autoboot. This patch
also updates counter frequency to value 2720000 as used
by QEMU.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agozynqmp: configs: Add single nand flash mini u-boot configuration
T Karthik Reddy [Fri, 26 Apr 2019 10:34:44 +0000 (16:04 +0530)] 
zynqmp: configs: Add single nand flash mini u-boot configuration

This patch adds configuration for single nand flash mini u-boot.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocommon: command: Print FPGA error value in hexadecimal
T Karthik Reddy [Thu, 18 Apr 2019 04:04:28 +0000 (09:34 +0530)] 
common: command: Print FPGA error value in hexadecimal

This patch prints returned FPGA error value in hexadecimal instead of
decimal.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomtd: spi: Add support for Macronix flash parts
Vikhyat Goyal [Fri, 12 Apr 2019 19:50:14 +0000 (13:50 -0600)] 
mtd: spi: Add support for Macronix flash parts

Adds support for mx25u51245f,mx66u2g45g and mx66l2g45g flash parts.

Signed-off-by: Vikhyat Goyal <vikhyat.goyal@xilinx.com>
Acked-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: Handle case where setup_phy is not needed
Siva Durga Prasad Paladugu [Mon, 1 Apr 2019 08:49:20 +0000 (14:19 +0530)] 
usb: dwc3: Handle case where setup_phy is not needed

If CONFIG_PHY is not enabled then the dwc3_setup_phy()
returns ENOTSUPP which can be still valid and intentional
so modify error check to handle this -ENOTSUPP.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: udc-uclass: Fixed problem when no alias is defined in DT
Jean-Jacques Hiblot [Thu, 24 Jan 2019 14:44:53 +0000 (15:44 +0100)] 
usb: udc-uclass: Fixed problem when no alias is defined in DT

commit 801f1fa442 "dm: usb: udc: Use SEQ_ALIAS to index the USB gadget
ports" changed the way the udevice if found. It uses the alias to find
a udevice for a given USB port number. In the commit log it was stated
that if no alias is provided, the bind order will be used instead. However
it doesn't work. Fixing this by adding a call to uclass_get_device() if
uclass_get_device_by_seq() fails.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: Vignesh R <vigneshr@ti.com>
6 years agonet: zynq_gem: Modify phy supported features after max-speed was set
Siva Durga Prasad Paladugu [Wed, 27 Mar 2019 12:09:59 +0000 (17:39 +0530)] 
net: zynq_gem: Modify phy supported features after max-speed was set

The phydev supported features were reset in phy_set_supported() so,
move the setting of driver supported features after this so that it
wont lost in phy_set_supported().

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrivers: mtd: spi: Check SPI_TX_QUAD mode if RD_QUADIO flag is set
T Karthik Reddy [Wed, 27 Mar 2019 06:15:45 +0000 (11:45 +0530)] 
drivers: mtd: spi: Check SPI_TX_QUAD mode if RD_QUADIO flag is set

This patch checks for SPI_TX_QUAD mode if RD_QUADIO flag is set, as
RD_QUADIO uses 4 lines for TX. If SPI_TX_QUAD mode is not set then
CMD_READ_QUAD_IO_FAST should not be used.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoxilinx: Add sd boot command script for reference
Siva Durga Prasad Paladugu [Wed, 27 Mar 2019 05:18:33 +0000 (10:48 +0530)] 
xilinx: Add sd boot command script for reference

This patch adds sdboot command script for reference.
This can be converetd into uboot script using mkimage and
use for booting.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>