arm: tegra: Increase pwm frequency.
Alex Odorovic [Fri, 12 Aug 2011 04:21:39 +0000 (21:21 -0700)]
Change clock source for pwm modules and increase backlight pwm frequency
to 1kHz.

Bug 858358

Original-Change-Id: I8e69de79e77e1c88aec8913d304b40013113fc22
Reviewed-on: http://git-master/r/46854
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R867c966b3aa005501ee3678f257e243a5632e9c5

arch/arm/mach-tegra/board-cardhu-panel.c
arch/arm/mach-tegra/board-cardhu.c

index db88f30..3a4a6e2 100644 (file)
@@ -220,7 +220,7 @@ static struct platform_pwm_backlight_data cardhu_backlight_data = {
        .pwm_id         = 0,
        .max_brightness = 255,
        .dft_brightness = 224,
-       .pwm_period_ns  = 5000000,
+       .pwm_period_ns  = 1000000,
        .init           = cardhu_backlight_init,
        .exit           = cardhu_backlight_exit,
        .notify         = cardhu_backlight_notify,
index 566323d..5e1ded9 100644 (file)
@@ -182,7 +182,7 @@ static __initdata struct tegra_clk_init_table cardhu_clk_init_table[] = {
        { "pll_m",      NULL,           0,              true},
        { "hda",        "pll_p",        108000000,      false},
        { "hda2codec_2x","pll_p",       48000000,       false},
-       { "pwm",        "clk_32k",      32768,          false},
+       { "pwm",        "pll_p",        3187500,        false},
        { "blink",      "clk_32k",      32768,          true},
        { "i2s1",       "pll_a_out0",   0,              false},
        { NULL,         NULL,           0,              0},