diff options
author | Simon Que <sque@chromium.org> | 2011-12-16 20:11:22 +0100 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-07-02 23:01:18 +0200 |
commit | bb1dccfc63f7a007c6347c75ba597d866749d9d2 (patch) | |
tree | eb4a95c539840c1a115788b3a4685857f2d694b0 /lib/genalloc.c | |
parent | ARM: tegra: dma: rename driver name for clock to "tegra-apbdma" (diff) | |
download | linux-bb1dccfc63f7a007c6347c75ba597d866749d9d2.tar.xz linux-bb1dccfc63f7a007c6347c75ba597d866749d9d2.zip |
ARM: tegra: Fix PWM clock programming
PWM clock source registers in Tegra 2 have different clock source selection bit
fields than other registers. PWM clock source bits in CLK_SOURCE_PWM_0 register
are located at bit field bit[30:28] while others are at bit field bit[31:30] in
their respective clock source register.
This patch updates the clock programming to correctly reflect that, by adding a
flag to indicate the alternate bit field format and checking for it when
selecting a clock source (parent clock).
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Signed-off-by: Simon Que <sque@chromium.org>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions