Re: [PATCH 3/3] bootwrapper: Initialise CCI device if found in the fdt

2012-10-03 Thread Dave Martin
On Tue, Oct 02, 2012 at 12:30:54PM +0300, Riku Voipio wrote: > On 1 October 2012 19:33, Dave Martin wrote: > > On Thu, Sep 27, 2012 at 07:06:20PM +0100, Jon Medhurst (Tixy) wrote: > >> + /* Turn on CCI snoops and DVM messages */ > >> + io32(cci+0x4000) = 0x3; /* A15 cluster */ > >> +

Re: [PATCH 3/3] bootwrapper: Initialise CCI device if found in the fdt

2012-10-03 Thread Dave Martin
On Mon, Oct 01, 2012 at 06:03:54PM +0100, Jon Medhurst (Tixy) wrote: > On Mon, 2012-10-01 at 17:33 +0100, Dave Martin wrote: > > On Thu, Sep 27, 2012 at 07:06:20PM +0100, Jon Medhurst (Tixy) wrote: > > > + if (offset >= 0) { > > > + p = fdt_getprop(fdt, offset, "reg", &len); > > > +

Re: [PATCH 3/3] bootwrapper: Initialise CCI device if found in the fdt

2012-10-02 Thread Riku Voipio
On 1 October 2012 19:33, Dave Martin wrote: > On Thu, Sep 27, 2012 at 07:06:20PM +0100, Jon Medhurst (Tixy) wrote: >> + /* Turn on CCI snoops and DVM messages */ >> + io32(cci+0x4000) = 0x3; /* A15 cluster */ >> + io32(cci+0x5000) = 0x3; /* A7 cluster */ > Ultimately, CCI slave po

Re: [PATCH 3/3] bootwrapper: Initialise CCI device if found in the fdt

2012-10-01 Thread Jon Medhurst (Tixy)
On Mon, 2012-10-01 at 17:33 +0100, Dave Martin wrote: > On Thu, Sep 27, 2012 at 07:06:20PM +0100, Jon Medhurst (Tixy) wrote: > > + if (offset >= 0) { > > + p = fdt_getprop(fdt, offset, "reg", &len); > > + if(len != (addrcells + sizecells) * 4) > > + info("Fai

Re: [PATCH 3/3] bootwrapper: Initialise CCI device if found in the fdt

2012-10-01 Thread Dave Martin
On Thu, Sep 27, 2012 at 07:06:20PM +0100, Jon Medhurst (Tixy) wrote: > From: Jon Medhurst > > The A15xA7 models simulate a Cache Coherent Interconnect (CCI) and this > needs to be initialised correctly for Linux to boot. > > To perform this initiation we add the new function configure_from_fdt()

[PATCH 3/3] bootwrapper: Initialise CCI device if found in the fdt

2012-09-27 Thread Jon Medhurst (Tixy)
From: Jon Medhurst The A15xA7 models simulate a Cache Coherent Interconnect (CCI) and this needs to be initialised correctly for Linux to boot. To perform this initiation we add the new function configure_from_fdt() which will look in the fdt for devices to initialise. In this first case we look