ltib
[Top][All Lists]
Advanced

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

[Ltib] RE: Query on setting GPIO in IMX51 EVK board


From: H Hartley Sweeten
Subject: [Ltib] RE: Query on setting GPIO in IMX51 EVK board
Date: Wed, 10 Nov 2010 12:35:44 -0600

On Tuesday, November 09, 2010 10:31 PM, address@hidden wrote:
>
> I am developing  linux kernel driver for I2c sensor chip. In addition to I2C
> interface, the sensor device has GPIO interface.  
>
> I would like to know how to set/get GPIO bit from the application and from
> the driver in imx51 platform.

Your kernel driver should expose the GPIOs using the gpiolib API.  Then you
can use them from userspace and in the kernel using the standard gpiolib API
calls.

Take a look at Documentation/gpio and in drivers/gpio for more information.

Regards,
Hartley


reply via email to

[Prev in Thread] Current Thread [Next in Thread]