This source file includes following definitions.
- tc35876x_platform_data
1
2
3
4
5
6
7
8
9 #include <linux/gpio.h>
10 #include <linux/platform_data/tc35876x.h>
11 #include <asm/intel-mid.h>
12
13
14 static void *tc35876x_platform_data(void *data)
15 {
16 static struct tc35876x_platform_data pdata;
17
18
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);