1 /* 2 * platform_msic_audio.c: MSIC audio platform data initialization 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 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/platform_device.h> 19 #include <linux/mfd/intel_msic.h> 20 #include <asm/intel-mid.h> 21 22 #include "platform_msic.h" 23 msic_audio_platform_data(void * info)24static void *msic_audio_platform_data(void *info) 25 { 26 struct platform_device *pdev; 27 28 pdev = platform_device_register_simple("sst-platform", -1, NULL, 0); 29 30 if (IS_ERR(pdev)) { 31 pr_err("failed to create audio platform device\n"); 32 return NULL; 33 } 34 35 return msic_generic_platform_data(info, INTEL_MSIC_BLOCK_AUDIO); 36 } 37 38 static const struct devs_id msic_audio_dev_id __initconst = { 39 .name = "msic_audio", 40 .type = SFI_DEV_TYPE_IPC, 41 .delay = 1, 42 .msic = 1, 43 .get_platform_data = &msic_audio_platform_data, 44 }; 45 46 sfi_device(msic_audio_dev_id); 47