Comment out nfrac as it's unused.

This commit is contained in:
skrll 2014-05-29 14:41:26 +00:00
parent f75f663858
commit 4f6a923c1a
1 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ar9344.c,v 1.4 2012/10/27 17:18:02 chs Exp $ */ /* $NetBSD: ar9344.c,v 1.5 2014/05/29 14:41:26 skrll Exp $ */
/* /*
* Copyright (c) 2006 Urbana-Champaign Independent Media Center. * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@ -48,7 +48,7 @@
* family. * family.
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ar9344.c,v 1.4 2012/10/27 17:18:02 chs Exp $"); __KERNEL_RCSID(0, "$NetBSD: ar9344.c,v 1.5 2014/05/29 14:41:26 skrll Exp $");
#include "opt_ddb.h" #include "opt_ddb.h"
#include "opt_kgdb.h" #include "opt_kgdb.h"
@ -120,9 +120,10 @@ ar9344_reset(void)
static void static void
ar9344_get_freqs(struct arfreqs *freqs) ar9344_get_freqs(struct arfreqs *freqs)
{ {
uint32_t out_div, ref_div, nint, nfrac, post_div; uint32_t out_div, ref_div, nint, post_div;
uint32_t pll; uint32_t pll;
uint32_t ref_clk; uint32_t ref_clk;
//uint32_t nfrac;
if (GETRESETREG(AR9344_RESET_BOOTSTRAP) & AR9344_BOOTSTRAP_REF_CLK_40) { if (GETRESETREG(AR9344_RESET_BOOTSTRAP) & AR9344_BOOTSTRAP_REF_CLK_40) {
ref_clk = 40 * 1000000; ref_clk = 40 * 1000000;
@ -139,7 +140,7 @@ ar9344_get_freqs(struct arfreqs *freqs)
out_div = __SHIFTOUT(pll, AR9344_CPU_PLL_CONFIG_OUTDIV); out_div = __SHIFTOUT(pll, AR9344_CPU_PLL_CONFIG_OUTDIV);
ref_div = __SHIFTOUT(pll, AR9344_CPU_PLL_CONFIG_REFDIV); ref_div = __SHIFTOUT(pll, AR9344_CPU_PLL_CONFIG_REFDIV);
nint = __SHIFTOUT(pll, AR9344_CPU_PLL_CONFIG_NINT); nint = __SHIFTOUT(pll, AR9344_CPU_PLL_CONFIG_NINT);
nfrac = __SHIFTOUT(pll, AR9344_CPU_PLL_CONFIG_NFRAC); //nfrac = __SHIFTOUT(pll, AR9344_CPU_PLL_CONFIG_NFRAC);
const uint32_t cpu_pll_freq = (nint * ref_clk / ref_div) >> out_div; const uint32_t cpu_pll_freq = (nint * ref_clk / ref_div) >> out_div;
@ -150,7 +151,7 @@ ar9344_get_freqs(struct arfreqs *freqs)
out_div = __SHIFTOUT(pll, AR9344_DDR_PLL_CONFIG_OUTDIV); out_div = __SHIFTOUT(pll, AR9344_DDR_PLL_CONFIG_OUTDIV);
ref_div = __SHIFTOUT(pll, AR9344_DDR_PLL_CONFIG_REFDIV); ref_div = __SHIFTOUT(pll, AR9344_DDR_PLL_CONFIG_REFDIV);
nint = __SHIFTOUT(pll, AR9344_DDR_PLL_CONFIG_NINT); nint = __SHIFTOUT(pll, AR9344_DDR_PLL_CONFIG_NINT);
nfrac = __SHIFTOUT(pll, AR9344_DDR_PLL_CONFIG_NFRAC); //nfrac = __SHIFTOUT(pll, AR9344_DDR_PLL_CONFIG_NFRAC);
const uint32_t ddr_pll_freq = (nint * ref_clk / ref_div) >> out_div; const uint32_t ddr_pll_freq = (nint * ref_clk / ref_div) >> out_div;