Thread (59 messages) 59 messages, 10 authors, 2009-12-26

GPIO support for HTC Dream

flat view

From: arve@android.com (Arve Hjønnevåg)
Date: 2009-12-15 06:48:06
Also in: lkml

On Sun, Dec 13, 2009 at 10:45 PM, Pavel Machek [off-list ref] wrote:
quoted
quoted
+int __init dream_init_gpio(void)
+{
+ ? ? ? ?int i;
+
+ ? ? ? ?for (i = 0; i < ARRAY_SIZE(msm_gpio_banks); i++)
+ ? ? ? ? ? ? ? ?gpiochip_add(&msm_gpio_banks[i].chip);
+
+ ? return 0;
+}
Your original patch was initially writing the shadow values to the registers.
Do you still need to do that?
It seems to boot this way :-). If writing the shadow values is not
needed, lets try getting away without it...
I may boot this way, but unless you know that the bootloader
initialized all the registers to the same value, some outputs will be
in the wrong state until someone writes to a gpio in the same bank.

-- 
Arve Hj?nnev?g
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help