Hi,

On Mon, Jan 19, 2009 at 12:59 PM, pHilipp Zabel <[email protected]> wrote:
> On Mon, Jan 19, 2009 at 12:39 PM, Belisko Marek <[email protected]> 
> wrote:
>> Hi,
>>
>> On Mon, Jan 19, 2009 at 12:10 PM, pHilipp Zabel <[email protected]> 
>> wrote:
>>> Hi Marek,
>>>
>>> On Mon, Jan 19, 2009 at 11:34 AM, Belisko Marek <[email protected]> 
>>> wrote:
>>>> Hi,
>>>>
>>>> thanks for help. Ialreadyread a whole documentation but still ca't
>>>> find a clue how to get pins for TFT display.
>>>> In attachment you can find my log. Could you please lookon this and
>>>> give some proposal how to understand.
>>>
>>> What pins are you looking for, exactly? SPV C100 is HTC Oxygen =
>>> omap850 based, right?
>>> I think all those omap850 phones have the TFT connected to the
>>> internal LCD controller, so I'd propose to have a look at the LCDC
>>> register settings (see drivers/video/omap/lcdc.c for the physical
>>> register addresses) and try to recreate them in a custom struct
>>> lcd_panel for omapfb. IIRC no GPIOs are involved.
>>
>> After looking to kernel code seems no GPIOS for LCD are used in code
>> (they're only defined - using source for typhoon) soyou're right.
>
> Or maybe not - looking at the code for htcartemis, there are some
> GPIOs involved in turning on/off power to the LCD, but there they are
> on the GPIO extender chip:
> http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=blob;f=arch/arm/mach-omap1/htcartemis/htcartemis_lcd.c;h=9e5241e329c18e5102de0ddd408c79287821e797;hb=ce3552ca024ed17381fead3a7451a31737d6e33f
> If you're already seeing strange colours, the LCD is still turned on
> from wince - you should be fine for now...
>
>> I'm trying to fill lcd_panel struct but there'is missing some infos.
>> E.g:how fill values for : pixel clock, horizontal synchronization
>> pulse width, horizontal front porch, horizontal back porch, vertical
>> synchronization pulse width, vertical front porch, vertical back
>> porch, ac-bias pin frequency.
>
> Look at how setup_regs() in lcdc.c fills the OMAP_LCDC_* registers. If
> you dump the LCDC registers with haret, you should be able to recreate
> the settings that result in those register values when run through
> setup_regs().
> Or, if you're impatient, you could go quick&dirty and directly
> overwrite the registers at the end of setup_regs() with the values
> that you got from haret (just to test).
>
>> It would be possible to get it from Haret?
>
> Something like
> pd 0xfffce000 0x20
> to dump the LCDC regs?
With magic command pd I got address values and according setup_regs
parse it back
to values for lcd_pabel struct. What I'm still missing (not set in
setup_regs) is pixel_clock. It's somehow derived
from system clock I think but no clue how to get it.
Yesterday I also disassembly my Oxygen and find out that display has
type TD020 (some china producer).
Try to contact producer for specs but no response :(.

>
>> Values from typhoon isn't working (display shows only strange colours).
>>
>> If you have some spec about omap 850 would be helpful also :)
>
> I wish. There is the OMAP850 TRM floating around, but it only shows
> the differences between OMAP730 and OMAP850. As OMAP850 is very
> similar to the older one, it's not that much. If anybody has access to
> the OMAP730 TRM, I'd be severely interested. A lot of useful register
> information can already be found in the kernel source, though.
>
> regards
> Philipp
>

thanks,

Marek

-- 
as simple as primitive as possible
----------------------------------------------
Marek Beliško - open-nandra
Ruská Nová Ves 219
08005 Prešov
Slovakia
http://open-nandra.com
_______________________________________________
Haret mailing list
[email protected]
https://handhelds.org/mailman/listinfo/haret

Reply via email to