diff options
author | Hemant Pedanekar <hemantp@ti.com> | 2009-07-07 10:19:41 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-08-26 03:57:01 -0400 |
commit | 3e25d5f4fd7515a0a1e6b68025c483f53196a98c (patch) | |
tree | 407478d8e2b7c86d14a0c65d1bcb1a6a05f59df8 /arch | |
parent | 88659988d5b01f83615ece5ad3183ce5672e2a7f (diff) |
davinci: dm646x: Add clock info and update mux setup for ATA
This patch adds clock data for IDE and also updates pin mux mask for ATA so as
to disable PCI when ATA is selected.
Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-davinci/dm646x.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index 199f288e03c4..50f01e013aa8 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c | |||
@@ -285,6 +285,13 @@ static struct clk timer2_clk = { | |||
285 | .flags = ALWAYS_ENABLED, /* no LPSC, always enabled; c.f. spruep9a */ | 285 | .flags = ALWAYS_ENABLED, /* no LPSC, always enabled; c.f. spruep9a */ |
286 | }; | 286 | }; |
287 | 287 | ||
288 | |||
289 | static struct clk ide_clk = { | ||
290 | .name = "ide", | ||
291 | .parent = &pll1_sysclk4, | ||
292 | .lpsc = DAVINCI_LPSC_ATA, | ||
293 | }; | ||
294 | |||
288 | static struct clk vpif0_clk = { | 295 | static struct clk vpif0_clk = { |
289 | .name = "vpif0", | 296 | .name = "vpif0", |
290 | .parent = &ref_clk, | 297 | .parent = &ref_clk, |
@@ -336,6 +343,7 @@ struct davinci_clk dm646x_clks[] = { | |||
336 | CLK(NULL, "timer0", &timer0_clk), | 343 | CLK(NULL, "timer0", &timer0_clk), |
337 | CLK(NULL, "timer1", &timer1_clk), | 344 | CLK(NULL, "timer1", &timer1_clk), |
338 | CLK("watchdog", NULL, &timer2_clk), | 345 | CLK("watchdog", NULL, &timer2_clk), |
346 | CLK("palm_bk3710", NULL, &ide_clk), | ||
339 | CLK(NULL, "vpif0", &vpif0_clk), | 347 | CLK(NULL, "vpif0", &vpif0_clk), |
340 | CLK(NULL, "vpif1", &vpif1_clk), | 348 | CLK(NULL, "vpif1", &vpif1_clk), |
341 | CLK(NULL, NULL, NULL), | 349 | CLK(NULL, NULL, NULL), |
@@ -399,7 +407,7 @@ static struct platform_device dm646x_emac_device = { | |||
399 | */ | 407 | */ |
400 | static const struct mux_config dm646x_pins[] = { | 408 | static const struct mux_config dm646x_pins[] = { |
401 | #ifdef CONFIG_DAVINCI_MUX | 409 | #ifdef CONFIG_DAVINCI_MUX |
402 | MUX_CFG(DM646X, ATAEN, 0, 0, 1, 1, true) | 410 | MUX_CFG(DM646X, ATAEN, 0, 0, 5, 1, true) |
403 | 411 | ||
404 | MUX_CFG(DM646X, AUDCK1, 0, 29, 1, 0, false) | 412 | MUX_CFG(DM646X, AUDCK1, 0, 29, 1, 0, false) |
405 | 413 | ||