i.MX31/Gigabeat S minor cleaning: Make HW access more obvious in places I forgot...
[kugel-rb.git] / firmware / target / arm / imx31 / gigabeat-s / gpio-target.h
blob2eea27c3be762c4f5d3b6ac66fbf1a2bdf629164
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (c) 2008 by Michael Sevakis
12 * Gigabeat S GPIO interrupt event descriptions header
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.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
22 ****************************************************************************/
23 #ifndef GPIO_TARGET_H
24 #define GPIO_TARGET_H
26 /* MC13783 GPIO pin info for this target */
27 #define MC13783_GPIO_IMR GPIO1_IMR
28 #define MC13783_GPIO_NUM GPIO1_NUM
29 #define MC13783_GPIO_ISR GPIO1_ISR
30 #define MC13783_GPIO_LINE 31
32 #define GPIO1_INT_PRIO INT_PRIO_DEFAULT
34 /* Declare event indexes in priority order in a packed array */
35 enum gpio_event_ids
37 /* GPIO1 event IDs */
38 MC13783_EVENT_ID = GPIO1_EVENT_FIRST,
39 GPIO1_NUM_EVENTS = 1,
40 /* GPIO2 event IDs */
41 /* none defined */
42 /* GPIO3 event IDs */
43 /* none defined */
46 void mc13783_event(void);
48 #endif /* GPIO_TARGET_H */