• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/sh/include/mach-common/mach/
1#ifndef __ASM_SH_HP6XX_H
2#define __ASM_SH_HP6XX_H
3
4/*
5 * Copyright (C) 2003, 2004, 2005  Andriy Skulysh
6 *
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License.  See the file "COPYING" in the main directory of this archive
9 * for more details.
10 *
11 */
12
13#define HP680_BTN_IRQ		32	/* IRQ0_IRQ */
14#define HP680_TS_IRQ		35	/* IRQ3_IRQ */
15#define HP680_HD64461_IRQ	36	/* IRQ4_IRQ */
16
17#define DAC_LCD_BRIGHTNESS	0
18#define DAC_SPEAKER_VOLUME	1
19
20#define PGDR_OPENED		0x01
21#define PGDR_MAIN_BATTERY_OUT	0x04
22#define PGDR_PLAY_BUTTON	0x08
23#define PGDR_REWIND_BUTTON	0x10
24#define PGDR_RECORD_BUTTON	0x20
25
26#define PHDR_TS_PEN_DOWN	0x08
27
28#define PJDR_LED_BLINK		0x02
29
30#define PKDR_LED_GREEN		0x10
31
32/* HP Palmtop 620lx/660lx speaker on/off */
33#define PKDR_SPEAKER		0x20
34
35#define SCPDR_TS_SCAN_ENABLE	0x20
36#define SCPDR_TS_SCAN_Y		0x02
37#define SCPDR_TS_SCAN_X		0x01
38
39#define SCPCR_TS_ENABLE		0x405
40#define SCPCR_TS_MASK		0xc0f
41
42#define ADC_CHANNEL_TS_Y	1
43#define ADC_CHANNEL_TS_X	2
44#define ADC_CHANNEL_BATTERY	3
45#define ADC_CHANNEL_BACKUP	4
46#define ADC_CHANNEL_CHARGE	5
47
48/* HP Jornada 680/690 speaker on/off */
49#define HD64461_GPADR_SPEAKER	0x01
50#define HD64461_GPADR_PCMCIA0	(0x02|0x08)
51
52#define HD64461_GPBDR_LCDOFF	0x01
53#define HD64461_GPBDR_LCD_CONTRAST_MASK	0x78
54#define HD64461_GPBDR_LED_RED	0x80
55
56#include <asm/hd64461.h>
57#include <asm/io.h>
58
59#define PJDR	0xa4000130
60#define PKDR	0xa4000132
61
62#endif /* __ASM_SH_HP6XX_H */
63