diff options
author | Thom Johansen <thomj@rockbox.org> | 2005-12-11 22:21:10 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2005-12-11 22:21:10 +0000 |
commit | 40729e902b4e0d6b8b6fdd7e5f9108dcab46ba96 (patch) | |
tree | 84b7cc3ed02519a64128c131b883e004a5c4b89c /firmware/export | |
parent | 54dfc3380b275ff15fd9b3509aa41a846bcb0234 (diff) | |
download | rockbox-40729e902b4e0d6b8b6fdd7e5f9108dcab46ba96.tar.gz rockbox-40729e902b4e0d6b8b6fdd7e5f9108dcab46ba96.zip |
Added some symbolic names for control registers for PP5020 chipset.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8222 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/cpu.h | 3 | ||||
-rw-r--r-- | firmware/export/pp5020.h | 62 |
2 files changed, 65 insertions, 0 deletions
diff --git a/firmware/export/cpu.h b/firmware/export/cpu.h index 6f817e44cc..a65786c69f 100644 --- a/firmware/export/cpu.h +++ b/firmware/export/cpu.h | |||
@@ -30,3 +30,6 @@ | |||
30 | #if CONFIG_CPU == TCC730 | 30 | #if CONFIG_CPU == TCC730 |
31 | #include "tcc730.h" | 31 | #include "tcc730.h" |
32 | #endif | 32 | #endif |
33 | #if CONFIG_CPU == PP5020 | ||
34 | #include "pp5020.h" | ||
35 | #endif | ||
diff --git a/firmware/export/pp5020.h b/firmware/export/pp5020.h new file mode 100644 index 0000000000..3baa9bdba1 --- /dev/null +++ b/firmware/export/pp5020.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2004 by Thom Johansen | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #ifndef __PP5020_H__ | ||
20 | #define __PP5020_H__ | ||
21 | |||
22 | /* All info gleaned and/or copied from the iPodLinux project. */ | ||
23 | |||
24 | #define GPIOA_ENABLE (*(volatile unsigned long *)(0x6000d000)) | ||
25 | #define GPIOB_ENABLE (*(volatile unsigned long *)(0x6000d004)) | ||
26 | #define GPIOC_ENABLE (*(volatile unsigned long *)(0x6000d008)) | ||
27 | #define GPIOD_ENABLE (*(volatile unsigned long *)(0x6000d00c)) | ||
28 | #define GPIOA_OUTPUT_EN (*(volatile unsigned long *)(0x6000d010)) | ||
29 | #define GPIOA_OUTPUT_VAL (*(volatile unsigned long *)(0x6000d020)) | ||
30 | #define GPIOA_INPUT_VAL (*(volatile unsigned long *)(0x6000d030)) | ||
31 | #define GPIOA_INT_STAT (*(volatile unsigned long *)(0x6000d040)) | ||
32 | #define GPIOA_INT_EN (*(volatile unsigned long *)(0x6000d050)) | ||
33 | #define GPIOA_INT_LEV (*(volatile unsigned long *)(0x6000d060)) | ||
34 | #define GPIOA_INT_CLR (*(volatile unsigned long *)(0x6000d070)) | ||
35 | |||
36 | #define PP5020_TIMER1 (*(volatile unsigned long *)(0x60005000)) | ||
37 | #define PP5020_TIMER1_ACK (*(volatile unsigned long *)(0x60005004)) | ||
38 | #define PP5020_TIMER2 (*(volatile unsigned long *)(0x60005008)) | ||
39 | #define PP5020_TIMER2_ACK (*(volatile unsigned long *)(0x6000500c)) | ||
40 | #define PP5020_TIMER_STATUS (*(volatile unsigned long *)(0x60005010)) | ||
41 | |||
42 | #define PP5020_CPU_INT_STAT (*(volatile unsigned long*)(0x64004000)) | ||
43 | #define PP5020_CPU_INT_EN (*(volatile unsigned long*)(0x60004024)) | ||
44 | |||
45 | #define PP5020_TIMER1_IRQ 0 | ||
46 | #define PP5020_TIMER2_IRQ 1 | ||
47 | #define PP5020_I2S_IRQ 10 | ||
48 | #define PP5020_IDE_IRQ 23 | ||
49 | #define PP5020_GPIO_IRQ (32+0) | ||
50 | #define PP5020_SER0_IRQ (32+4) | ||
51 | #define PP5020_SER1_IRQ (32+5) | ||
52 | #define PP5020_I2C_IRQ (32+8) | ||
53 | |||
54 | #define PP5020_TIMER1_MASK (1 << PP5020_TIMER1_IRQ) | ||
55 | #define PP5020_I2S_MASK (1 << PP5020_I2S_IRQ) | ||
56 | #define PP5020_IDE_MASK (1 << PP5020_IDE_IRQ) | ||
57 | #define PP5020_GPIO_MASK (1 << (PP5020_GPIO_IRQ-32)) | ||
58 | #define PP5020_SER0_MASK (1 << (PP5020_SER0_IRQ-32)) | ||
59 | #define PP5020_SER1_MASK (1 << (PP5020_SER1_IRQ-32)) | ||
60 | #define PP5020_I2C_MASK (1 << (PP5020_I2C_IRQ-32)) | ||
61 | |||
62 | #endif | ||