[PATCH] arm: zynq: add system level control register manager

Peter Crosthwaite peter.crosthwaite at xilinx.com
Tue Nov 13 21:29:16 EST 2012



> -----Original Message-----
> From: Daniel Borkmann [mailto:danborkmann at iogearbox.net]
> Sent: Wednesday, November 14, 2012 5:25 AM
> To: Josh Cartwright
> Cc: Josh Cartwright; Arnd Bergmann; Michal Simek; John Linn; linux-arm-
> kernel at lists.infradead.org; Peter Crosthwaite
> Subject: Re: [PATCH] arm: zynq: add system level control register
> manager
>
> On Tue, Nov 13, 2012 at 7:37 PM, Josh Cartwright
> <josh.cartwright at ni.com> wrote:
> > On Fri, Nov 09, 2012 at 10:49:07AM +0100, Daniel Borkmann wrote:
> >> On Thu, Nov 8, 2012 at 5:01 PM, Josh Cartwright <joshc at eso.teric.us>
> wrote:
> >> > On Wed, Oct 31, 2012 at 07:36:12PM +0100, Daniel Borkmann wrote:
> >> >> This patch for the Xilinx Zynq ARM architecture adds management
> of system
> >> >> level control register. The code is taken from the Xilinx-
> internal Linux
> >> >> Git tree and cleaned up a bit for mainline integration. Besides
> others,
> >> >> this patch is needed in order to integrate further drivers for
> Zynq such as
> >> >> the Zynq xemacps networking device driver. The patch is aganst
> the latest
> >> >> arm-soc tree.
> >> >>
> >> >> Signed-off-by: Daniel Borkmann <daniel.borkmann at tik.ee.ethz.ch>
> >> >> Cc: Michal Simek <michals at xilinx.com>
> >> >> Cc: John Linn <john.linn at xilinx.com>
> >> >> Cc: Arnd Bergmann <arnd at arndb.de>
> >> >> ---
> >> >
> >> > These changes will conflict with my pending clk patchset [1], as
> I'm
> >> > introducing bindings for the SLCR (and its clk interfaces).
> >>
> >> Oops, okay. Then your's has priority, of course.
> >
> > I did not mean to discourage.  I just meant to say that we should
> work
> > out how this work can be done on top of the clk changes.
> >
> >> > It seems like a hefty chunk of the out-of-tree slcr driver is
> related to
> >> > configuring MIO.  I think it would be really nice if this driver
> was
> >> > reworked to use the pinctrl subsystem, and also to provide
> suitable
> >> > device tree bindings.
> >>
> >> Agreed. If there's a chance to help with further Zynq integration
> and
> >> to develop this driver with testing on Qemu for ARM Zynq, I'd like
> to
> >> give it a try. (The board is a bit expensive as a hobby only.)
> >
> > My concern is that, especially regarding the configuration of MIO,
> being
> > able to do adequate testing will require real hardware.  It isn't
> clear
> > to me what the state of qemu's slcr/mio model is.
>
> I added Peter Crosthwaite into CC, since he could provide an answer to
> that (I've been told).

Hi Daniel, Josh,

MIO functionality is not modeled at all in QEMU SLCR. The bounds of QEMU zynq stop before the MIO switch so all devices are always present and connected concurrently (impossible with real hw). There are dummy registers for all the MIO controls in SLCR, so your driver shouldn't crash anything, but everything will just be a NOP.

SLCR Peripheral resets and clock controls are also not modeled (the latter doesn't mean a lot anyway). SLCR doesn't really do much in the end, apart from the CPU reset and halt capabilities needed for SMP linux, and we have a few bits for the bootmode switch and the OCM remapping that are still out of tree.

Regards,
Peter



This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.





More information about the linux-arm-kernel mailing list