Skip to contentSkip to conversation

OMAP4: HWMOD: Do omap_hwmod_late_init for OMAP4

PATCH In review Charulatha V 3 participants 4 messages Aug 6, 2010 – Aug 9, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP4: HWMOD: Do omap_hwmod_late_init for OMAP4

This patch includes "cpu_is" check for omap44xx cpu inorder to do omap_hwmod_late_init() without which hwmods initialization does not happen for omap4.

---
 arch/arm/mach-omap2/io.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/io.c +1 -1
index b89e678..9b15f46 100644
@@ -345,7 +345,7 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0,
 #ifndef CONFIG_PM_RUNTIME
 	skip_setup_idle = 1;
 #endif
-	if (cpu_is_omap24xx() || cpu_is_omap34xx())   /* FIXME: OMAP4 */
+	if (cpu_is_omap24xx() || cpu_is_omap34xx() || cpu_is_omap44xx())
 		omap_hwmod_late_init(skip_setup_idle);
 
 	if (cpu_is_omap24xx() || cpu_is_omap34xx()) {
Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 26 lines

-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Varadarajan, Charulatha
Sent: Friday, August 06, 2010 6:01 PM
To: [email protected]
Cc: [email protected]; [email protected]; Cousson, Benoit; Nayak, Rajendra; Varadarajan, Charulatha; Basak, Partha
Subject: [PATCH] OMAP4: HWMOD: Do omap_hwmod_late_init for OMAP4

This patch includes "cpu_is" check for omap44xx cpu inorder to do omap_hwmod_late_init() without which hwmods initialization does not happen for omap4.

---
 arch/arm/mach-omap2/io.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/io.c +0 -0
index b89e678..9b15f46 100644

arch/arm/mach-omap2/io.c void __init omap2_init_common_hw(struct · line 349

Quoted 6 lines
arch/arm/mach-omap2/io.c +1 -1
@@ -345,7 +345,7 @@ void __init omap2_init_common_hw(struct
 omap_sdrc_params *sdrc_cs0,
 #ifndef CONFIG_PM_RUNTIME
 	skip_setup_idle = 1;
 #endif
-	if (cpu_is_omap24xx() || cpu_is_omap34xx())   /* FIXME: OMAP4 */
+	if (cpu_is_omap24xx() || cpu_is_omap34xx() || cpu_is_omap44xx())

Rather use now ....

	if (cpu_class_is_omap2())
Quoted 10 lines
arch/arm/mach-omap2/io.c +0 -0
 		omap_hwmod_late_init(skip_setup_idle);
 

if (cpu_is_omap24xx() || cpu_is_omap34xx()) {
--
1.6.3.3

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

#2 lore raw
In reply to Charulatha V

Hi Charu,

Quoted 15 lines · Charulatha

This patch includes "cpu_is" check for omap44xx cpu inorder to do omap_hwmod_late_init() without which hwmods initialization does not happen for omap4.

---
  arch/arm/mach-omap2/io.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/io.c +0 -0
index b89e678..9b15f46 100644

arch/arm/mach-omap2/io.c void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, · line 351

Quoted 8 lines
arch/arm/mach-omap2/io.c +1 -1
@@ -345,7 +345,7 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0,
  #ifndef CONFIG_PM_RUNTIME
  	skip_setup_idle = 1;
  #endif
-	if (cpu_is_omap24xx() || cpu_is_omap34xx())   /* FIXME: OMAP4 */
+	if (cpu_is_omap24xx() || cpu_is_omap34xx() || cpu_is_omap44xx())
  		omap_hwmod_late_init(skip_setup_idle);
 
  	if (cpu_is_omap24xx() || cpu_is_omap34xx()) {

This is already done in this patch:
[PATCH v3 1/7] OMAP4: hwmod: Add initial data for OMAP4430 ES1 & ES2
https://patchwork.kernel.org/patch/117347/

Benoit

#3 lore raw
Quoted 36 lines

-----Original Message-----
From: Cousson, Benoit
Sent: Friday, August 06, 2010 6:06 PM
To: Varadarajan, Charulatha
Cc: [email protected]; [email protected]; [email protected]; Nayak, Rajendra; Basak, Partha
Subject: Re: [PATCH] OMAP4: HWMOD: Do omap_hwmod_late_init for OMAP4

Hi Charu,

arch/arm/mach-omap2/io.c void __init omap2_init_common_hw(struct

Quoted 15 lines · Charulatha

This patch includes "cpu_is" check for omap44xx cpu inorder to do omap_hwmod_late_init() without which hwmods initialization does not happen for omap4.

---
  arch/arm/mach-omap2/io.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/io.c +0 -0
index b89e678..9b15f46 100644
@@ -345,7 +345,7 @@ void __init omap2_init_common_hw(struct 

omap_sdrc_params *sdrc_cs0,

Quoted 7 lines
arch/arm/mach-omap2/io.c +1 -1
  #ifndef CONFIG_PM_RUNTIME
  	skip_setup_idle = 1;
  #endif
-	if (cpu_is_omap24xx() || cpu_is_omap34xx())   /* FIXME: OMAP4 */
+	if (cpu_is_omap24xx() || cpu_is_omap34xx() || cpu_is_omap44xx())
  		omap_hwmod_late_init(skip_setup_idle);
 
Quoted 5 lines

arch/arm/mach-omap2/io.c void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, · line 351

Quoted 1 line
arch/arm/mach-omap2/io.c +0 -0
  	if (cpu_is_omap24xx() || cpu_is_omap34xx()) {

This is already done in this patch:
[PATCH v3 1/7] OMAP4: hwmod: Add initial data for OMAP4430 ES1 & ES2
https://patchwork.kernel.org/patch/117347/

Okay. I found omap_hwmod_late_init() call missing for OMAP4 in origin/pm-wip/hwmods-omap4 and sent this patch without noticing your above mentioned patch. Please ignore this patch.

Quoted 3 lines

Benoit