The Porting of Android making steps on HD2

Cotulla from XDA said he has working keypad and touchscreen in linux on htc hd2 Looking forward to the patched.

here the fix




In current kernel (htc-msm-2.6.32) GPIO interrupts are not working.
Symptoms: After request_irq() call, hardware interrupt cause system to hang fully (cursor stop blink).
Root case: Incorrect settings of SIRS and interrupt not handled, so it try to handle it infinite.
Fix:
In file sirc.c in function "msm_init_sirc()" you need to add following lines at start:

writel(0, sirc_regs.int_enable);
writel(0, sirc_regs.int_enable_clear);
writel(0, sirc_regs.int_enable_set);
writel(0, sirc_regs.int_type);
writel(0, sirc_regs.int_polarity);
writel(0, sirc_regs.int_clear);

writel(0, (void*)SPSS_SIRC_INT_SELECT);
writel(0, (void*)SPSS_SIRC_RAW_STATUS);
writel(0, (void*)SPSS_SIRC_IRQ_STATUS);
writel(0, (void*)SPSS_SIRC_IRQ1_STATUS);

This force CPU SIRC state like after bootloader.

Suggestion: Move clear code to Haret.


What do you think? you will leave the windows Mobile 6.5.5 for android 2.2?


Thanks Cotula and linuxtogo.org

No comments:

Post a Comment