mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-29 21:05:13 +00:00
edbaa603eb
The sysdev.h file should not be needed by any in-kernel code, so remove the .h file from these random files that seem to still want to include it. The sysdev code will be going away soon, so this include needs to be removed no matter what. Cc: Jiandong Zheng <jdzheng@broadcom.com> Cc: Scott Branden <sbranden@broadcom.com> Cc: Russell King <linux@arm.linux.org.uk> Cc: Kukjin Kim <kgene.kim@samsung.com> Cc: David Brown <davidb@codeaurora.org> Cc: Daniel Walker <dwalker@fifo99.com> Cc: Bryan Huntsman <bryanh@codeaurora.org> Cc: Ben Dooks <ben-linux@fluff.org> Cc: Wan ZongShun <mcuos.com@gmail.com> Cc: Haavard Skinnemoen <hskinnemoen@gmail.com> Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn> Cc: "Venkatesh Pallipadi Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Matthew Garrett <mjg@redhat.com> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
/* arch/arm/plat-samsung/wakeup-mask.c
|
|
*
|
|
* Copyright 2010 Ben Dooks <ben-linux@fluff.org>
|
|
*
|
|
* Support for wakeup mask interrupts on newer SoCs
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/spinlock.h>
|
|
#include <linux/device.h>
|
|
#include <linux/types.h>
|
|
#include <linux/irq.h>
|
|
#include <linux/io.h>
|
|
|
|
#include <plat/wakeup-mask.h>
|
|
#include <plat/pm.h>
|
|
|
|
void samsung_sync_wakemask(void __iomem *reg,
|
|
struct samsung_wakeup_mask *mask, int nr_mask)
|
|
{
|
|
struct irq_data *data;
|
|
u32 val;
|
|
|
|
val = __raw_readl(reg);
|
|
|
|
for (; nr_mask > 0; nr_mask--, mask++) {
|
|
if (mask->irq == NO_WAKEUP_IRQ) {
|
|
val |= mask->bit;
|
|
continue;
|
|
}
|
|
|
|
data = irq_get_irq_data(mask->irq);
|
|
|
|
/* bit of a liberty to read this directly from irq_data. */
|
|
if (irqd_is_wakeup_set(data))
|
|
val &= ~mask->bit;
|
|
else
|
|
val |= mask->bit;
|
|
}
|
|
|
|
printk(KERN_INFO "wakemask %08x => %08x\n", __raw_readl(reg), val);
|
|
__raw_writel(val, reg);
|
|
}
|