mtd: xilinx_nandps: Simplify macro

Several macros were defined with an argument. But they
were always used with the same fixed argument. Thus, the
macros are changed to directly provide the intendet value without
requiring a redundant argument.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
mtd: xilinx_nandps: Remove unused #define

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
mtd: xilinx_nandps: Remove unused struct

struct xnand_platform_data is never used.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
mtd: xilinx_nandps: Add const qualifier to xnandps_commands

The array is never modified and can be declared const.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
mtd: xilinx_nandps: Add static qualifiers

Several internal symbols were missing the static qualifier.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
spi: spi-xilinx-qps: remove command merge feature

The command merge feature has been de-featured such
that the driver should not be using it. It works fine
without it but there may be a minor performance degrade.

The command merge feature was in bit 26 of the linear
configuration register before it was removed. Magic
values are also removed for clarity.

Signed-off-by: John Linn <john.linn@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
arm: zynq: Remove unused SCU_GLOBAL_TIMER_BASE

It should be the part of this patch
"arm: zynq: Removed scu global timer driver for cleanup"
(sha1: 47fa64c788eccdda66c3625507c36257f5df1bd2)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
arm: zynq: Fix DMA address reservation

This is not going to be revisit of this dma address reservation.
The intention of this patch is remove compilation bug
when CONFIG_ARM_PATCH_PHYS_VIRT=y is selected.

Log:
arch/arm/mach-zynq/common.c: In function 'xilinx_memory_init':
arch/arm/mach-zynq/common.c:108:6: warning: "CONFIG_PHYS_OFFSET" is not defined [-Wundef]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arm: zynq: Move zynq clock initialization to timer init

Timer should be the first device which requires clock
interface. Move it out of xilinx_irq_init and remove
comment which suggested that it wasn't correct place.

It is also synchronization with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
arm: zynq: Remove old ps2 driver

It is any relict from past. This driver is even not compiled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
dma: xilinx: Remove unused dma driver

Currently we are using new dma drivers at drivers/dma/xilinx folder.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
input: keyboard: Remove ancient fsp_ps2 keyboard driver

None is testing this driver. Let's remove it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
arm: zynq: Remove XILINX_FIXED_DEVTREE_ADDR option

None is using this option. We are not using fixed
address anymore.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
arm: versatile: Revert changes in this platform

We are not using versatile smp code that's why this
cleanup patch.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
arm: zynq: Allow UART1 to be used as DEBUG_LL console.

The main UART on the Xilinx ZC702 board is UART1, located at address
e0001000.  Add a Kconfig option to select this device as the low-level
debugging port.  This allows the really early boot printouts to reach
the USB serial adaptor on this board.

For consistency's sake, add a choice entry for UART0 even though it is
the the default if UART1 is not selected.

Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Tested-by: Josh Cartwright <josh.cartwright@ni.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
arm: zynq: timer: Remove unused #defines

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
arm: zynq: timer: Use pr_* prefix over printk

Replacing uses of printk through the appropriate pr_* macro.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
arm: zynq: Remove mach/zynq_soc.h from timer

Getting rid of DT-/hardcoded fallbacks for obtaining the timer's
input clock frequency. The common clock framework is used now as
only option.

Removing redundant include.
Removing no longer needed attributes from device tree.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
arm: zynq: timer: Use correct type for variable

Changing the type from u32 to the correct pointer type allows
to remove all type casts used with this variable.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
arm: zynq: timer: Remove hard coded defaults

Base address and IRQ are supposed to be obtained from the device tree.
Hardcoded defaults are removed.
Instead of WARN_ON a NULL base address we BUG. We would run into a
NULL pointer dereference anyway.
Better tell the user what's wrong and bail immediately.
Similar for the IRQ: If an invalid IRQ ID is detected we BUG. Otherwise
the system would hang during delay loop calibration.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>