imx: Make imx25 compatible to mxc_gpio driver and fix in tx25
Adding support for mxc_gpio driver for imx25 and fix names of registers in tx25 board. Signed-off-by: Matthias Weisser <weisserm@arcor.de>
This commit is contained in:
committed by
Albert ARIBAUD
parent
23210d8e1b
commit
95d185894b
@@ -24,6 +24,11 @@
|
||||
#ifndef __MXC_GPIO_H
|
||||
#define __MXC_GPIO_H
|
||||
|
||||
/* Converts a GPIO port number and the internal bit position
|
||||
* to the GPIO number
|
||||
*/
|
||||
#define MXC_GPIO_PORT_TO_NUM(port, bit) (((port - 1) << 5) + (bit & 0x1f))
|
||||
|
||||
enum mxc_gpio_direction {
|
||||
MXC_GPIO_DIRECTION_IN,
|
||||
MXC_GPIO_DIRECTION_OUT,
|
||||
|
||||
Reference in New Issue
Block a user