clk: bcm2835: enable management of PCM clock

Enable the PCM clock in the SOC, which is used by the
bcm2835-i2s driver.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 33b689600f)
This commit is contained in:
Martin Sperl
2016-02-29 12:51:43 +00:00
committed by popcornmix
parent a1f393dee5
commit 6ac615c5f9
2 changed files with 8 additions and 0 deletions

View File

@@ -1638,6 +1638,13 @@ static const struct bcm2835_clk_desc clk_desc_array[] = {
.div_reg = CM_HSMDIV, .div_reg = CM_HSMDIV,
.int_bits = 4, .int_bits = 4,
.frac_bits = 8), .frac_bits = 8),
[BCM2835_CLOCK_PCM] = REGISTER_PER_CLK(
.name = "pcm",
.ctl_reg = CM_PCMCTL,
.div_reg = CM_PCMDIV,
.int_bits = 12,
.frac_bits = 12,
.is_mash_clock = true),
[BCM2835_CLOCK_PWM] = REGISTER_PER_CLK( [BCM2835_CLOCK_PWM] = REGISTER_PER_CLK(
.name = "pwm", .name = "pwm",
.ctl_reg = CM_PWMCTL, .ctl_reg = CM_PWMCTL,

View File

@@ -44,3 +44,4 @@
#define BCM2835_CLOCK_EMMC 28 #define BCM2835_CLOCK_EMMC 28
#define BCM2835_CLOCK_PERI_IMAGE 29 #define BCM2835_CLOCK_PERI_IMAGE 29
#define BCM2835_CLOCK_PWM 30 #define BCM2835_CLOCK_PWM 30
#define BCM2835_CLOCK_PCM 31