summaryrefslogtreecommitdiff
path: root/include/linux/wl12xx.h
diff options
context:
space:
mode:
authorLuciano Coelho <luca@coelho.fi>2015-03-18 18:38:25 +0200
committerTony Lindgren <tony@atomide.com>2015-03-19 14:20:50 -0700
commit6f921fab5844941f7605b7f1a265f5fc7fe969a7 (patch)
tree0a9c9e42ff1ea15780aa9bea90361c0afd769c6a /include/linux/wl12xx.h
parent06e5801b8cb3fc057d88cb4dc03c0b64b2744cda (diff)
downloadlwn-6f921fab5844941f7605b7f1a265f5fc7fe969a7.tar.gz
lwn-6f921fab5844941f7605b7f1a265f5fc7fe969a7.zip
wlcore: set irq_trigger in board files instead of hiding behind a quirk
The platform_quirk element in the platform data was used to change the way the IRQ is triggered. When set, the EDGE_IRQ quirk would change the irqflags used and treat edge trigger differently from the rest. Instead of hiding this irq flag setting behind the quirk, have the board files set the irq_trigger explicitly. This will allow us to use standard irq DT definitions later on. Signed-off-by: Luciano Coelho <luca@coelho.fi> [Eliad - rebase, add irq_trigger field and pass it, update board file changes] Signed-off-by: Eliad Peller <eliad@wizery.com> Tested-by: Nikita Kiryanov <nikita@compulab.co.il> Acked-by: Kalle Valo <kvalo@codeaurora.org> Acked-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/linux/wl12xx.h')
-rw-r--r--include/linux/wl12xx.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/wl12xx.h b/include/linux/wl12xx.h
index a9c723be1acf..3876b67dbcbc 100644
--- a/include/linux/wl12xx.h
+++ b/include/linux/wl12xx.h
@@ -57,15 +57,12 @@ struct wl1251_platform_data {
struct wl12xx_platform_data {
int irq;
+ u32 irq_trigger;
int board_ref_clock;
int board_tcxo_clock;
- unsigned long platform_quirks;
bool pwr_in_suspend;
};
-/* Platform does not support level trigger interrupts */
-#define WL12XX_PLATFORM_QUIRK_EDGE_IRQ BIT(0)
-
#ifdef CONFIG_WILINK_PLATFORM_DATA
int wl12xx_set_platform_data(const struct wl12xx_platform_data *data);