ARM: zynq: Remove legacy comment

Commit 'zynq: Add OCM driver' (f3bde737e1c39d09ea645ddfd118a3a0628ad8a6)
migrated to use the OCM allocator, making a comment no longer
applicable.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
ARM: smp_scu: use macro for SCU enable bit

Use macro instead of magic number for SCU enable bit.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ARM: smp_scu: enable SCU standby support

With SCU standby enabled, SCU CLK will be turned off when all processors
are in WFI mode.  And the clock will be turned on when any processor
leaves WFI mode.

This behavior should be preferable in terms of power efficiency of
system idle.  So let's set the SCU standby bit to enable the support in
function scu_enable().

Cortex-A9 earlier than r2p0 has no standby bit in SCU, so we need to
skip setting the bit for those.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Wire-up renameat2 syscall

Add new renameat2 syscall.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ARM: zynq: Don't copy suspend stub to OCM on every suspend

With the migration to the OCM allocator, the suspend code allocates and
holds OCM space throughout the whole run-time. Hence, copying the OCM
stub to OCM can be reduced to being done once only.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ARM: zynq: Have DDR self-refresh and clock stop always on

Those features are controlled by HW and they can be always on. If the
DDR becomes idle it will leverage those low-power modes automatically
and also resume operation on new requests.
Latency penalties should be negligible.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ARM: zynq: Remove SCU standby from platform code

Enabling SCU standby mode is done in common code now. There is no longer
a need to change the SCU configuration from platform code.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ARM: zynq: Enable A9 clock gating feature

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ARM: zynq: Refactor PM code

Some PM features are enabled in zynq_pm_late_init() that are independent
of suspend support. Hence the code is refactored to always do the common
PM init.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ARM: zynq: pm: Trivial clean up

 - remove redundant #includes
 - update copyright info

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
trafgen: Add support for zynq

Currently the trafgen driver can only be enabled if target
architecutre is Microblaze. This patch adds ARCH_ZYNQ
option to the kconfig so that users can test this on
zynq platform also.
Also enable this driver for default zynq defconfig.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Fix issue with msi compilation

There are some missing references to linux/irq.h.

Warning log:
arch/microblaze/pci/msi.c: In function 'create_irq':
arch/microblaze/pci/msi.c:59:2: error: implicit declaration of function
'dynamic_irq_init' [-Werror=implicit-function-declaration]
  dynamic_irq_init(irq);
  ^
arch/microblaze/pci/msi.c: In function 'destroy_irq':
arch/microblaze/pci/msi.c:76:2: error: implicit declaration of function
'dynamic_irq_cleanup' [-Werror=implicit-function-declaration]
  dynamic_irq_cleanup(irq);
  ^
arch/microblaze/pci/msi.c: At top level:
arch/microblaze/pci/msi.c:107:15: error: variable 'xilinx_msi_chip' has
initializer but incomplete type
 static struct irq_chip xilinx_msi_chip = {
               ^
arch/microblaze/pci/msi.c:108:3: error: unknown field 'name' specified
in initializer
   .name = "PCI-MSI",
   ^
arch/microblaze/pci/msi.c:108:3: warning: excess elements in struct
initializer [enabled by default]
arch/microblaze/pci/msi.c:108:3: warning: (near initialization for
'xilinx_msi_chip') [enabled by default]
arch/microblaze/pci/msi.c:109:3: error: unknown field 'irq_ack'
specified in initializer
   .irq_ack = xilinx_msi_nop,
   ^
arch/microblaze/pci/msi.c:109:3: warning: excess elements in struct
initializer [enabled by default]
arch/microblaze/pci/msi.c:109:3: warning: (near initialization for
'xilinx_msi_chip') [enabled by default]
arch/microblaze/pci/msi.c:110:3: error: unknown field 'irq_enable'
specified in initializer
   .irq_enable = unmask_msi_irq,
   ^
...

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