hp6xx.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef __ASM_SH_HP6XX_H
  2. #define __ASM_SH_HP6XX_H
  3. /*
  4. * Copyright (C) 2003, 2004, 2005 Andriy Skulysh
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. *
  10. */
  11. #define HP680_BTN_IRQ 32 /* IRQ0_IRQ */
  12. #define HP680_TS_IRQ 35 /* IRQ3_IRQ */
  13. #define HP680_HD64461_IRQ 36 /* IRQ4_IRQ */
  14. #define DAC_LCD_BRIGHTNESS 0
  15. #define DAC_SPEAKER_VOLUME 1
  16. #define PGDR_OPENED 0x01
  17. #define PGDR_MAIN_BATTERY_OUT 0x04
  18. #define PGDR_PLAY_BUTTON 0x08
  19. #define PGDR_REWIND_BUTTON 0x10
  20. #define PGDR_RECORD_BUTTON 0x20
  21. #define PHDR_TS_PEN_DOWN 0x08
  22. #define PJDR_LED_BLINK 0x02
  23. #define PKDR_LED_GREEN 0x10
  24. /* HP Palmtop 620lx/660lx speaker on/off */
  25. #define PKDR_SPEAKER 0x20
  26. #define SCPDR_TS_SCAN_ENABLE 0x20
  27. #define SCPDR_TS_SCAN_Y 0x02
  28. #define SCPDR_TS_SCAN_X 0x01
  29. #define SCPCR_TS_ENABLE 0x405
  30. #define SCPCR_TS_MASK 0xc0f
  31. #define ADC_CHANNEL_TS_Y 1
  32. #define ADC_CHANNEL_TS_X 2
  33. #define ADC_CHANNEL_BATTERY 3
  34. #define ADC_CHANNEL_BACKUP 4
  35. #define ADC_CHANNEL_CHARGE 5
  36. /* HP Jornada 680/690 speaker on/off */
  37. #define HD64461_GPADR_SPEAKER 0x01
  38. #define HD64461_GPADR_PCMCIA0 (0x02|0x08)
  39. #define HD64461_GPBDR_LCDOFF 0x01
  40. #define HD64461_GPBDR_LCD_CONTRAST_MASK 0x78
  41. #define HD64461_GPBDR_LED_RED 0x80
  42. #include <asm/hd64461.h>
  43. #include <asm/io.h>
  44. #define PJDR 0xa4000130
  45. #define PKDR 0xa4000132
  46. #endif /* __ASM_SH_HP6XX_H */