Hi, On Thu, Mar 5, 2009 at 12:41 AM, Premi, Sanjeev <premi@xxxxxx> wrote: > I am trying to get the wakeup event from touchscreen on > omap3evm to bring the EVM out of suspend state. > > For my private testing, I have been updating individual > registers & bits in the GPIO registers from function > ads7846_dev_init(). > > Ideally, I should be using standard GPIO APIs. However, > most of the APIs are static within gpio.c > > How can I call functions like gpio_wake_enable(), gpio_unmask_irq() gpio_wake_enable: enable_irq_wake(gpio_to_irq(gpio #)); gpio_unmake_irq: request_irq(gpio_to_irq(gpio #), ...) or enable_irq(qpio_to_irq(gpio #)); > OR > Is there a function to access interface registers for GPIO banks? > enable_irq_wake() and request_irq() would be enough. Somewhat related: I sent [OMAP wakeup source driver] a few days ago, so you can also use it. But you may need to configure 'struct gpio_wake' well and your 'irqflags' argument of irq_request(). Regards, -- Q1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html