Re: [PATCH 12/13] ARM: OMAP5: Add the build support

2012-05-08 Thread Cousson, Benoit

Hi Tony,

On 5/7/2012 7:37 PM, Tony Lindgren wrote:

* R, Sricharanr.sricha...@ti.com  [120506 20:39]:

+config MACH_OMAP5_SEVM
+ bool OMAP5 sevm Board
+ depends on ARCH_OMAP5
+
  config OMAP3_EMU
   bool OMAP3 debugging peripherals
   depends on ARCH_OMAP3


No need for it here either. Actually, I think this whole chunk
can be now left out since it's DT based?
he

  ok, but the concern here was that without this macro
  the print from compress and subsequently early
prints appear broken.

machine_is_omap5_sevm becomes zero without this config and
machine_is_ is used by the macro _DEBUG_LL_ENTRY
uncompress.h.


Ah I see.


Mmm, still, I guess this mechanism should be deprecated with DT?
We cannot keep creating fake board entry since we are not supposed to 
have MACHINE_ID anymore.
That will break DEBUG_LL for sure, but we knew about that current 
limitation with DT.


The point is that we should fix the code to stop relying on a machine id 
going forward.

And maybe we can parse the FDT at that time?

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 12/13] ARM: OMAP5: Add the build support

2012-05-08 Thread Tony Lindgren
* Cousson, Benoit b-cous...@ti.com [120508 02:23]:
 Hi Tony,
 
 On 5/7/2012 7:37 PM, Tony Lindgren wrote:
 * R, Sricharanr.sricha...@ti.com  [120506 20:39]:
 +config MACH_OMAP5_SEVM
 + bool OMAP5 sevm Board
 + depends on ARCH_OMAP5
 +
   config OMAP3_EMU
bool OMAP3 debugging peripherals
depends on ARCH_OMAP3
 
 No need for it here either. Actually, I think this whole chunk
 can be now left out since it's DT based?
 he
   ok, but the concern here was that without this macro
   the print from compress and subsequently early
 prints appear broken.
 
 machine_is_omap5_sevm becomes zero without this config and
 machine_is_ is used by the macro _DEBUG_LL_ENTRY
 uncompress.h.
 
 Ah I see.
 
 Mmm, still, I guess this mechanism should be deprecated with DT?
 We cannot keep creating fake board entry since we are not supposed
 to have MACHINE_ID anymore.
 That will break DEBUG_LL for sure, but we knew about that current
 limitation with DT.

For most usecases for DEBUG_LL we can get away in two steps:

1. Debug output for uncompress code based on DT parsing (I think
   this is already there)

2. Early console/earlyprintk parsed from DT that gets set up in
   init_early

This should be enough for most users, then the people who need
to debug early kernel code until init_early is done can patch
it in manually.
 
 The point is that we should fix the code to stop relying on a
 machine id going forward.
 And maybe we can parse the FDT at that time?

Yes that should be trivial for most use cases, we just need
to initialize the earlycon/earlyprintk based on the DT.

See kernel/early_printk.c for more info. We just need to
set up the hardware specific function for early_write instead
of printch.

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 12/13] ARM: OMAP5: Add the build support

2012-05-07 Thread Tony Lindgren
* R, Sricharan r.sricha...@ti.com [120506 20:39]:
  +config MACH_OMAP5_SEVM
  +     bool OMAP5 sevm Board
  +     depends on ARCH_OMAP5
  +
   config OMAP3_EMU
        bool OMAP3 debugging peripherals
        depends on ARCH_OMAP3
 
  No need for it here either. Actually, I think this whole chunk
  can be now left out since it's DT based?
 he
  ok, but the concern here was that without this macro
  the print from compress and subsequently early
 prints appear broken.
 
 machine_is_omap5_sevm becomes zero without this config and
 machine_is_ is used by the macro _DEBUG_LL_ENTRY
 uncompress.h.

Ah I see.

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 12/13] ARM: OMAP5: Add the build support

2012-05-06 Thread R, Sricharan
Hi Tony,

 -     select NEON if ARCH_OMAP3 || ARCH_OMAP4
 +     select NEON if ARCH_OMAP3 || ARCH_OMAP4 || ARCH_OMAP5
       select SERIAL_OMAP
       select SERIAL_OMAP_CONSOLE
       select I2C

 If we add CONFIG_SOC_OMAP3PLUS and CONFIG_SOC_OMAP4PLUS, then
 this becomes more future proof with select NEON if SOC_OMAP3PLUS.

 ok. will change this.

 +config ARCH_OMAP5
 +     bool TI OMAP5
 +     depends on ARCH_OMAP2PLUS
 +     select CPU_V7
 +     select ARM_GIC
 +     select HAVE_SMP

 No need to have depends on ARCH_OMAP2PLUS, it's all inside
 if ARCH_OMAP2PLUS anyways. I removed those already once, but that
 had to be reverted because the patch was doing other things too
 that did not work out too well..
ll
 ok, will remove this then.

 +config MACH_OMAP5_SEVM
 +     bool OMAP5 sevm Board
 +     depends on ARCH_OMAP5
 +
  config OMAP3_EMU
       bool OMAP3 debugging peripherals
       depends on ARCH_OMAP3

 No need for it here either. Actually, I think this whole chunk
 can be now left out since it's DT based?
he
 ok, but the concern here was that without this macro
 the print from compress and subsequently early
prints appear broken.

machine_is_omap5_sevm becomes zero without this config and
machine_is_ is used by the macro _DEBUG_LL_ENTRY
uncompress.h.

Thanks,
 Sricharan
--
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 12/13] ARM: OMAP5: Add the build support

2012-05-04 Thread Tony Lindgren
* R Sricharan r.sricha...@ti.com [120503 00:30]:
 --- a/arch/arm/mach-omap2/Kconfig
 +++ b/arch/arm/mach-omap2/Kconfig
 @@ -9,7 +9,7 @@ config ARCH_OMAP2PLUS_TYPICAL
   select REGULATOR
   select PM_RUNTIME
   select VFP
 - select NEON if ARCH_OMAP3 || ARCH_OMAP4
 + select NEON if ARCH_OMAP3 || ARCH_OMAP4 || ARCH_OMAP5
   select SERIAL_OMAP
   select SERIAL_OMAP_CONSOLE
   select I2C

If we add CONFIG_SOC_OMAP3PLUS and CONFIG_SOC_OMAP4PLUS, then
this becomes more future proof with select NEON if SOC_OMAP3PLUS.

 @@ -55,6 +55,13 @@ config ARCH_OMAP4
   select USB_ARCH_HAS_EHCI if USB_SUPPORT
   select ARM_CPU_SUSPEND if PM
  
 +config ARCH_OMAP5
 + bool TI OMAP5
 + depends on ARCH_OMAP2PLUS
 + select CPU_V7
 + select ARM_GIC
 + select HAVE_SMP

No need to have depends on ARCH_OMAP2PLUS, it's all inside
if ARCH_OMAP2PLUS anyways. I removed those already once, but that
had to be reverted because the patch was doing other things too
that did not work out too well..

 @@ -343,6 +350,10 @@ config MACH_OMAP4_PANDA
   select OMAP_PACKAGE_CBS
   select REGULATOR_FIXED_VOLTAGE if REGULATOR
  
 +config MACH_OMAP5_SEVM
 + bool OMAP5 sevm Board
 + depends on ARCH_OMAP5
 +
  config OMAP3_EMU
   bool OMAP3 debugging peripherals
   depends on ARCH_OMAP3

No need for it here either. Actually, I think this whole chunk
can be now left out since it's DT based?

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


[PATCH 12/13] ARM: OMAP5: Add the build support

2012-05-03 Thread R Sricharan
Adding the build support required for OMAP5 soc
in to omap2+ config.

Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com
Signed-off-by: R Sricharan r.sricha...@ti.com
---
 arch/arm/configs/omap2plus_defconfig |2 ++
 arch/arm/mach-omap2/Kconfig  |   13 -
 arch/arm/plat-omap/Kconfig   |4 ++--
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/arch/arm/configs/omap2plus_defconfig 
b/arch/arm/configs/omap2plus_defconfig
index d5f00d7..8beba1a 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -234,3 +234,5 @@ CONFIG_CRC_T10DIF=y
 CONFIG_CRC_ITU_T=y
 CONFIG_CRC7=y
 CONFIG_LIBCRC32C=y
+CONFIG_ARCH_OMAP5=y
+CONFIG_MACH_OMAP5_SEVM=y
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 8141b76..b50541a 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -9,7 +9,7 @@ config ARCH_OMAP2PLUS_TYPICAL
select REGULATOR
select PM_RUNTIME
select VFP
-   select NEON if ARCH_OMAP3 || ARCH_OMAP4
+   select NEON if ARCH_OMAP3 || ARCH_OMAP4 || ARCH_OMAP5
select SERIAL_OMAP
select SERIAL_OMAP_CONSOLE
select I2C
@@ -55,6 +55,13 @@ config ARCH_OMAP4
select USB_ARCH_HAS_EHCI if USB_SUPPORT
select ARM_CPU_SUSPEND if PM
 
+config ARCH_OMAP5
+   bool TI OMAP5
+   depends on ARCH_OMAP2PLUS
+   select CPU_V7
+   select ARM_GIC
+   select HAVE_SMP
+
 comment OMAP Core Type
depends on ARCH_OMAP2
 
@@ -343,6 +350,10 @@ config MACH_OMAP4_PANDA
select OMAP_PACKAGE_CBS
select REGULATOR_FIXED_VOLTAGE if REGULATOR
 
+config MACH_OMAP5_SEVM
+   bool OMAP5 sevm Board
+   depends on ARCH_OMAP5
+
 config OMAP3_EMU
bool OMAP3 debugging peripherals
depends on ARCH_OMAP3
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig
index ad95c7a..dcfb506 100644
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -29,7 +29,7 @@ config ARCH_OMAP2PLUS
select USE_OF
select PROC_DEVICETREE if PROC_FS
help
- Systems based on OMAP2, OMAP3 or OMAP4
+ Systems based on OMAP2, OMAP3, OMAP4 or OMAP5
 
 endchoice
 
@@ -150,7 +150,7 @@ config OMAP_32K_TIMER
  This timer saves power compared to the OMAP_MPU_TIMER, and has
  support for no tick during idle. The 32KHz timer provides less
  intra-tick resolution than OMAP_MPU_TIMER. The 32KHz timer is
- currently only available for OMAP16XX, 24XX, 34XX and OMAP4.
+ currently only available for OMAP16XX, 24XX, 34XX and OMAP4/5.
 
 config OMAP3_L2_AUX_SECURE_SAVE_RESTORE
bool OMAP3 HS/EMU save and restore for L2 AUX control register
-- 
1.7.1

--
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