hp6xx.h 1.3 KB

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