From: Tom Rini Date: Fri, 14 Mar 2014 10:16:54 -0400 Subject: [U-Boot] [PATCH v1 1/9] sunxi: initial sun7i clocks and timer support. In-Reply-To: <1394793231-11922-1-git-send-email-ijc@hellion.org.uk> References: <1394793212.13270.89.camel@hastur.hellion.org.uk> <1394793231-11922-1-git-send-email-ijc@hellion.org.uk> Message-ID: <20140314141654.GE16360@bill-the-cat> 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, Mar 14, 2014 at 10:33:43AM +0000, Ian Campbell wrote: [snip] > + writel(0xa1005000, &ccm->pll1_cfg); > + sdelay(200); > + writel(AXI_DIV_1 << 0 | AHB_DIV_2 << 4 | APB0_DIV_1 << 8 | > + CPU_CLK_SRC_PLL1 << 16, &ccm->cpu_ahb_apb0_cfg); > + writel(0x1 << 6 | readl(&ccm->ahb_gate0), &ccm->ahb_gate0); > + writel(0x1 << 31 | readl(&ccm->pll6_cfg), &ccm->pll6_cfg); All magic bits and shifts need defining. > +/* > + * This function is derived from PowerPC code (timebase clock frequency). > + * On ARM it returns the number of timer ticks per second. > + */ > +ulong get_tbclk(void) > +{ > + ulong tbclk; > + tbclk = CONFIG_SYS_HZ; > + return tbclk; > +} So, just return CONFIG_SYS_HZ ? -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: