1 // SPDX-License-Identifier: GPL-2.0-only
3 * platform_tc35876x.c: tc35876x 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/platform_data/tc35876x.h>
11 #include <asm/intel-mid.h>
13 /*tc35876x DSI_LVDS bridge chip and panel platform data*/
14 static void *tc35876x_platform_data(void *data
)
16 static struct tc35876x_platform_data pdata
;
18 /* gpio pins set to -1 will not be used by the driver */
19 pdata
.gpio_bridge_reset
= get_gpio_by_name("LCMB_RXEN");
20 pdata
.gpio_panel_bl_en
= get_gpio_by_name("6S6P_BL_EN");
21 pdata
.gpio_panel_vadd
= get_gpio_by_name("EN_VREG_LCD_V3P3");
26 static const struct devs_id tc35876x_dev_id __initconst
= {
27 .name
= "i2c_disp_brig",
28 .type
= SFI_DEV_TYPE_I2C
,
29 .get_platform_data
= &tc35876x_platform_data
,
32 sfi_device(tc35876x_dev_id
);