RE: [PATCH] [RFC] omap: 3630: default cpu_is_omap3630 to zero

2009-10-13 Thread Shilimkar, Santosh
Has anybody tried building latest linux-omap master ? The build is breaking for 
other OMAP processors.

CC  arch/arm/mach-omap2/id.o
arch/arm/mach-omap2/id.c: In function 'omap3_cpuinfo':
arch/arm/mach-omap2/id.c:269: error: implicit declaration of function 
'cpu_is_omap3630'
make[1]: *** [arch/arm/mach-omap2/id.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2

This is because of  0a9b95f21995aa3cdda82ebc6e77b0b2ab401861
omap: Introduce OMAP3630

Below patch from Vikram fixes the build break.

 -Original Message-
 From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap-
 ow...@vger.kernel.org] On Behalf Of Pandita, Vikram
 Sent: Tuesday, October 13, 2009 2:38 AM
 To: Menon, Nishanth
 Cc: linux-omap@vger.kernel.org
 Subject: RE: [PATCH] [RFC] omap: 3630: default cpu_is_omap3630 to zero
 
 
 
 -Original Message-
 From: Menon, Nishanth
 Sent: Monday, October 12, 2009 4:05 PM
 To: Pandita, Vikram
 Cc: linux-omap@vger.kernel.org
 Subject: RE: [PATCH] [RFC] omap: 3630: default cpu_is_omap3630 to zero
 
  -Original Message-
  From: Pandita, Vikram
  Sent: Monday, October 12, 2009 3:51 PM
 
  make default cpu_is_omap3630() return zero
 
  Signed-off-by: Vikram Pandita vikram.pand...@ti.com
  ---
   arch/arm/plat-omap/include/mach/cpu.h |2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)
 
  diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-
  omap/include/mach/cpu.h
  index da9e8f8..940946e 100644
  --- a/arch/arm/plat-omap/include/mach/cpu.h
  +++ b/arch/arm/plat-omap/include/mach/cpu.h
  @@ -322,6 +322,7 @@ IS_OMAP_TYPE(3430, 0x3430)
   #define cpu_is_omap2423() 0
   #define cpu_is_omap2430() 0
   #define cpu_is_omap3430() 0
  +#define cpu_is_omap3630() 0
 
   /*
* Whether we have MULTI_OMAP1 or not, we still need to distinguish
  @@ -386,6 +387,7 @@ IS_OMAP_TYPE(3430, 0x3430)
 (omap3_has_sgx())  \
 (!omap3_has_iva()))
   # define cpu_is_omap3530  (cpu_is_omap3430())
  +# undef cpu_is_omap3630()
   # define cpu_is_omap3630()is_omap363x()
   #endif
 Dumb question: why is this needed? cpu_is_omap3530,15,25,03 don't seems
 to declare these..
 
 If in some file, you want to distinguish between 3630 vs 3430,
 and the build is for 3430 only, then cpu_is_omap3630() should return 0.
 
 Eg: opp table allocation based on run time check
 
 Omap35xx may also need it for the opp in future I guess.

--
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] [RFC] omap: 3630: default cpu_is_omap3630 to zero

2009-10-13 Thread Nishanth Menon
Shilimkar, Santosh said the following on 10/13/2009 05:03 AM:
 Has anybody tried building latest linux-omap master ? The build is breaking 
 for other OMAP processors.

 CC  arch/arm/mach-omap2/id.o
 arch/arm/mach-omap2/id.c: In function 'omap3_cpuinfo':
 arch/arm/mach-omap2/id.c:269: error: implicit declaration of function 
 'cpu_is_omap3630'
 make[1]: *** [arch/arm/mach-omap2/id.o] Error 1
 make: *** [arch/arm/mach-omap2] Error 2

 This is because of  0a9b95f21995aa3cdda82ebc6e77b0b2ab401861
   omap: Introduce OMAP3630

 Below patch from Vikram fixes the build break.
   
ouch.. my bad.. thanks for answering my question. I am guessing we need
this coz of is_omap3630() translation..
Ack for the patch from me.
Regards,
Nishanth Menon
--
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] [RFC] omap: 3630: default cpu_is_omap3630 to zero

2009-10-13 Thread Tony Lindgren
* Nishanth Menon menon.nisha...@gmail.com [091013 03:44]:
 Shilimkar, Santosh said the following on 10/13/2009 05:03 AM:
  Has anybody tried building latest linux-omap master ? The build is breaking 
  for other OMAP processors.
 
  CC  arch/arm/mach-omap2/id.o
  arch/arm/mach-omap2/id.c: In function 'omap3_cpuinfo':
  arch/arm/mach-omap2/id.c:269: error: implicit declaration of function 
  'cpu_is_omap3630'
  make[1]: *** [arch/arm/mach-omap2/id.o] Error 1
  make: *** [arch/arm/mach-omap2] Error 2
 
  This is because of  0a9b95f21995aa3cdda82ebc6e77b0b2ab401861
  omap: Introduce OMAP3630
 
  Below patch from Vikram fixes the build break.

 ouch.. my bad.. thanks for answering my question. I am guessing we need
 this coz of is_omap3630() translation..
 Ack for the patch from me.

To me it looks like all the 35x defines need the same treatment.

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


Re: [PATCH] [RFC] omap: 3630: default cpu_is_omap3630 to zero

2009-10-13 Thread Tony Lindgren
* Vikram Pandita vikram.pand...@ti.com [091012 14:31]:
 make default cpu_is_omap3630() return zero
 
 Signed-off-by: Vikram Pandita vikram.pand...@ti.com
 ---
  arch/arm/plat-omap/include/mach/cpu.h |2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)
 
 diff --git a/arch/arm/plat-omap/include/mach/cpu.h 
 b/arch/arm/plat-omap/include/mach/cpu.h
 index da9e8f8..940946e 100644
 --- a/arch/arm/plat-omap/include/mach/cpu.h
 +++ b/arch/arm/plat-omap/include/mach/cpu.h
 @@ -322,6 +322,7 @@ IS_OMAP_TYPE(3430, 0x3430)
  #define cpu_is_omap2423()0
  #define cpu_is_omap2430()0
  #define cpu_is_omap3430()0
 +#define cpu_is_omap3630()0
  
  /*
   * Whether we have MULTI_OMAP1 or not, we still need to distinguish
 @@ -386,6 +387,7 @@ IS_OMAP_TYPE(3430, 0x3430)
   (omap3_has_sgx())  \
   (!omap3_has_iva()))
  # define cpu_is_omap3530 (cpu_is_omap3430())
 +# undef cpu_is_omap3630()
  # define cpu_is_omap3630()   is_omap363x()
  #endif

This undef should be just undef cpu_is_omap3630 instead of
cpu_is_omap3630().

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] omap: Fix 35xx detection (Re: [PATCH] [RFC] omap: 3630: default cpu_is_omap3630 to zero)

2009-10-13 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [091013 10:18]:
 * Vikram Pandita vikram.pand...@ti.com [091012 14:31]:
  make default cpu_is_omap3630() return zero
  
  Signed-off-by: Vikram Pandita vikram.pand...@ti.com
  ---
   arch/arm/plat-omap/include/mach/cpu.h |2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)
  
  diff --git a/arch/arm/plat-omap/include/mach/cpu.h 
  b/arch/arm/plat-omap/include/mach/cpu.h
  index da9e8f8..940946e 100644
  --- a/arch/arm/plat-omap/include/mach/cpu.h
  +++ b/arch/arm/plat-omap/include/mach/cpu.h
  @@ -322,6 +322,7 @@ IS_OMAP_TYPE(3430, 0x3430)
   #define cpu_is_omap2423()  0
   #define cpu_is_omap2430()  0
   #define cpu_is_omap3430()  0
  +#define cpu_is_omap3630()  0
   
   /*
* Whether we have MULTI_OMAP1 or not, we still need to distinguish
  @@ -386,6 +387,7 @@ IS_OMAP_TYPE(3430, 0x3430)
  (omap3_has_sgx())  \
  (!omap3_has_iva()))
   # define cpu_is_omap3530   (cpu_is_omap3430())
  +# undef cpu_is_omap3630()
   # define cpu_is_omap3630() is_omap363x()
   #endif
 
 This undef should be just undef cpu_is_omap3630 instead of
 cpu_is_omap3630().

Also looking at the 35xx detection code, should it not be like this?


omap: Fix 35xx detection

Should use  instead of 

Signed-off-by: Tony Lindgren t...@atomide.com

diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-omap/include/mach/cpu.h
index 111f29a..a67a95c 100644
--- a/arch/arm/plat-omap/include/mach/cpu.h
+++ b/arch/arm/plat-omap/include/mach/cpu.h
@@ -377,14 +377,14 @@ IS_OMAP_TYPE(3430, 0x3430)
 # undef cpu_is_omap3525
 # undef cpu_is_omap3530
 # define cpu_is_omap3430()		is_omap3430()
-# define cpu_is_omap3503		(cpu_is_omap3430() 		\
-		(!omap3_has_iva()) 	\
+# define cpu_is_omap3503		(cpu_is_omap3430() 		\
+		(!omap3_has_iva()) 	\
 		(!omap3_has_sgx()))
-# define cpu_is_omap3515		(cpu_is_omap3430() 		\
-		(omap3_has_iva()) 	\
+# define cpu_is_omap3515		(cpu_is_omap3430() 		\
+		(omap3_has_iva()) 	\
 		(!omap3_has_sgx()))
-# define cpu_is_omap3525		(cpu_is_omap3430() 		\
-		(omap3_has_sgx()) 	\
+# define cpu_is_omap3525		(cpu_is_omap3430() 		\
+		(omap3_has_sgx()) 	\
 		(!omap3_has_iva()))
 # define cpu_is_omap3530		(cpu_is_omap3430())
 # undef cpu_is_omap3630


[PATCH] omap: Fix cpu_is_omap35xx default defines (Re: [PATCH] [RFC] omap: 3630: default cpu_is_omap3630 to zero)

2009-10-13 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [091013 10:15]:
 * Nishanth Menon menon.nisha...@gmail.com [091013 03:44]:
  Shilimkar, Santosh said the following on 10/13/2009 05:03 AM:
   Has anybody tried building latest linux-omap master ? The build is 
   breaking for other OMAP processors.
  
   CC  arch/arm/mach-omap2/id.o
   arch/arm/mach-omap2/id.c: In function 'omap3_cpuinfo':
   arch/arm/mach-omap2/id.c:269: error: implicit declaration of function 
   'cpu_is_omap3630'
   make[1]: *** [arch/arm/mach-omap2/id.o] Error 1
   make: *** [arch/arm/mach-omap2] Error 2
  
   This is because of  0a9b95f21995aa3cdda82ebc6e77b0b2ab401861
 omap: Introduce OMAP3630
  
   Below patch from Vikram fixes the build break.
 
  ouch.. my bad.. thanks for answering my question. I am guessing we need
  this coz of is_omap3630() translation..
  Ack for the patch from me.
 
 To me it looks like all the 35x defines need the same treatment.

And here's the patch to do that.
omap: Fix cpu_is_omap35xx default defines

Otherwise compilation on other processors
will fail if these are used in the code.

Signed-off-by: Tony Lindgren t...@atomide.com

diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-omap/include/mach/cpu.h
index a67a95c..770cb60 100644
--- a/arch/arm/plat-omap/include/mach/cpu.h
+++ b/arch/arm/plat-omap/include/mach/cpu.h
@@ -322,6 +322,10 @@ IS_OMAP_TYPE(3430, 0x3430)
 #define cpu_is_omap2423()		0
 #define cpu_is_omap2430()		0
 #define cpu_is_omap3430()		0
+#define cpu_is_omap3503()		0
+#define cpu_is_omap3515()		0
+#define cpu_is_omap3525()		0
+#define cpu_is_omap3530()		0
 #define cpu_is_omap3630()		0
 
 /*


Re: [PATCH] omap: Fix 35xx detection (Re: [PATCH] [RFC] omap: 3630: default cpu_is_omap3630 to zero)

2009-10-13 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [091013 11:01]:
 * Tony Lindgren t...@atomide.com [091013 10:18]:
  * Vikram Pandita vikram.pand...@ti.com [091012 14:31]:
   make default cpu_is_omap3630() return zero
   
   Signed-off-by: Vikram Pandita vikram.pand...@ti.com
   ---
arch/arm/plat-omap/include/mach/cpu.h |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
   
   diff --git a/arch/arm/plat-omap/include/mach/cpu.h 
   b/arch/arm/plat-omap/include/mach/cpu.h
   index da9e8f8..940946e 100644
   --- a/arch/arm/plat-omap/include/mach/cpu.h
   +++ b/arch/arm/plat-omap/include/mach/cpu.h
   @@ -322,6 +322,7 @@ IS_OMAP_TYPE(3430, 0x3430)
#define cpu_is_omap2423()0
#define cpu_is_omap2430()0
#define cpu_is_omap3430()0
   +#define cpu_is_omap3630()0

/*
 * Whether we have MULTI_OMAP1 or not, we still need to distinguish
   @@ -386,6 +387,7 @@ IS_OMAP_TYPE(3430, 0x3430)
 (omap3_has_sgx())  \
 (!omap3_has_iva()))
# define cpu_is_omap3530 (cpu_is_omap3430())
   +# undef cpu_is_omap3630()
# define cpu_is_omap3630()   is_omap363x()
#endif
  
  This undef should be just undef cpu_is_omap3630 instead of
  cpu_is_omap3630().
 
 Also looking at the 35xx detection code, should it not be like this?

I've merged all these fixes into the 35xx and 36xx detection patches
in omap for-next branch, can you guys please check?

Regards,

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


RE: [PATCH] [RFC] omap: 3630: default cpu_is_omap3630 to zero

2009-10-12 Thread Pandita, Vikram


-Original Message-
From: Menon, Nishanth
Sent: Monday, October 12, 2009 4:05 PM
To: Pandita, Vikram
Cc: linux-omap@vger.kernel.org
Subject: RE: [PATCH] [RFC] omap: 3630: default cpu_is_omap3630 to zero

 -Original Message-
 From: Pandita, Vikram
 Sent: Monday, October 12, 2009 3:51 PM

 make default cpu_is_omap3630() return zero

 Signed-off-by: Vikram Pandita vikram.pand...@ti.com
 ---
  arch/arm/plat-omap/include/mach/cpu.h |2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

 diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-
 omap/include/mach/cpu.h
 index da9e8f8..940946e 100644
 --- a/arch/arm/plat-omap/include/mach/cpu.h
 +++ b/arch/arm/plat-omap/include/mach/cpu.h
 @@ -322,6 +322,7 @@ IS_OMAP_TYPE(3430, 0x3430)
  #define cpu_is_omap2423()   0
  #define cpu_is_omap2430()   0
  #define cpu_is_omap3430()   0
 +#define cpu_is_omap3630()   0

  /*
   * Whether we have MULTI_OMAP1 or not, we still need to distinguish
 @@ -386,6 +387,7 @@ IS_OMAP_TYPE(3430, 0x3430)
  (omap3_has_sgx())  \
  (!omap3_has_iva()))
  # define cpu_is_omap3530(cpu_is_omap3430())
 +# undef cpu_is_omap3630()
  # define cpu_is_omap3630()  is_omap363x()
  #endif
Dumb question: why is this needed? cpu_is_omap3530,15,25,03 don't seems to 
declare these..

If in some file, you want to distinguish between 3630 vs 3430, 
and the build is for 3430 only, then cpu_is_omap3630() should return 0.

Eg: opp table allocation based on run time check

Omap35xx may also need it for the opp in future I guess.



Regards,
Nishanth Menon

--
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] [RFC] omap: 3630: default cpu_is_omap3630 to zero

2009-10-12 Thread Menon, Nishanth

 -Original Message-
 From: Pandita, Vikram
 Sent: Monday, October 12, 2009 4:08 PM
 
  -Original Message-
  From: Pandita, Vikram
  Sent: Monday, October 12, 2009 3:51 PM
 
  make default cpu_is_omap3630() return zero
 
  Signed-off-by: Vikram Pandita vikram.pand...@ti.com
  ---
   arch/arm/plat-omap/include/mach/cpu.h |2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)
 
  diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-
  omap/include/mach/cpu.h
  index da9e8f8..940946e 100644
  --- a/arch/arm/plat-omap/include/mach/cpu.h
  +++ b/arch/arm/plat-omap/include/mach/cpu.h
  @@ -322,6 +322,7 @@ IS_OMAP_TYPE(3430, 0x3430)
   #define cpu_is_omap2423() 0
   #define cpu_is_omap2430() 0
   #define cpu_is_omap3430() 0
  +#define cpu_is_omap3630() 0
 
   /*
* Whether we have MULTI_OMAP1 or not, we still need to distinguish
  @@ -386,6 +387,7 @@ IS_OMAP_TYPE(3430, 0x3430)
 (omap3_has_sgx())  \
 (!omap3_has_iva()))
   # define cpu_is_omap3530  (cpu_is_omap3430())
  +# undef cpu_is_omap3630()
   # define cpu_is_omap3630()is_omap363x()
   #endif
 Dumb question: why is this needed? cpu_is_omap3530,15,25,03 don't seems
 to declare these..
 
 If in some file, you want to distinguish between 3630 vs 3430,
 and the build is for 3430 only, then cpu_is_omap3630() should return 0.
 
 Eg: opp table allocation based on run time check
 
 Omap35xx may also need it for the opp in future I guess.

Could you add them in a single patch please?

Regards,
Nishanth Menon
--
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