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>
char: Remove deprecated IRQF_DISABLED from devcvg

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

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
xilinx: 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>
usb: xusbps: Fix for crash in usb peripheral and otg mode

The follwoing changes addresses the crash issue when the usb is configured for
peripheral and otg modes.the reason for the crash is due to registering the
gadget.dev twice.Also the xusbps_dr_of_probe funcion is called multiple times
due to pointing the of_node to the platform devicies that are created based
the dr_mode. So, this fix avoid this and pass the required information to the
platform device structure.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: pcie: allow driver to initialize even if PCIe link is not up

This commit address following issue:
.  Link is not up (EP is in reset state), during kernel boot. And if
   EP comes to normal state and Link is up after kernel boot, user
   cannot issue rescan as the root port device entry doesn't list
   in /sys/bus/pci.
This patch fixes this issue by allowing to initialize the device,
even if the Link is not up.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: smc: Fix hwecc register offset calculation

Use arithmetic for offset calculation of HW ECC register index
instead of bit manipulation

Input for the function xsmcps_get_ecc_val are values from 0...3
to access ecc_value0_1 to ecc_value3_1 registers.

Access to register ecc_value2_1 (off 0x420) and ecc_value3_1 (off 0x424)
will never work with actual code.

Example: ecc_reg = 2 (we want to read ecc_value2_1)

Step 1: addr = XSMCPS_ECC_VALUE0_OFFS | (ecc_reg << 2);
Step 2: addr = 0x418                  | (2 << 2);
Step 3: addr = 0x418                  | (0x008);
Step 4: addr = 0x418

So result is addr = 0x418 but we intended to access 0x420.
That will work when we replace bitwise OR with a simple addition.

Signed-off-by: Andreas Salvisberg <andreas.salvisberg@netmodule.com>
Reviewed-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arm: dt: zynq: zc706: Fix I2C address label

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arm: dt: zynq: zc706: Add ucd90120 node

The zc706 features a TI ucd90120 on the PMBus. Add a corresponding node
to the device tree.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: dtses: Synchronize them with the latest device-tree BSP

Device-tree BSP top commit:
"ipi: axi_dma: Vivado supports to setup loopback just by one bus"
(sha1: d90a6eb8a4b5fe2c5c2e30250b36200db136fc2e)

Changes:
Add bus-handle to cpu node
Add interrupt-handle to cpu node
Remove unused #cpus property
Specify num_cpus and num_interrupts in GIC
Setup fclk-enable property
Fix compatible property for ps7-can

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