]> git.ipfire.org Git - thirdparty/linux.git/blob - arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c
Merge tag 'meminit-v5.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[thirdparty/linux.git] / arch / x86 / platform / intel-mid / device_libs / platform_tc35876x.c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * platform_tc35876x.c: tc35876x platform data initialization file
4 *
5 * (C) Copyright 2013 Intel Corporation
6 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
7 */
8
9 #include <linux/gpio.h>
10 #include <linux/platform_data/tc35876x.h>
11 #include <asm/intel-mid.h>
12
13 /*tc35876x DSI_LVDS bridge chip and panel platform data*/
14 static void *tc35876x_platform_data(void *data)
15 {
16 static struct tc35876x_platform_data pdata;
17
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");
22
23 return &pdata;
24 }
25
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,
30 };
31
32 sfi_device(tc35876x_dev_id);