Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / arch / x86 / platform / intel-mid / device_libs / platform_msic_power_btn.c
1 /*
2  * platform_msic_power_btn.c: MSIC power btn platform data initilization file
3  *
4  * (C) Copyright 2013 Intel Corporation
5  * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; version 2
10  * of the License.
11  */
12 #include <linux/kernel.h>
13 #include <linux/interrupt.h>
14 #include <linux/scatterlist.h>
15 #include <linux/sfi.h>
16 #include <linux/init.h>
17 #include <linux/mfd/intel_msic.h>
18 #include <asm/intel-mid.h>
19
20 #include "platform_msic.h"
21 #include "platform_ipc.h"
22
23 static void __init *msic_power_btn_platform_data(void *info)
24 {
25         return msic_generic_platform_data(info, INTEL_MSIC_BLOCK_POWER_BTN);
26 }
27
28 static const struct devs_id msic_power_btn_dev_id __initconst = {
29         .name = "msic_power_btn",
30         .type = SFI_DEV_TYPE_IPC,
31         .delay = 1,
32         .get_platform_data = &msic_power_btn_platform_data,
33         .device_handler = &ipc_device_handler,
34 };
35
36 sfi_device(msic_power_btn_dev_id);