Skip to contentSkip to conversation

MIPS: Alchemy: fix db1200 PSC clock enablement

PATCH Applied Manuel Lauss 2 participants 2 messages Aug 18, 2014 – Aug 19, 2014 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Alchemy: fix db1200 PSC clock enablement

Enable PSC0 (I2C/SPI) clock and leave PSC1 (Audio) alone. This patch restores functionality to both Audio and I2C/SPI.

---
 arch/mips/alchemy/devboards/db1200.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
arch/mips/alchemy/devboards/db1200.c +1 -5
index 7761889..8c13675 100644
@@ -847,6 +847,7 @@ int __init db1200_dev_setup(void)
 			pr_warn("DB1200: cant get I2C close to 50MHz\n");
 		else
 			clk_set_rate(c, pfc);
+		clk_prepare_enable(c);
 		clk_put(c);
 	}
 
@@ -922,11 +923,6 @@ int __init db1200_dev_setup(void)
 	}
 
 	/* Audio PSC clock is supplied externally. (FIXME: platdata!!) */
-	c = clk_get(NULL, "psc1_intclk");
-	if (!IS_ERR(c)) {
-		clk_prepare_enable(c);
-		clk_put(c);
-	}
 	__raw_writel(PSC_SEL_CLK_SERCLK,
 	    (void __iomem *)KSEG1ADDR(AU1550_PSC1_PHYS_ADDR) + PSC_SEL_OFFSET);
 	wmb();
Signature · 1 line
2.0.4
Applied
#1 lore raw
Quoted 2 lines · Manuel Lauss

Enable PSC0 (I2C/SPI) clock and leave PSC1 (Audio) alone. This patch restores functionality to both Audio and I2C/SPI.

Applied. Thanks,

Ralf