ia64/linux-2.6.18-xen.hg

view include/asm-arm/arch-pxa/akita.h @ 782:9ab1c319531f

merge with linux-2.6.18-xen.hg
author Isaku Yamahata <yamahata@valinux.co.jp>
date Wed Jan 28 13:07:23 2009 +0900 (2009-01-28)
parents 831230e53067
children
line source
1 /*
2 * Hardware specific definitions for SL-C1000 (Akita)
3 *
4 * Copyright (c) 2005 Richard Purdie
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 */
12 /* Akita IO Expander GPIOs */
14 #define AKITA_IOEXP_RESERVED_7 (1 << 7)
15 #define AKITA_IOEXP_IR_ON (1 << 6)
16 #define AKITA_IOEXP_AKIN_PULLUP (1 << 5)
17 #define AKITA_IOEXP_BACKLIGHT_CONT (1 << 4)
18 #define AKITA_IOEXP_BACKLIGHT_ON (1 << 3)
19 #define AKITA_IOEXP_MIC_BIAS (1 << 2)
20 #define AKITA_IOEXP_RESERVED_1 (1 << 1)
21 #define AKITA_IOEXP_RESERVED_0 (1 << 0)
23 /* Direction Bitfield 0=output 1=input */
24 #define AKITA_IOEXP_IO_DIR 0
25 /* Default Values */
26 #define AKITA_IOEXP_IO_OUT (AKITA_IOEXP_IR_ON | AKITA_IOEXP_AKIN_PULLUP)
28 extern struct platform_device akitaioexp_device;
30 void akita_set_ioexp(struct device *dev, unsigned char bitmask);
31 void akita_reset_ioexp(struct device *dev, unsigned char bitmask);