summaryrefslogtreecommitdiffstats
path: root/libc/kernel/arch-sh/asm/hp6xx.h
blob: 023ae2e50474e78b9e550e45c3393c0d51e4a65d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/****************************************************************************
 ****************************************************************************
 ***
 ***   This header was automatically generated from a Linux kernel header
 ***   of the same name, to make information necessary for userspace to
 ***   call into the kernel available to libc.  It contains only constants,
 ***   structures, and macros generated from the original header, and thus,
 ***   contains no copyrightable information.
 ***
 ****************************************************************************
 ****************************************************************************/
#ifndef __ASM_SH_HP6XX_H
#define __ASM_SH_HP6XX_H

#define HP680_BTN_IRQ 32  
#define HP680_TS_IRQ 35  
#define HP680_HD64461_IRQ 36  

#define DAC_LCD_BRIGHTNESS 0
#define DAC_SPEAKER_VOLUME 1

#define PGDR_OPENED 0x01
#define PGDR_MAIN_BATTERY_OUT 0x04
#define PGDR_PLAY_BUTTON 0x08
#define PGDR_REWIND_BUTTON 0x10
#define PGDR_RECORD_BUTTON 0x20

#define PHDR_TS_PEN_DOWN 0x08

#define PJDR_LED_BLINK 0x02

#define PKDR_LED_GREEN 0x10

#define SCPDR_TS_SCAN_ENABLE 0x20
#define SCPDR_TS_SCAN_Y 0x02
#define SCPDR_TS_SCAN_X 0x01

#define SCPCR_TS_ENABLE 0x405
#define SCPCR_TS_MASK 0xc0f

#define ADC_CHANNEL_TS_Y 1
#define ADC_CHANNEL_TS_X 2
#define ADC_CHANNEL_BATTERY 3
#define ADC_CHANNEL_BACKUP 4
#define ADC_CHANNEL_CHARGE 5

#define HD64461_GPADR_SPEAKER 0x01
#define HD64461_GPADR_PCMCIA0 (0x02|0x08)

#define HD64461_GPBDR_LCDOFF 0x01
#define HD64461_GPBDR_LCD_CONTRAST_MASK 0x78
#define HD64461_GPBDR_LED_RED 0x80

#include <asm/hd64461.h>
#include <asm/io.h>

#define PJDR 0xa4000130
#define PKDR 0xa4000132

#endif