Re: [PATCH 01/11] OMAP2+: Add SoC specific map_io functions

2012-05-14 Thread Cousson, Benoit

Salut Thomas,

Sorry for the delay.

On 5/4/2012 5:59 PM, Thomas Petazzoni wrote:

Hello Benoit,

Le Fri, 23 Sep 2011 22:23:09 +0200,
Benoit Coussonb-cous...@ti.com  a écrit :


Add SoC specific map_io function to be used by the generic DT
board file. This is an intermediate step before having some
generic DT aware map_io function.

Signed-off-by: Benoit Coussonb-cous...@ti.com
Cc: Tony Lindgrent...@atomide.com


Do you know if some progress has been made on having a generic DT aware
map_io function, or is the per-SoC -map_io() function still the
recommended way of handling SoC having different requirements of static
mappings at boot time?


Mmm, Maybe I'm wrong, but I'm not sure people are really pushing to 
store that inside DT. But to be honest, I don't really know :-)


Tony might have some clue.

Regards,
Benoit
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 01/11] OMAP2+: Add SoC specific map_io functions

2012-05-14 Thread Nicolas Pitre
On Mon, 14 May 2012, Cousson, Benoit wrote:

 Salut Thomas,
 
 Sorry for the delay.
 
 On 5/4/2012 5:59 PM, Thomas Petazzoni wrote:
  Hello Benoit,
  
  Le Fri, 23 Sep 2011 22:23:09 +0200,
  Benoit Coussonb-cous...@ti.com  a écrit :
  
   Add SoC specific map_io function to be used by the generic DT
   board file. This is an intermediate step before having some
   generic DT aware map_io function.
   
   Signed-off-by: Benoit Coussonb-cous...@ti.com
   Cc: Tony Lindgrent...@atomide.com
  
  Do you know if some progress has been made on having a generic DT aware
  map_io function, or is the per-SoC -map_io() function still the
  recommended way of handling SoC having different requirements of static
  mappings at boot time?
 
 Mmm, Maybe I'm wrong, but I'm not sure people are really pushing to store that
 inside DT. But to be honest, I don't really know :-)

In general, static vs dynamic IO mappings are just some Linux 
implementation details.  This distinction does not belong in DT.


Nicolas


Re: [PATCH 01/11] OMAP2+: Add SoC specific map_io functions

2012-05-04 Thread Thomas Petazzoni
Hello Benoit,

Le Fri, 23 Sep 2011 22:23:09 +0200,
Benoit Cousson b-cous...@ti.com a écrit :

 Add SoC specific map_io function to be used by the generic DT
 board file. This is an intermediate step before having some
 generic DT aware map_io function.
 
 Signed-off-by: Benoit Cousson b-cous...@ti.com
 Cc: Tony Lindgren t...@atomide.com

Do you know if some progress has been made on having a generic DT aware
map_io function, or is the per-SoC -map_io() function still the
recommended way of handling SoC having different requirements of static
mappings at boot time?

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 01/11] OMAP2+: Add SoC specific map_io functions

2011-09-26 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [110923 15:27]:
 * Benoit Cousson b-cous...@ti.com [110923 12:50]:
  Add SoC specific map_io function to be used by the generic DT
  board file. This is an intermediate step before having some
  generic DT aware map_io function.
 
 Thanks, I'll apply this into cleanup branch and with the related
 conversion of board files.

Following replies contain the two related patches.

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 01/11] OMAP2+: Add SoC specific map_io functions

2011-09-23 Thread Benoit Cousson
Add SoC specific map_io function to be used by the generic DT
board file. This is an intermediate step before having some
generic DT aware map_io function.

Signed-off-by: Benoit Cousson b-cous...@ti.com
Cc: Tony Lindgren t...@atomide.com
---
 arch/arm/mach-omap2/common.c |   18 ++
 arch/arm/plat-omap/include/plat/common.h |4 
 2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c
index 3f20cbb..de61f15 100644
--- a/arch/arm/mach-omap2/common.c
+++ b/arch/arm/mach-omap2/common.c
@@ -56,6 +56,12 @@ void __init omap2_set_globals_242x(void)
 {
__omap2_set_globals(omap242x_globals);
 }
+
+void __init omap242x_map_io(void)
+{
+   omap2_set_globals_242x();
+   omap242x_map_common_io();
+}
 #endif
 
 #if defined(CONFIG_SOC_OMAP2430)
@@ -74,6 +80,12 @@ void __init omap2_set_globals_243x(void)
 {
__omap2_set_globals(omap243x_globals);
 }
+
+void __init omap243x_map_io(void)
+{
+   omap2_set_globals_243x();
+   omap243x_map_common_io();
+}
 #endif
 
 #if defined(CONFIG_ARCH_OMAP3)
@@ -138,5 +150,11 @@ void __init omap2_set_globals_443x(void)
omap2_set_globals_control(omap4_globals);
omap2_set_globals_prcm(omap4_globals);
 }
+
+void __init omap4_map_io(void)
+{
+   omap2_set_globals_443x();
+   omap44xx_map_common_io();
+}
 #endif
 
diff --git a/arch/arm/plat-omap/include/plat/common.h 
b/arch/arm/plat-omap/include/plat/common.h
index 5cac97e..abda2c7 100644
--- a/arch/arm/plat-omap/include/plat/common.h
+++ b/arch/arm/plat-omap/include/plat/common.h
@@ -83,7 +83,11 @@ void omap2_set_globals_sdrc(struct omap_globals *);
 void omap2_set_globals_control(struct omap_globals *);
 void omap2_set_globals_prcm(struct omap_globals *);
 
+void omap242x_map_io(void);
+void omap243x_map_io(void);
 void omap3_map_io(void);
+void omap4_map_io(void);
+
 
 /**
  * omap_test_timeout - busy-loop, testing a condition
-- 
1.7.0.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 01/11] OMAP2+: Add SoC specific map_io functions

2011-09-23 Thread Tony Lindgren
* Benoit Cousson b-cous...@ti.com [110923 12:50]:
 Add SoC specific map_io function to be used by the generic DT
 board file. This is an intermediate step before having some
 generic DT aware map_io function.

Thanks, I'll apply this into cleanup branch and with the related
conversion of board files.

Regards,

Tony
 
 Signed-off-by: Benoit Cousson b-cous...@ti.com
 Cc: Tony Lindgren t...@atomide.com
 ---
  arch/arm/mach-omap2/common.c |   18 ++
  arch/arm/plat-omap/include/plat/common.h |4 
  2 files changed, 22 insertions(+), 0 deletions(-)
 
 diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c
 index 3f20cbb..de61f15 100644
 --- a/arch/arm/mach-omap2/common.c
 +++ b/arch/arm/mach-omap2/common.c
 @@ -56,6 +56,12 @@ void __init omap2_set_globals_242x(void)
  {
   __omap2_set_globals(omap242x_globals);
  }
 +
 +void __init omap242x_map_io(void)
 +{
 + omap2_set_globals_242x();
 + omap242x_map_common_io();
 +}
  #endif
  
  #if defined(CONFIG_SOC_OMAP2430)
 @@ -74,6 +80,12 @@ void __init omap2_set_globals_243x(void)
  {
   __omap2_set_globals(omap243x_globals);
  }
 +
 +void __init omap243x_map_io(void)
 +{
 + omap2_set_globals_243x();
 + omap243x_map_common_io();
 +}
  #endif
  
  #if defined(CONFIG_ARCH_OMAP3)
 @@ -138,5 +150,11 @@ void __init omap2_set_globals_443x(void)
   omap2_set_globals_control(omap4_globals);
   omap2_set_globals_prcm(omap4_globals);
  }
 +
 +void __init omap4_map_io(void)
 +{
 + omap2_set_globals_443x();
 + omap44xx_map_common_io();
 +}
  #endif
  
 diff --git a/arch/arm/plat-omap/include/plat/common.h 
 b/arch/arm/plat-omap/include/plat/common.h
 index 5cac97e..abda2c7 100644
 --- a/arch/arm/plat-omap/include/plat/common.h
 +++ b/arch/arm/plat-omap/include/plat/common.h
 @@ -83,7 +83,11 @@ void omap2_set_globals_sdrc(struct omap_globals *);
  void omap2_set_globals_control(struct omap_globals *);
  void omap2_set_globals_prcm(struct omap_globals *);
  
 +void omap242x_map_io(void);
 +void omap243x_map_io(void);
  void omap3_map_io(void);
 +void omap4_map_io(void);
 +
  
  /**
   * omap_test_timeout - busy-loop, testing a condition
 -- 
 1.7.0.4
 
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html