mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx: add AR934X specific bootstrap and reset register bits
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28976 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -184,8 +184,10 @@ static void __init ar934x_detect_sys_frequency(void)
|
||||
{
|
||||
u32 pll, out_div, ref_div, nint, frac, clk_ctrl, postdiv;
|
||||
u32 cpu_pll, ddr_pll;
|
||||
u32 bootstrap;
|
||||
|
||||
if (ar71xx_reset_rr(AR934X_RESET_REG_BOOTSTRAP) & AR934X_REF_CLK_40)
|
||||
bootstrap = ar71xx_reset_rr(AR934X_RESET_REG_BOOTSTRAP);
|
||||
if (bootstrap & AR934X_BOOTSTRAP_REF_CLK_40)
|
||||
ar71xx_ref_freq = 40 * 1000 * 1000;
|
||||
else
|
||||
ar71xx_ref_freq = 25 * 1000 * 1000;
|
||||
|
||||
Reference in New Issue
Block a user