From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Gorsulowski Date: Thu, 11 Feb 2010 10:11:18 +0100 Subject: [U-Boot] [PATCH 5/9 V4] convert common files to new SoC access In-Reply-To: <4B73B735.4070909@esd.eu> References: <4B5AD783.7080904@scharsoft.de> <4B69EED2.8040604@scharsoft.de> <4B73B735.4070909@esd.eu> Message-ID: <4B73C9B6.3050706@esd.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Daniel Gorsulowski wrote: > - tmp = at91_sys_read(AT91_CKGR_MCFR); > - } while (!(tmp & AT91_PMC_MAINRDY)); > - main_clock = (tmp & AT91_PMC_MAINF) * (AT91_SLOW_CLOCK / 16); > + tmp = readl(&pmc->mcfr); > + } while (!(tmp & AT91_PMC_IXR_MCKRDY)); > + main_clock = (tmp & (0xffff << 0)) * (AT91_SLOW_CLOCK / 16); > } > #endif > main_clk_rate_hz = main_clock; > -- > > I replaced AT91_PMC_MAINF with (0xffff << 0), because AT91_PMC_MAINF in not > available anymore. Maybe you find a better solution... > Sorry, I committed before testing. AT91_PMC_IXR_MCKRDY is wrong. It should be replaced by 0x00010000 or an appropriate #define Daniel