This source file includes following definitions.
- msic_audio_platform_data
1
2
3
4
5
6
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/platform_device.h>
15 #include <linux/mfd/intel_msic.h>
16 #include <asm/intel-mid.h>
17
18 #include "platform_msic.h"
19
20 static void *msic_audio_platform_data(void *info)
21 {
22 struct platform_device *pdev;
23
24 pdev = platform_device_register_simple("sst-platform", -1, NULL, 0);
25
26 if (IS_ERR(pdev)) {
27 pr_err("failed to create audio platform device\n");
28 return NULL;
29 }
30
31 return msic_generic_platform_data(info, INTEL_MSIC_BLOCK_AUDIO);
32 }
33
34 static const struct devs_id msic_audio_dev_id __initconst = {
35 .name = "msic_audio",
36 .type = SFI_DEV_TYPE_IPC,
37 .delay = 1,
38 .msic = 1,
39 .get_platform_data = &msic_audio_platform_data,
40 };
41
42 sfi_device(msic_audio_dev_id);