jornada720.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef __ASM_ARCH_HARDWARE_H
  10. #error "include <asm/hardware.h> instead"
  11. #endif
  12. #define SA1111_BASE (0x40000000)
  13. #define GPIO_JORNADA720_KEYBOARD GPIO_GPIO(0)
  14. #define GPIO_JORNADA720_MOUSE GPIO_GPIO(9)
  15. #define GPIO_JORNADA720_KEYBOARD_IRQ IRQ_GPIO0
  16. #define GPIO_JORNADA720_MOUSE_IRQ IRQ_GPIO9
  17. /* MCU COMMANDS */
  18. #define MCU_GetBatteryData 0xc0
  19. #define MCU_GetScanKeyCode 0x90
  20. #define MCU_GetTouchSamples 0xa0
  21. #define MCU_GetContrast 0xD0
  22. #define MCU_SetContrast 0xD1
  23. #define MCU_GetBrightness 0xD2
  24. #define MCU_SetBrightness 0xD3
  25. #define MCU_ContrastOff 0xD8
  26. #define MCU_BrightnessOff 0xD9
  27. #define MCU_PWMOFF 0xDF
  28. #define MCU_TxDummy 0x11
  29. #define MCU_ErrorCode 0x00
  30. #ifndef __ASSEMBLY__
  31. void jornada720_mcu_init(void);
  32. void jornada_contrast(int arg_contrast);
  33. void jornada720_battery(void);
  34. int jornada720_getkey(unsigned char *data, int size);
  35. #endif