Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

A20 gpio and nc-x



Hello,
I need some help with gpio on allwinner A20, a I have troubles understanding
the code.

In awin_machdep.c we have:
	prop_dictionary_set_uint32(dict, "nc-b", 0x0003d0e8);
	prop_dictionary_set_uint32(dict, "nc-c", 0x00ff0000);
	prop_dictionary_set_uint32(dict, "nc-h", 0x03c53f04);
	prop_dictionary_set_uint32(dict, "nc-i", 0x003fc03f);

these values are supposed to be used by awin_gpio.c:awin_gpio_attach().
Isn't this supposed to make sure these pins are not available to
cpioctl ?
If I read this properly, per above values gpio port B pin 3 shoud not
be available, yet I can properly configure and use it (I tested both in and
out).

Next questions, where did these values comes from ? On my olimex lime2,
most of the ports masked in these values do in fact exist and are routed
to expansion ports.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index