From 2220a4b695f2f5ac9fe212de4bcfa5365318136f Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 28 Jan 2017 14:43:35 -0500 Subject: Improve imx31 interrupt code for PMIC and GPIO Fix stuff that was bugging me about the way I did it at first. While messing around I found RDS code wasn't masking its GPIO ISR as it should, which might lead to two different interrupts messing with the static data. Change-Id: I54626809ea3039a842af0cc9e3e42853326c4193 --- .../target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c (limited to 'firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c') 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 @@ -/*************************************************************************** - * __________ __ ___. - * 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 -}; -- cgit v1.2.3