jornada720.h 959 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * arch/arm/mach-sa1100/include/mach/jornada720.h
  3. *
  4. * SSP/MCU communication definitions for HP Jornada 710/720/728
  5. *
  6. * Copyright 2007,2008 Kristoffer Ericson <Kristoffer.Ericson@gmail.com>
  7. * Copyright 2000 John Ankcorn <jca@lcs.mit.edu>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. *
  13. */
  14. /* HP Jornada 7xx microprocessor commands */
  15. #define GETBATTERYDATA 0xc0
  16. #define GETSCANKEYCODE 0x90
  17. #define GETTOUCHSAMPLES 0xa0
  18. #define GETCONTRAST 0xD0
  19. #define SETCONTRAST 0xD1
  20. #define GETBRIGHTNESS 0xD2
  21. #define SETBRIGHTNESS 0xD3
  22. #define CONTRASTOFF 0xD8
  23. #define BRIGHTNESSOFF 0xD9
  24. #define PWMOFF 0xDF
  25. #define TXDUMMY 0x11
  26. #define ERRORCODE 0x00
  27. extern void jornada_ssp_start(void);
  28. extern void jornada_ssp_end(void);
  29. extern int jornada_ssp_inout(u8 byte);
  30. extern int jornada_ssp_byte(u8 byte);