2 * platform_msic_battery.c: MSIC battery platform data initialization file
4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
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
13 #include <linux/kernel.h>
14 #include <linux/interrupt.h>
15 #include <linux/scatterlist.h>
16 #include <linux/init.h>
17 #include <linux/sfi.h>
18 #include <linux/mfd/intel_msic.h>
19 #include <asm/intel-mid.h>
21 #include "platform_msic.h"
22 #include "platform_ipc.h"
24 static void __init *msic_battery_platform_data(void *info)
26 return msic_generic_platform_data(info, INTEL_MSIC_BLOCK_BATTERY);
29 static const struct devs_id msic_battery_dev_id __initconst = {
30 .name = "msic_battery",
31 .type = SFI_DEV_TYPE_IPC,
33 .get_platform_data = &msic_battery_platform_data,
34 .device_handler = &ipc_device_handler,
37 sfi_device(msic_battery_dev_id);