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>