platform_tc35876x.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * platform_tc35876x.c: tc35876x platform data initilization file
  3. *
  4. * (C) Copyright 2013 Intel Corporation
  5. * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; version 2
  10. * of the License.
  11. */
  12. #include <linux/gpio.h>
  13. #include <linux/i2c/tc35876x.h>
  14. #include <asm/intel-mid.h>
  15. /*tc35876x DSI_LVDS bridge chip and panel platform data*/
  16. static void *tc35876x_platform_data(void *data)
  17. {
  18. static struct tc35876x_platform_data pdata;
  19. /* gpio pins set to -1 will not be used by the driver */
  20. pdata.gpio_bridge_reset = get_gpio_by_name("LCMB_RXEN");
  21. pdata.gpio_panel_bl_en = get_gpio_by_name("6S6P_BL_EN");
  22. pdata.gpio_panel_vadd = get_gpio_by_name("EN_VREG_LCD_V3P3");
  23. return &pdata;
  24. }
  25. static const struct devs_id tc35876x_dev_id __initconst = {
  26. .name = "i2c_disp_brig",
  27. .type = SFI_DEV_TYPE_I2C,
  28. .get_platform_data = &tc35876x_platform_data,
  29. };
  30. sfi_device(tc35876x_dev_id);