Why are three resources in gta01_button_resources array?

wei zheng loveheaven_zhengwei at hotmail.com
Sat Feb 28 09:50:25 CET 2009


Oh, I see... I don't have real device. I run openmoko on qemu.... Qemu
emulates only two hardware buttons of neo 1973/freerunner....

-----邮件原件-----
发件人: openmoko-kernel-bounces at lists.openmoko.org
[mailto:openmoko-kernel-bounces at lists.openmoko.org] 代表 Ben Wilson
发送时间: 2009年2月28日 星期六 16:22
收件人: openmoko-kernel at lists.openmoko.org
主题: Re: Why are three resources in gta01_button_resources array?

There's a 3rd button inside the headphone jack to detect when you put 
the plug in.
It's used to know when to mute the built in speakers etc..

Ben.

wei zheng wrote:
>
> Hi Michael & All,
>
>        I have questions about the hardware buttons in neo 
> 1973/freerunner. There are only two buttons on neo 1973/freerunner. 
> Why are three resources in gta01_button_resources array?
>
>  
>
> static struct resource gta01_button_resources[] = {
>
>        [0] = {
>
>               .start = GTA01_GPIO_AUX_KEY,
>
>               .end   = GTA01_GPIO_AUX_KEY,
>
>        },
>
>        [1] = {
>
>               .start = GTA01_GPIO_HOLD_KEY,
>
>               .end   = GTA01_GPIO_HOLD_KEY,
>
>        },
>
>        [2] = {
>
>               .start = GTA01_GPIO_JACK_INSERT,
>
>               .end   = GTA01_GPIO_JACK_INSERT,
>
>        },
>
> };
>





More information about the openmoko-kernel mailing list