1 // SPDX-License-Identifier: GPL-2.0-only
3 * platform_mpu3050.c: mpu3050 platform data initialization file
5 * (C) Copyright 2013 Intel Corporation
6 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
9 #include <linux/gpio.h>
10 #include <linux/i2c.h>
11 #include <asm/intel-mid.h>
13 static void *mpu3050_platform_data(void *info
)
15 struct i2c_board_info
*i2c_info
= info
;
16 int intr
= get_gpio_by_name("mpu3050_int");
21 i2c_info
->irq
= intr
+ INTEL_MID_IRQ_OFFSET
;
25 static const struct devs_id mpu3050_dev_id __initconst
= {
27 .type
= SFI_DEV_TYPE_I2C
,
29 .get_platform_data
= &mpu3050_platform_data
,
32 sfi_device(mpu3050_dev_id
);