From a7af9e4a7f25f5a32306c74e95a677e6c85f399e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 12 Apr 2008 16:56:45 +0000 Subject: 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 --- firmware/target/arm/imx31/gigabeat-s/gpio-target.h | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 firmware/target/arm/imx31/gigabeat-s/gpio-target.h (limited to 'firmware/target/arm/imx31/gigabeat-s/gpio-target.h') 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 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (c) 2008 by Michael Sevakis + * + * Gigabeat S GPIO interrupt event descriptions header + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#ifndef GPIO_TARGET_H +#define GPIO_TARGET_H + +#define GPIO_EVENT_MASK (USE_GPIO1_EVENTS) + +#define MC13783_GPIO_NUM GPIO1_NUM +#define MC13783_GPIO_ISR GPIO1_ISR +#define MC13783_GPIO_LINE 31 +#define MC13783_EVENT_ID 0 + +#endif /* GPIO_TARGET_H */ -- cgit v1.2.3