Skip to contentSkip to conversation

FB support for OMAP2

PATCH Romain Goyet 2 participants 4 messages Nov 28, 2005 – Nov 29, 2005 5 messages not in the archive

lore
Share & tools
lore
#5 lore raw
In reply to a message not in the archive

Hi Imre,
Actually it didn't for me either,
I'm preparing a big patch to have my PalmTE back to life again :-) I had already patched this line (but thanks anyway ;-)), as well as a few others.
After checking, it appeared your patch was just working great : my Palm's in fact crashing because of a bug in the function paging_init(); in arch/arm/mm/init.c. I haven't had time to investigate any further, but debugging this looks a bit hard to me (since I'm working without any output - I just have a way to figure out where the kernel crashes using a dumb "while(1){}"). If you ever have any suggestion.... BTW, I'm having a 2.6.13-rc6 snapshot that's working just well. So it has to be a recent patch that messed things up...

Thanks again,
Romain Goyet

2005/11/28, Imre Deak <[email protected]>:

Quoted 81 lines

Hi,

For me it didn't even build for PALMTE, so this is at least needed:

drivers/video/omap/lcdc.c +1 -1
index fd5e137..5700d25 100644
@@ -439,7 +439,7 @@ static void inline setup_regs(void)
 #ifdef CONFIG_MACH_OMAP_PALMTE
 /* FIXME:if (machine_is_omap_palmte()) { */
                /* PalmTE uses alternate TFT setting in 8BPP mode */
-               l |= (tft && fbdev->panel->video_mode->bpp == 8) ? 0x810000 : 0;
+               l |= (is_tft && panel->bpp == 8) ? 0x810000 : 0;
 /*     } */
 #endif
        omap_writel(l, OMAP_LCDC_CONTROL);

Let me know if you still have problems.

--Imre

Quoted 55 lines · ext Romain Goyet

Hi guys,
I know I'm probably a bit late, but I hadn't much time to work on my Palm lately, but it looks like this patch actually broke support of the LCD on my Palm. The big issue is that we _need_ the LCD to debug anything, since it's virtually our only output :-S

It looks like it has to do with this :

- pixel clock divider calculation based on the panel->pixel_clock instead of the wired panel->pcd

So if you have any suggestion about how I could get my LCD back, I'd be very glad :-)

Thanks again,
Romain Goyet

2005/10/20, Imre Deak <[email protected]>:

Quoted 37 lines · ext Kevin Hilman
Quoted 3 lines

Imre,

Tested using dirctFB on 730/P2 and it works fine.

Great. Hope it won't break the other platforms either.

Quoted 2 lines

Here's a minor fix so it builds when I2C isn't enabled (default for 730/P2 defconfig). I'll push if it's OK with you.

It's ok.

--Imre

Quoted 9 lines

Kevin

arch/arm/plat-omap/devices.c static void omap_init_i2c(void) · line 100

Quoted 8 lines
arch/arm/plat-omap/devices.c +2 -0
@@ -93,6 +93,8 @@ static void omap_init_i2c(void)
      (void) platform_device_register(&omap_i2c_device1);
 }
 
+#else
+static inline void omap_init_i2c(void) {}
 #endif
 
 /*-------------------------------------------------------------------------*/

_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source

#6 lore raw
Quoted 10 lines · Romain Goyet

.
After checking, it appeared your patch was just working great : my Palm's in fact crashing because of a bug in the function paging_init(); in arch/arm/mm/init.c.

2005/11/28, Imre Deak <[email protected]>:

Quoted 4 lines

Hi,

For me it didn't even build for PALMTE, so this is at least needed:

Quoted 13 lines

drivers/video/omap/lcdc.c static void inline setup_regs(void) · line 445

Quoted 13 lines
drivers/video/omap/lcdc.c +1 -1
index fd5e137..5700d25 100644
@@ -439,7 +439,7 @@ static void inline setup_regs(void)
 #ifdef CONFIG_MACH_OMAP_PALMTE
 /* FIXME:if (machine_is_omap_palmte()) { */
                /* PalmTE uses alternate TFT setting in 8BPP mode */
-               l |= (tft && fbdev->panel->video_mode->bpp == 8) ? 0x810000 : 0;
+               l |= (is_tft && panel->bpp == 8) ? 0x810000 : 0;
 /*     } */
 #endif
        omap_writel(l, OMAP_LCDC_CONTROL);

Pushing this today.

Tony

#7 lore raw

Hi Tony,
You might push this if you want, but I'm preparing a slightly bigger patch that will include this one. (Since even with this Palm TE support is still broken...)

Kind regards,
Romain Goyet

2005/11/29, Tony Lindgren <[email protected]>:

Quoted 29 lines · Romain Goyet
Quoted 10 lines

.
After checking, it appeared your patch was just working great : my Palm's in fact crashing because of a bug in the function paging_init(); in arch/arm/mm/init.c.

2005/11/28, Imre Deak <[email protected]>:

Quoted 4 lines

Hi,

For me it didn't even build for PALMTE, so this is at least needed:

Quoted 13 lines

drivers/video/omap/lcdc.c static void inline setup_regs(void) · line 445

Quoted 13 lines
drivers/video/omap/lcdc.c +1 -1
index fd5e137..5700d25 100644
@@ -439,7 +439,7 @@ static void inline setup_regs(void)
 #ifdef CONFIG_MACH_OMAP_PALMTE
 /* FIXME:if (machine_is_omap_palmte()) { */
                /* PalmTE uses alternate TFT setting in 8BPP mode */
-               l |= (tft && fbdev->panel->video_mode->bpp == 8) ? 0x810000 : 0;
+               l |= (is_tft && panel->bpp == 8) ? 0x810000 : 0;
 /*     } */
 #endif
        omap_writel(l, OMAP_LCDC_CONTROL);

Pushing this today.

Tony

#8 lore raw
Quoted 4 lines · Romain Goyet

Hi Tony,
You might push this if you want, but I'm preparing a slightly bigger patch that will include this one. (Since even with this Palm TE support is still broken...)

I pushed it yesterday, so please provide your patch against the current git tree once you have it ready.

Regards,

Tony