You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
925 B
36 lines
925 B
19 years ago
|
/*
|
||
17 years ago
|
* arch/arm/plat-omap/include/mach/gpioexpander.h
|
||
19 years ago
|
*
|
||
|
*
|
||
|
* Copyright (C) 2004 Texas Instruments, Inc.
|
||
|
*
|
||
|
* This package is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License version 2 as
|
||
|
* published by the Free Software Foundation.
|
||
|
*
|
||
|
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
||
|
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||
|
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||
|
*/
|
||
|
|
||
|
#ifndef __ASM_ARCH_OMAP_GPIOEXPANDER_H
|
||
|
#define __ASM_ARCH_OMAP_GPIOEXPANDER_H
|
||
|
|
||
|
/* Function Prototypes for GPIO Expander functions */
|
||
|
|
||
17 years ago
|
#ifdef CONFIG_GPIOEXPANDER_OMAP
|
||
19 years ago
|
int read_gpio_expa(u8 *, int);
|
||
|
int write_gpio_expa(u8 , int);
|
||
17 years ago
|
#else
|
||
|
static inline int read_gpio_expa(u8 *val, int addr)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
static inline int write_gpio_expa(u8 val, int addr)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
#endif
|
||
19 years ago
|
|
||
|
#endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */
|