summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
deleted file mode 100644
index 51446934aa..0000000000
--- a/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
+++ /dev/null
@@ -1,52 +0,0 @@
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
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
21 *
22 ****************************************************************************/
23#include "config.h"
24#include "system.h"
25#include "avic-imx31.h"
26#include "gpio-imx31.h"
27
28/* Gigabeat S definitions for static GPIO event registration */
29
30/* Describes single events for each GPIO1 pin */
31const struct gpio_event gpio1_events[] =
32{
33 /* mc13783 keeps the PRIINT high (no low pulse) if other unmasked
34 * interrupts become active when clearing them or if a source being
35 * cleared becomes active at that time. Edge-detection will not get
36 * a rising edge in that case so use high-level sense. */
37 [MC13783_EVENT_ID-GPIO1_EVENT_FIRST] =
38 {
39 .mask = 1 << MC13783_GPIO_LINE,
40 .sense = GPIO_SENSE_HIGH_LEVEL,
41 .callback = mc13783_event,
42 },
43#ifndef BOOTLOADER
44 /* Generates a 5ms low pulse on the line - detect the falling edge */
45 [SI4700_STC_RDS_EVENT_ID] =
46 {
47 .mask = 1 << SI4700_GPIO_STC_RDS_LINE,
48 .sense = GPIO_SENSE_FALLING,
49 .callback = si4700_stc_rds_event,
50 },
51#endif
52};