public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] mx27: add function enable_caches
@ 2013-06-14 16:21 Philippe Reynes
  2013-06-14 16:21 ` [U-Boot] [PATCH RESEND] mx27: add i2c clock Philippe Reynes
  2013-06-26 15:03 ` [U-Boot] [PATCH v2] mx27: add function enable_caches Stefano Babic
  0 siblings, 2 replies; 4+ messages in thread
From: Philippe Reynes @ 2013-06-14 16:21 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
---
 arch/arm/cpu/arm926ejs/mx27/generic.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

v2:
- add flag CONFIG_SYS_DCACHE_OFF

diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c
index 41bb84b..bffbadd 100644
--- a/arch/arm/cpu/arm926ejs/mx27/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx27/generic.c
@@ -380,3 +380,11 @@ void mx27_sd2_init_pins(void)
 
 }
 #endif /* CONFIG_MXC_MMC */
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+	/* Enable D-cache. I-cache is already enabled in start.S */
+	dcache_enable();
+}
+#endif /* CONFIG_SYS_DCACHE_OFF */
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH RESEND] mx27: add i2c clock
  2013-06-14 16:21 [U-Boot] [PATCH v2] mx27: add function enable_caches Philippe Reynes
@ 2013-06-14 16:21 ` Philippe Reynes
  2013-06-26 15:03   ` Stefano Babic
  2013-06-26 15:03 ` [U-Boot] [PATCH v2] mx27: add function enable_caches Stefano Babic
  1 sibling, 1 reply; 4+ messages in thread
From: Philippe Reynes @ 2013-06-14 16:21 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org>
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
---
 arch/arm/cpu/arm926ejs/mx27/generic.c  |    2 ++
 arch/arm/include/asm/arch-mx27/clock.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c
index bffbadd..a9a13cb 100644
--- a/arch/arm/cpu/arm926ejs/mx27/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx27/generic.c
@@ -159,6 +159,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
 	switch (clk) {
 	case MXC_ARM_CLK:
 		return imx_get_armclk();
+	case MXC_I2C_CLK:
+		return imx_get_ahbclk()/2;
 	case MXC_UART_CLK:
 		return imx_get_perclk1();
 	case MXC_FEC_CLK:
diff --git a/arch/arm/include/asm/arch-mx27/clock.h b/arch/arm/include/asm/arch-mx27/clock.h
index fd062d3..2b03a41 100644
--- a/arch/arm/include/asm/arch-mx27/clock.h
+++ b/arch/arm/include/asm/arch-mx27/clock.h
@@ -26,6 +26,7 @@
 
 enum mxc_clock {
 	MXC_ARM_CLK,
+	MXC_I2C_CLK,
 	MXC_UART_CLK,
 	MXC_ESDHC_CLK,
 	MXC_FEC_CLK,
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH v2] mx27: add function enable_caches
  2013-06-14 16:21 [U-Boot] [PATCH v2] mx27: add function enable_caches Philippe Reynes
  2013-06-14 16:21 ` [U-Boot] [PATCH RESEND] mx27: add i2c clock Philippe Reynes
@ 2013-06-26 15:03 ` Stefano Babic
  1 sibling, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2013-06-26 15:03 UTC (permalink / raw)
  To: u-boot

On 14/06/2013 18:21, Philippe Reynes wrote:
> Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
> ---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH RESEND] mx27: add i2c clock
  2013-06-14 16:21 ` [U-Boot] [PATCH RESEND] mx27: add i2c clock Philippe Reynes
@ 2013-06-26 15:03   ` Stefano Babic
  0 siblings, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2013-06-26 15:03 UTC (permalink / raw)
  To: u-boot

On 14/06/2013 18:21, Philippe Reynes wrote:
> Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org>
> Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
> ---


Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-26 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-14 16:21 [U-Boot] [PATCH v2] mx27: add function enable_caches Philippe Reynes
2013-06-14 16:21 ` [U-Boot] [PATCH RESEND] mx27: add i2c clock Philippe Reynes
2013-06-26 15:03   ` Stefano Babic
2013-06-26 15:03 ` [U-Boot] [PATCH v2] mx27: add function enable_caches Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox