Lines Matching refs:temp

76 	int temp, vco = 0, bootmod_ccr, pdr;  in setup_5441x_clocks()  local
94 temp = in_be32(&pll->pcr); in setup_5441x_clocks()
95 temp &= ~0x3f; in setup_5441x_clocks()
96 temp |= 5; in setup_5441x_clocks()
97 out_be32(&pll->pcr, temp); in setup_5441x_clocks()
99 temp = in_be32(&pll->pdr); in setup_5441x_clocks()
100 temp &= ~0x001f0000; in setup_5441x_clocks()
101 temp |= 0x00040000; in setup_5441x_clocks()
102 out_be32(&pll->pdr, temp); in setup_5441x_clocks()
115 temp = (pdr & PLL_DR_OUTDIV1_BITS) + 1; in setup_5441x_clocks()
116 gd->cpu_clk = vco / temp; /* cpu clock */ in setup_5441x_clocks()
117 gd->arch.flb_clk = vco / temp; /* FlexBus clock */ in setup_5441x_clocks()
122 temp = ((pdr & PLL_DR_OUTDIV2_BITS) >> 5) + 1; in setup_5441x_clocks()
123 gd->bus_clk = vco / temp; /* bus clock */ in setup_5441x_clocks()
125 temp = ((pdr & PLL_DR_OUTDIV3_BITS) >> 10) + 1; in setup_5441x_clocks()
126 gd->arch.sdhc_clk = vco / temp; in setup_5441x_clocks()
137 int vco = 0, temp, fbtemp, pcrvalue; in setup_5445x_clocks() local
176 temp = fbtemp - 1; in setup_5445x_clocks()
177 pcrvalue |= PLL_PCR_OUTDIV3(temp); in setup_5445x_clocks()
203 int temp = ((in_be32(&pll->pcr) & PLL_PCR_OUTDIV2_MASK) >> 4) + 1; in setup_5445x_clocks() local
210 bus = vco / temp; in setup_5445x_clocks()
246 temp = (in_be32(&pll->pcr) & PLL_PCR_OUTDIV1_MASK) + 1; in setup_5445x_clocks()
247 gd->cpu_clk = vco / temp; /* cpu clock */ in setup_5445x_clocks()
249 temp = ((in_be32(&pll->pcr) & PLL_PCR_OUTDIV2_MASK) >> 4) + 1; in setup_5445x_clocks()
250 gd->bus_clk = vco / temp; /* bus clock */ in setup_5445x_clocks()
252 temp = ((in_be32(&pll->pcr) & PLL_PCR_OUTDIV3_MASK) >> 8) + 1; in setup_5445x_clocks()
253 gd->arch.flb_clk = vco / temp; /* FlexBus clock */ in setup_5445x_clocks()
257 temp = ((in_be32(&pll->pcr) & PLL_PCR_OUTDIV4_MASK) >> 12) + 1; in setup_5445x_clocks()
258 gd->pci_clk = vco / temp; /* PCI clock */ in setup_5445x_clocks()