1 // SPDX-License-Identifier: GPL-2.0-only
3 * platform_msic_ocd.c: MSIC OCD platform data initialization file
5 * (C) Copyright 2013 Intel Corporation
6 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
9 #include <linux/kernel.h>
10 #include <linux/interrupt.h>
11 #include <linux/scatterlist.h>
12 #include <linux/sfi.h>
13 #include <linux/init.h>
14 #include <linux/gpio.h>
15 #include <linux/mfd/intel_msic.h>
16 #include <asm/intel-mid.h>
18 #include "platform_msic.h"
20 static void __init *msic_ocd_platform_data(void *info)
22 static struct intel_msic_ocd_pdata msic_ocd_pdata;
25 gpio = get_gpio_by_name("ocd_gpio");
30 msic_ocd_pdata.gpio = gpio;
31 msic_pdata.ocd = &msic_ocd_pdata;
33 return msic_generic_platform_data(info, INTEL_MSIC_BLOCK_OCD);
36 static const struct devs_id msic_ocd_dev_id __initconst = {
38 .type = SFI_DEV_TYPE_IPC,
41 .get_platform_data = &msic_ocd_platform_data,
44 sfi_device(msic_ocd_dev_id);