Merge branch 'upstream-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...
[pandora-kernel.git] / include / asm-arm / arch-sa1100 / jornada720.h
1 /*
2  * linux/include/asm-arm/arch-sa1100/jornada720.h
3  *
4  * Created 2000/11/29 by John Ankcorn <jca@lcs.mit.edu>
5  *
6  * This file contains the hardware specific definitions for HP Jornada 720
7  *
8  */
9
10 #ifndef __ASM_ARCH_HARDWARE_H
11 #error "include <asm/hardware.h> instead"
12 #endif
13
14 #define SA1111_BASE             (0x40000000)
15
16 #define GPIO_JORNADA720_KEYBOARD        GPIO_GPIO(0)
17 #define GPIO_JORNADA720_MOUSE           GPIO_GPIO(9)
18
19 #define GPIO_JORNADA720_KEYBOARD_IRQ    IRQ_GPIO0
20 #define GPIO_JORNADA720_MOUSE_IRQ               IRQ_GPIO9
21
22 /* MCU COMMANDS */
23 #define MCU_GetBatteryData  0xc0
24 #define MCU_GetScanKeyCode  0x90
25 #define MCU_GetTouchSamples 0xa0
26 #define MCU_GetContrast     0xD0
27 #define MCU_SetContrast     0xD1
28 #define MCU_GetBrightness   0xD2
29 #define MCU_SetBrightness   0xD3
30 #define MCU_ContrastOff     0xD8
31 #define MCU_BrightnessOff   0xD9
32 #define MCU_PWMOFF          0xDF
33 #define MCU_TxDummy         0x11
34 #define MCU_ErrorCode       0x00
35
36 #ifndef __ASSEMBLY__
37
38 void jornada720_mcu_init(void);
39 void jornada_contrast(int arg_contrast);
40 void jornada720_battery(void);
41 int jornada720_getkey(unsigned char *data, int size);
42 #endif