gpioexpander.h 925 字节
Newer Older
1
/*
2
 * arch/arm/plat-omap/include/mach/gpioexpander.h
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 *
 *
 * 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 */

21
#ifdef CONFIG_GPIOEXPANDER_OMAP
22 23
int read_gpio_expa(u8 *, int);
int write_gpio_expa(u8 , int);
24 25 26 27 28 29 30 31 32 33
#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
34 35

#endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */