summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-zynq/slcr.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: zynq: Add support for SOC_BUSMichal Simek2014-05-201-0/+19
| | | | | | | Provide information through SOC_BUS to user space. Silicon revision is provided through devcfg device. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* ARM: zynq: Introduce zynq_slcr_unlock()Michal Simek2014-02-101-2/+14
| | | | | | Call special function for unlocking SLCR. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* ARM: zynq: Add and use zynq_slcr_read/write() helper functionsMichal Simek2014-02-101-8/+48
| | | | | | | | Use zynq_slcr_read/write helper functions for reg access instead of readl/writel. Also use regmap when it is ready. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* ARM: zynq: Make zynq_slcr_base staticSteffen Trumtrar2014-02-101-1/+1
| | | | | | | | The pointer doesn't need to be passed around any more. Make it static. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* ARM: zynq: Hang iomapped slcr address on device_nodeSteffen Trumtrar2014-02-101-0/+2
| | | | | | | For later usage by zynq clk driver. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* ARM: zynq: Split slcr in two partsMichal Simek2014-02-101-2/+24
| | | | | | | | | Split the slcr into an early part for unlocking and cpu starting and a later syscon driver. Also add "syscon" compatible property for slcr. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* ARM: zynq: Move clock_init from slcr to commonSteffen Trumtrar2014-02-051-2/+0
| | | | | | | Preparation step for next changes. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: slcr: Use read-modify-write for register writesSoren Brinkmann2013-07-261-8/+8
| | | | | | | | | zynq_slcr_cpu_start/stop() ignored the current register state when writing to a register. Fixing this by implementing proper read-modify-write. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: slcr: Clean up #definesSoren Brinkmann2013-07-261-13/+12
| | | | | | | | | | | | Use a common naming scheme for register offset #defines: Some of those used a '_OFFSET' suffix to distinguish them from others. This scheme is used for all register offsets now. Separate the register offset #defines from others and sort them in increasing order. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: slcr: Remove redundant header #includesSoren Brinkmann2013-07-261-10/+0
| | | | | Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: Migrate platform to clock controllerSoren Brinkmann2013-05-271-1/+1
| | | | | | | | | | | | | | Migrate the Zynq platform and its drivers to use the new clock controller driver. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Cc: John Stultz <john.stultz@linaro.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jslaby@suse.cz> Cc: linux-serial@vger.kernel.org Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Mike Turquette <mturquette@linaro.org>
* arm: zynq: Add smp supportMichal Simek2013-04-041-0/+29
| | | | | | | | | Zynq is dual core Cortex A9 which starts always at zero. Using simple trampoline ensure long jump to secondary_startup code. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
* arm: zynq: Add support for system resetMichal Simek2013-04-041-0/+27
| | | | | | Do system reset via slcr registers. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: Move slcr initialization to separate fileMichal Simek2013-04-041-0/+69
Create separate slcr driver instead of polluting common code. Signed-off-by: Michal Simek <michal.simek@xilinx.com>