73627cef62
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31347 a1c6a512-1295-4272-9138-f99709370657
52 lines
2 KiB
C
52 lines
2 KiB
C
/***************************************************************************
|
|
* __________ __ ___.
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
* \/ \/ \/ \/ \/
|
|
* $Id$
|
|
*
|
|
* Copyright (c) 2008 by Michael Sevakis
|
|
*
|
|
* Gigabeat S GPIO interrupt event descriptions
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
* KIND, either express or implied.
|
|
*
|
|
****************************************************************************/
|
|
#include "config.h"
|
|
#include "system.h"
|
|
#include "avic-imx31.h"
|
|
#include "gpio-imx31.h"
|
|
|
|
/* Gigabeat S definitions for static GPIO event registration */
|
|
|
|
/* Describes single events for each GPIO1 pin */
|
|
const struct gpio_event gpio1_events[] =
|
|
{
|
|
/* mc13783 keeps the PRIINT high (no low pulse) if other unmasked
|
|
* interrupts become active when clearing them or if a source being
|
|
* cleared becomes active at that time. Edge-detection will not get
|
|
* a rising edge in that case so use high-level sense. */
|
|
[MC13783_EVENT_ID-GPIO1_EVENT_FIRST] =
|
|
{
|
|
.mask = 1 << MC13783_GPIO_LINE,
|
|
.sense = GPIO_SENSE_HIGH_LEVEL,
|
|
.callback = mc13783_event,
|
|
},
|
|
#ifndef BOOTLOADER
|
|
/* Generates a 5ms low pulse on the line - detect the falling edge */
|
|
[SI4700_STC_RDS_EVENT_ID] =
|
|
{
|
|
.mask = 1 << SI4700_GPIO_STC_RDS_LINE,
|
|
.sense = GPIO_SENSE_FALLING,
|
|
.callback = si4700_stc_rds_event,
|
|
},
|
|
#endif
|
|
};
|