mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
m68k: Fix unused variable warning in speed.c
The following warning was produced, fix it: speed.c: In function 'get_clocks': speed.c:94:15: warning: variable 'bPci' set but not used [-Wunused-but-set-variable] Signed-off-by: Marek Vasut <marex@denx.de> Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com> Cc: Jason Jin <jason.jin@freescale.com>
This commit is contained in:
parent
2b05593da6
commit
c1568ca545
1 changed files with 7 additions and 2 deletions
|
@ -91,9 +91,12 @@ int get_clocks(void)
|
||||||
pll_t *pll = (pll_t *)MMAP_PLL;
|
pll_t *pll = (pll_t *)MMAP_PLL;
|
||||||
int pllmult_nopci[] = { 20, 10, 24, 18, 12, 6, 16, 8 };
|
int pllmult_nopci[] = { 20, 10, 24, 18, 12, 6, 16, 8 };
|
||||||
int pllmult_pci[] = { 12, 6, 16, 8 };
|
int pllmult_pci[] = { 12, 6, 16, 8 };
|
||||||
int vco = 0, bPci, temp, fbtemp, pcrvalue;
|
int vco = 0, temp, fbtemp, pcrvalue;
|
||||||
int *pPllmult = NULL;
|
int *pPllmult = NULL;
|
||||||
u16 fbpll_mask;
|
u16 fbpll_mask;
|
||||||
|
#ifdef CONFIG_PCI
|
||||||
|
int bPci;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_M54455EVB
|
#ifdef CONFIG_M54455EVB
|
||||||
u8 *cpld = (u8 *)(CONFIG_SYS_CS2_BASE + 3);
|
u8 *cpld = (u8 *)(CONFIG_SYS_CS2_BASE + 3);
|
||||||
|
@ -105,14 +108,16 @@ int get_clocks(void)
|
||||||
((in_be16(&ccm->ccr) & CCM_CCR_360_FBCONFIG_MASK) == 0x0060)) {
|
((in_be16(&ccm->ccr) & CCM_CCR_360_FBCONFIG_MASK) == 0x0060)) {
|
||||||
pPllmult = &pllmult_pci[0];
|
pPllmult = &pllmult_pci[0];
|
||||||
fbpll_mask = 3; /* 11b */
|
fbpll_mask = 3; /* 11b */
|
||||||
|
#ifdef CONFIG_PCI
|
||||||
bPci = 1;
|
bPci = 1;
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
pPllmult = &pllmult_nopci[0];
|
pPllmult = &pllmult_nopci[0];
|
||||||
fbpll_mask = 7; /* 111b */
|
fbpll_mask = 7; /* 111b */
|
||||||
#ifdef CONFIG_PCI
|
#ifdef CONFIG_PCI
|
||||||
gd->pci_clk = 0;
|
gd->pci_clk = 0;
|
||||||
#endif
|
|
||||||
bPci = 0;
|
bPci = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_M54455EVB
|
#ifdef CONFIG_M54455EVB
|
||||||
|
|
Loading…
Reference in a new issue