hp6xx.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. #include <linux/sh_intc.h>
  12. #define HP680_BTN_IRQ evt2irq(0x600) /* IRQ0_IRQ */
  13. #define HP680_TS_IRQ evt2irq(0x660) /* IRQ3_IRQ */
  14. #define HP680_HD64461_IRQ evt2irq(0x680) /* IRQ4_IRQ */
  15. #define DAC_LCD_BRIGHTNESS 0
  16. #define DAC_SPEAKER_VOLUME 1
  17. #define PGDR_OPENED 0x01
  18. #define PGDR_MAIN_BATTERY_OUT 0x04
  19. #define PGDR_PLAY_BUTTON 0x08
  20. #define PGDR_REWIND_BUTTON 0x10
  21. #define PGDR_RECORD_BUTTON 0x20
  22. #define PHDR_TS_PEN_DOWN 0x08
  23. #define PJDR_LED_BLINK 0x02
  24. #define PKDR_LED_GREEN 0x10
  25. /* HP Palmtop 620lx/660lx speaker on/off */
  26. #define PKDR_SPEAKER 0x20
  27. #define SCPDR_TS_SCAN_ENABLE 0x20
  28. #define SCPDR_TS_SCAN_Y 0x02
  29. #define SCPDR_TS_SCAN_X 0x01
  30. #define SCPCR_TS_ENABLE 0x405
  31. #define SCPCR_TS_MASK 0xc0f
  32. #define ADC_CHANNEL_TS_Y 1
  33. #define ADC_CHANNEL_TS_X 2
  34. #define ADC_CHANNEL_BATTERY 3
  35. #define ADC_CHANNEL_BACKUP 4
  36. #define ADC_CHANNEL_CHARGE 5
  37. /* HP Jornada 680/690 speaker on/off */
  38. #define HD64461_GPADR_SPEAKER 0x01
  39. #define HD64461_GPADR_PCMCIA0 (0x02|0x08)
  40. #define HD64461_GPBDR_LCDOFF 0x01
  41. #define HD64461_GPBDR_LCD_CONTRAST_MASK 0x78
  42. #define HD64461_GPBDR_LED_RED 0x80
  43. #include <asm/hd64461.h>
  44. #include <asm/io.h>
  45. #define PJDR 0xa4000130
  46. #define PKDR 0xa4000132
  47. #endif /* __ASM_SH_HP6XX_H */