All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] AM/DM37x: DSS mux configuration for >Rev-B processor cards
@ 2011-01-24 14:34 hvaibhav
       [not found] ` <AANLkTikRn4dz_u0CGL5jrsoAoQrF03wp_DBs7XbYAWXa@mail.gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: hvaibhav @ 2011-01-24 14:34 UTC (permalink / raw)
  To: linux-omap; +Cc: tomi.valkeinen, tony, Vaibhav Hiremath

From: Vaibhav Hiremath <hvaibhav@ti.com>

To support higher resolution (e.g 720P@60), on OMAP36x (AM/DM37x)
DSS data bus has been muxed with sys_boot pins.

DSS[18-23] => DSS[0-5]
sys_boot[0,1 3-5] => DSS[18-23]

EVM revision >=RevB adopt this mux changes, which is going to ship outside.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
---
 arch/arm/mach-omap2/board-omap3evm.c |   34 ++++++++++++++++++++++++++++++++--
 1 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index 107b1f8..1b8a806 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -693,7 +693,7 @@ static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = {
 };
 
 #ifdef CONFIG_OMAP_MUX
-static struct omap_board_mux board_mux[] __initdata = {
+static struct omap_board_mux omap35x_board_mux[] __initdata = {
 	OMAP3_MUX(SYS_NIRQ, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP |
 				OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_OUTPUT_LOW |
 				OMAP_PIN_OFF_WAKEUPENABLE),
@@ -701,6 +701,32 @@ static struct omap_board_mux board_mux[] __initdata = {
 				OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_OUTPUT_LOW),
 	{ .reg_offset = OMAP_MUX_TERMINATOR },
 };
+
+static struct omap_board_mux omap36x_board_mux[] __initdata = {
+	OMAP3_MUX(SYS_NIRQ, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP |
+				OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_OUTPUT_LOW |
+				OMAP_PIN_OFF_WAKEUPENABLE),
+	OMAP3_MUX(MCSPI1_CS1, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP |
+				OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_OUTPUT_LOW),
+	/* AM/DM37x EVM: DSS data bus muxed with sys_boot */
+	OMAP3_MUX(DSS_DATA18, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(DSS_DATA19, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(DSS_DATA22, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(DSS_DATA21, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(DSS_DATA22, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(DSS_DATA23, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(SYS_BOOT0, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(SYS_BOOT1, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(SYS_BOOT3, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(SYS_BOOT4, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(SYS_BOOT5, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+	OMAP3_MUX(SYS_BOOT6, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
+
+	{ .reg_offset = OMAP_MUX_TERMINATOR },
+};
+#else
+#define omap35x_board_mux	NULL
+#define omap36x_board_mux	NULL
 #endif
 
 static struct omap_musb_board_data musb_board_data = {
@@ -712,7 +738,11 @@ static struct omap_musb_board_data musb_board_data = {
 static void __init omap3_evm_init(void)
 {
 	omap3_evm_get_revision();
-	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
+
+	if (cpu_is_omap3630())
+		omap3_mux_init(omap36x_board_mux, OMAP_PACKAGE_CBB);
+	else
+		omap3_mux_init(omap35x_board_mux, OMAP_PACKAGE_CBB);
 
 	omap3_evm_i2c_init();
 
-- 
1.6.2.4


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

* RE: [PATCH] AM/DM37x: DSS mux configuration for >Rev-B processor cards
       [not found] ` <AANLkTikRn4dz_u0CGL5jrsoAoQrF03wp_DBs7XbYAWXa@mail.gmail.com>
@ 2011-01-24 15:36   ` Hiremath, Vaibhav
  0 siblings, 0 replies; 2+ messages in thread
From: Hiremath, Vaibhav @ 2011-01-24 15:36 UTC (permalink / raw)
  To: satish kumar; +Cc: linux-omap, tomi.valkeinen, tony


> From: satish kumar [mailto:gsatish10@gmail.com] 
> Sent: Monday, January 24, 2011 8:56 PM
> To: Hiremath, Vaibhav
> Cc: linux-omap@vger.kernel.org; tomi.valkeinen@nokia.com; tony@atomide.com
> Subject: Re: [PATCH] AM/DM37x: DSS mux configuration for >Rev-B processor > cards

> Hi This is satish

Satish,

Very first thing is, no html posting here. 

> With omap4 processor in  samsung board  while booting, I am getting 
> following error.

Unfortunately I have not started with OMAP4 yet, so atleast at this point of time will not be able to help you on OMAP4 specific queries.

But yes, DSS point of you I should be able to.


> "omapdss MANAGER error: mainclk disabled while tryingmgr_apply, 
> returning "

> can you please provide me the solution for the above error.

Which kernel version (OR TI release) are you using? I could not able to find this error message in mainline code, so it could be custom implementation.

> I am getting one patch with commit Id:    commit
> d57f72dd11b63eb514d9ea14f8bf79458eccdd37
> but it wont removes my error.

This won't help, since I could not able to trace it. Provide complete patch so that we can help.

Thanks,
Vaibhav

> thanks in advance
> Satish.G
 



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

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

end of thread, other threads:[~2011-01-24 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 14:34 [PATCH] AM/DM37x: DSS mux configuration for >Rev-B processor cards hvaibhav
     [not found] ` <AANLkTikRn4dz_u0CGL5jrsoAoQrF03wp_DBs7XbYAWXa@mail.gmail.com>
2011-01-24 15:36   ` Hiremath, Vaibhav

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.