1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * platform_msic_battery.c: MSIC battery platform data initialization file 4 * 5 * (C) Copyright 2013 Intel Corporation 6 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 7 */ 8 9 #include <linux/kernel.h> 10 #include <linux/interrupt.h> 11 #include <linux/scatterlist.h> 12 #include <linux/init.h> 13 #include <linux/sfi.h> 14 #include <linux/mfd/intel_msic.h> 15 #include <asm/intel-mid.h> 16 17 #include "platform_msic.h" 18 msic_battery_platform_data(void * info)19static void __init *msic_battery_platform_data(void *info) 20 { 21 return msic_generic_platform_data(info, INTEL_MSIC_BLOCK_BATTERY); 22 } 23 24 static const struct devs_id msic_battery_dev_id __initconst = { 25 .name = "msic_battery", 26 .type = SFI_DEV_TYPE_IPC, 27 .delay = 1, 28 .msic = 1, 29 .get_platform_data = &msic_battery_platform_data, 30 }; 31 32 sfi_device(msic_battery_dev_id); 33