From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Date: Tue, 19 Aug 2014 12:19:44 +0100 Subject: [U-Boot] [PATCH v5 01/16] arm: ls102xa: Add Freescale LS102xA SoC support In-Reply-To: <1408416905-19771-2-git-send-email-b18965@freescale.com> References: <1408416905-19771-1-git-send-email-b18965@freescale.com> <1408416905-19771-2-git-send-email-b18965@freescale.com> Message-ID: <20140819111944.GH3302@leverpostej> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On Tue, Aug 19, 2014 at 03:54:50AM +0100, Alison Wang wrote: > From: Wang Huan > > The QorIQ LS1 family is built on Layerscape architecture, > the industry's first software-aware, core-agnostic networking > architecture to offer unprecedented efficiency and scale. > > Freescale LS102xA is a set of SoCs combines two ARM > Cortex-A7 cores that have been optimized for high > reliability and pack the highest level of integration > available for sub-3 W embedded communications processors > with Layerscape architecture and with a comprehensive > enablement model focused on ease of programmability. > > Signed-off-by: Alison Wang > Signed-off-by: Jason Jin > Signed-off-by: Jingchang Lu > Signed-off-by: Prabhakar Kushwaha > --- > Change log: > v5: No change. > v4: No change. > v3: Fix checkpatch errors. > v2: Add serdes support. > Update DDR frequency and data rate information. > Fix overflow condition error for the timer. [...] > +int timer_init(void) > +{ > + struct sctr_regs *sctr = (struct sctr_regs *)SCTR_BASE_ADDR; > + unsigned long ctrl, val, freq; > + > + /* Enable System Counter */ > + writel(SYS_COUNTER_CTRL_ENABLE, &sctr->cntcr); > + > + freq = GENERIC_TIMER_CLK; > + asm("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); Is CNTFRQ initialised for both CPUs? If the CPUs are booted at PL1 rather than PL2, is CNTVOFF initialised to the same value on both CPUs? Thanks, Mark.