summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-11-29 16:35:54 -0800
committerGerrit <chrome-bot@google.com>2011-12-12 10:23:42 -0800
commit6f22f8c501202a48d386465d2808afd1bdc6825e (patch)
tree36401c29a0f529d11d03d8aef58de10524c7c097 /arch
parentceb5dac413f6d1c0b624ee9466244b5a5bd6091a (diff)
tegra: Remove CONFIG_SYS_PLLP_BASE_IS_408MHZ
This setting is now in the fdt, so remove the CONFIG item. BUG=chromium-os:23496 TEST=build and boot on Seaboard, T33, Kaen Change-Id: I336a6cc2140c725fdda85330efe617f82f205a90 Reviewed-on: https://gerrit.chromium.org/gerrit/12250 Commit-Ready: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/tegra-common/ap20.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/arch/arm/cpu/armv7/tegra-common/ap20.c b/arch/arm/cpu/armv7/tegra-common/ap20.c
index 5d1f6045f8..774567374a 100644
--- a/arch/arm/cpu/armv7/tegra-common/ap20.c
+++ b/arch/arm/cpu/armv7/tegra-common/ap20.c
@@ -152,7 +152,6 @@ int ap20_cpu_is_cortexa9(void)
return id == (PG_UP_TAG_0_PID_CPU & 0xff);
}
-#if defined(CONFIG_SYS_PLLP_BASE_IS_408MHZ)
static void adjust_pllp_out_freqs(void)
{
struct clk_rst_ctlr *clkrst = (struct clk_rst_ctlr *)NV_PA_CLK_RST_BASE;
@@ -170,7 +169,6 @@ static void adjust_pllp_out_freqs(void)
| (IN_408_OUT_102_DIVISOR << PLLP_OUT3_RATIO) | PLLP_OUT3_OVR;
writel(reg, &pll->pll_out_b);
}
-#endif
static int pllx_set_rate(struct clk_pll *pll , u32 divn, u32 divm, u32 divp,
u32 cpcon)
@@ -223,9 +221,10 @@ void ap20_init_pllx(int slow)
/* set pllx */
sel = &tegra_pll_x_table[chip_type][osc];
pllx_set_rate(pll, sel->n, sel->m, sel->p, sel->cpcon);
-#if defined(CONFIG_SYS_PLLP_BASE_IS_408MHZ)
- adjust_pllp_out_freqs();
-#endif
+
+ /* once we are out of slow mode, set up the T30 PLLs also */
+ if (!slow && chip_type == TEGRA_SOC_T30_408MHZ)
+ adjust_pllp_out_freqs();
}
static void enable_cpu_clock(int enable)
@@ -457,16 +456,14 @@ static void clock_enable_coresight(int enable)
* 1.5, giving an effective frequency of 144MHz.
* Set PLLP_OUT0 [bits31:30 = 00], and use a 7.1 divisor
* (bits 7:0), so 00000001b == 1.5 (n+1 + .5)
- */
-#if defined(CONFIG_SYS_PLLP_BASE_IS_408MHZ)
- /*
+ *
* Clock divider request for 204MHz would setup CSITE clock as
* 144MHz for PLLP base 216MHz and 204MHz for PLLP base 408MHz
- */
- src = CLK_DIVIDER(NVBL_PLLP_KHZ, 204000);
-#else
- src = CLK_DIVIDER(NVBL_PLLP_KHZ, 144000);
-#endif
+ */
+ if (tegra_get_chip_type() == TEGRA_SOC_T30_408MHZ)
+ src = CLK_DIVIDER(NVBL_PLLP_KHZ, 204000);
+ else
+ src = CLK_DIVIDER(NVBL_PLLP_KHZ, 144000);
clock_ll_set_source_divisor(PERIPH_ID_CSI, 0, src);
/* Unlock the CPU CoreSight interfaces */