From: Maxime Ripard Date: Mon, 16 Jan 2017 09:01:25 +0100 Subject: [U-Boot] [PATCH 09/12] sunxi: H5: add COUNTER_FREQUENCY In-Reply-To: <1484271004-19681-10-git-send-email-andre.przywara@arm.com> References: <1484271004-19681-1-git-send-email-andre.przywara@arm.com> <1484271004-19681-10-git-send-email-andre.przywara@arm.com> Message-ID: <20170116080125.etvagx4osav44psy@lukather> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jan 13, 2017 at 01:30:01AM +0000, Andre Przywara wrote: > For the arch timer to work properly, we need to setup the CNTFRQ > register, which is only possible in EL3. > Define the arch timer frequency in sun8i.h as well, so that ARMv8's > start.S can program the register correctly. > > Signed-off-by: Andre Przywara > --- > include/configs/sun8i.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/configs/sun8i.h b/include/configs/sun8i.h > index a4c3fb6..cbb7239 100644 > --- a/include/configs/sun8i.h > +++ b/include/configs/sun8i.h > @@ -13,6 +13,8 @@ > * A23 specific configuration > */ > > +#define COUNTER_FREQUENCY CONFIG_TIMER_CLK_FREQ > + Why not convert the armv8 code to use CONFIG_TIMER_CLK_FREQ, or armv7 to use COUNTER_FREQUENCY? The both options seem redundant. Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: