• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef __ASM_SH_HP6XX_H
13 #define __ASM_SH_HP6XX_H
14 
15 #define HP680_BTN_IRQ 32
16 #define HP680_TS_IRQ 35
17 #define HP680_HD64461_IRQ 36
18 
19 #define DAC_LCD_BRIGHTNESS 0
20 #define DAC_SPEAKER_VOLUME 1
21 
22 #define PGDR_OPENED 0x01
23 #define PGDR_MAIN_BATTERY_OUT 0x04
24 #define PGDR_PLAY_BUTTON 0x08
25 #define PGDR_REWIND_BUTTON 0x10
26 #define PGDR_RECORD_BUTTON 0x20
27 
28 #define PHDR_TS_PEN_DOWN 0x08
29 
30 #define PJDR_LED_BLINK 0x02
31 
32 #define PKDR_LED_GREEN 0x10
33 
34 #define SCPDR_TS_SCAN_ENABLE 0x20
35 #define SCPDR_TS_SCAN_Y 0x02
36 #define SCPDR_TS_SCAN_X 0x01
37 
38 #define SCPCR_TS_ENABLE 0x405
39 #define SCPCR_TS_MASK 0xc0f
40 
41 #define ADC_CHANNEL_TS_Y 1
42 #define ADC_CHANNEL_TS_X 2
43 #define ADC_CHANNEL_BATTERY 3
44 #define ADC_CHANNEL_BACKUP 4
45 #define ADC_CHANNEL_CHARGE 5
46 
47 #define HD64461_GPADR_SPEAKER 0x01
48 #define HD64461_GPADR_PCMCIA0 (0x02|0x08)
49 
50 #define HD64461_GPBDR_LCDOFF 0x01
51 #define HD64461_GPBDR_LCD_CONTRAST_MASK 0x78
52 #define HD64461_GPBDR_LED_RED 0x80
53 
54 #include <asm/hd64461.h>
55 #include <asm/io.h>
56 
57 #define PJDR 0xa4000130
58 #define PKDR 0xa4000132
59 
60 #endif
61