diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-04-12 16:56:45 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-04-12 16:56:45 +0000 |
commit | a7af9e4a7f25f5a32306c74e95a677e6c85f399e (patch) | |
tree | 5df60e8382b69cf943840852269ea9387d42ea46 /firmware/target/arm/imx31/gigabeat-s/gpio-target.h | |
parent | ddfd787c54d78104dac4ed144ff6cb6df8617a0e (diff) | |
download | rockbox-a7af9e4a7f25f5a32306c74e95a677e6c85f399e.tar.gz rockbox-a7af9e4a7f25f5a32306c74e95a677e6c85f399e.zip |
Add GPIO manager. Get the PMIC interrupt handling working (along with power button and HP detect). Add some reg field defined instead of using raw numbers. Add PMIC info to debug ports screen. Refine PMIC driver ops a little bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17086 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/gpio-target.h')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/gpio-target.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/gpio-target.h b/firmware/target/arm/imx31/gigabeat-s/gpio-target.h new file mode 100644 index 0000000000..46e43af28d --- /dev/null +++ b/firmware/target/arm/imx31/gigabeat-s/gpio-target.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (c) 2008 by Michael Sevakis | ||
11 | * | ||
12 | * Gigabeat S GPIO interrupt event descriptions header | ||
13 | * | ||
14 | * All files in this archive are subject to the GNU General Public License. | ||
15 | * See the file COPYING in the source tree root for full license agreement. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef GPIO_TARGET_H | ||
22 | #define GPIO_TARGET_H | ||
23 | |||
24 | #define GPIO_EVENT_MASK (USE_GPIO1_EVENTS) | ||
25 | |||
26 | #define MC13783_GPIO_NUM GPIO1_NUM | ||
27 | #define MC13783_GPIO_ISR GPIO1_ISR | ||
28 | #define MC13783_GPIO_LINE 31 | ||
29 | #define MC13783_EVENT_ID 0 | ||
30 | |||
31 | #endif /* GPIO_TARGET_H */ | ||