Thread (31 messages) 31 messages, 2 authors, 2012-08-21

Re: [PATCH 07/13] omap3: allow enabling clocks for UART3, MMC1 and SPI

From: Jean-Christophe PLAGNIOL-VILLARD <hidden>
Date: 2012-08-21 12:15:14

On 09:08 Tue 21 Aug     , Jan Luebbe wrote:
On Mon, Aug 20, 2012 at 04:47:55PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
quoted
On 16:20 Mon 20 Aug     , Jan Luebbe wrote:
quoted
--- a/arch/arm/mach-omap/omap3_clock.c
+++ b/arch/arm/mach-omap/omap3_clock.c
@@ -679,11 +679,26 @@ static void per_clocks_enable(void)
 	sr32(CM_REG(FCLKEN1_CORE), 13, 1, 0x1);
 	sr32(CM_REG(ICLKEN1_CORE), 13, 1, 0x1);
 #endif
+#ifdef CONFIG_OMAP_CLOCK_UART3
+	/* Enable UART3 clocks */
+	sr32(CM_REG(FCLKEN_PER), 11, 1, 0x1);
+	sr32(CM_REG(ICLKEN_PER), 11, 1, 0x1);
+#endif
 #ifdef CONFIG_OMAP_CLOCK_I2C
 	/* Turn on all 3 I2C clocks */
 	sr32(CM_REG(FCLKEN1_CORE), 15, 3, 0x7);
 	sr32(CM_REG(ICLKEN1_CORE), 15, 3, 0x7);	/* I2C1,2,3 = on */
 #endif
+#ifdef CONFIG_OMAP_CLOCK_MMC1
no ifdef anymore

please use if (IS_ENABLE())
Ok. I thought IS_ENABLE was only available in next. I need this stack to work
on v2012.09, so I avoided it.

Will change it for the next version.
for mainline must

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help