tty: xuartps: Make driver depend on ARCH_ZYNQ

This is a driver for the UART of Xilinx' Zynq and should depend on this
architecture.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
GPIO: xilinx: Do not allocate interrupts for IPs without IRQ support

Check if IP has IRQ connected. If not ignore IRQ allocation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
GPIO: xilinx: Do not use xgpiops but use only xgpio

It is typical c&p error because these functions
were taken from gpiops driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
spi: Introduce macro to set quad spi mode

Introduced one new macro to make setting up quad mode support to the
spi master controller.

SPI_MASTER_QUAD_MODE is for to inform the protocol driver about the
master controller quad operation support

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: qspi: Added support for quad page program command

Added the quad page program command support to the qspi controller
driver command table.
updated the quad support macro to the spi framework.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
mtd: m25p80: Added support for quad read/program commands

Modified the protocol driver to issue quad read/program commands
for the qspi compatible controller driver.Introduced new variables
for read,program opecodes and dummy byte count and modified driver
to resolve the read/program operations to be use during the probe
time.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
apf: Add kernel modules to the kernel

This patch is created from origin Xidane kernel modules
with these additional steps:
- Fix checkpatch.pl warnings
- Fix coding style
- Move all modules to staging/apf folder
- dos2unix translation
- Fix compilation warnings
- Change files permission

Signed-off-by: S Mohan <s.mohan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
apf: Fix driver module initialization

Use module_platform_driver and sort init and exit functions.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
apf: xlnk-eng: Simplify probe function

Use devm_ functions to simplify driver probing.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
apf: xilinx-dma-apf: Simplify probe function

Use devm_ functions to simplify driver probing.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
mtd: m25p80: Fix for flash corruption issue found in dual parallel qspi configuration

The below changes fix the flash corruption issue(CR#725392) occuring in dual parallel qspi
configurations.Dual parallel qspi configuration expects even address for read/program
operations but the current code erraniously issuning odd address when qspi interface
is configured for dual parallel mode and causing the issue.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
net: xilinx_emaclite: use platform_{get,set}_drvdata()

We can use the wrapper functions platform_{get,set}_drvdata() instead of
dev_{get,set}_drvdata() with &of_dev->dev, it is convenient for user.

Also, unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
clk: zynq: Change handling of FCLK default state

To accomodate soft IP which is not using the FCLKs through the CCF FCLKs
are handled the following way:

If an FCLK is not enabled by bootloaders, that FCLK will be disabled in
Linux. Drivers can enable and control it through the CCF as usual.

If an FCLK is enabled by bootloaders AND the corresponding bit in the
'fclk-enable' DT property is set, that FCLK will be enabled by the clkc,
resulting in an off by one reference count for that clock.

The default value for 'fclk-enable' is '0xf' (all FCLK's enabled by the
bootloader are enabled through the clkc.

Longer term it is intended to port all clock users to use the CCF and
change the 'fclk-enable' default to '0'.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: nand: do not wait on erase completion in cmd fct

The chip command function dont have to wait on ERASE
completion as the dev_ready chip function is defined
and use of the default nand_erase is made.

This fix the very low NAND erase performance

Signed-off-by: David Andrey <david.andrey@netmodule.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
hwmon: xadcps: Fixed negative temperatures

Changed uint to int so that negative temperatures work properly.

Signed-off-by: Matthias Auchmann <m.auchmann@artech.at>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
hwmon: xadcps: Simlify probe and remove functions

Use devm_ functions which simplify device probing/removing.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
apf: Enable drivers just for Zynq

Do not compile these drivers for others architectures.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: Remove duplicated headers from drivers

Code cleanup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Add linux.bin.ub target

Currently the linux.bin target creates both linux.bin and linux.bin.ub.
Add linux.bin.ub as separate target to generate linux.bin.ub.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Remove deprecated IRQF_DISABLED

Removed IRQF_DISABLED as it's no-op and should be removed.

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