exynos_hdmiphy.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (C) 2011 Samsung Electronics Co.Ltd
  3. * Authors:
  4. * Seung-Woo Kim <sw0312.kim@samsung.com>
  5. * Inki Dae <inki.dae@samsung.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. *
  12. */
  13. #include <drm/drmP.h>
  14. #include <linux/kernel.h>
  15. #include <linux/i2c.h>
  16. #include <linux/module.h>
  17. #include "exynos_drm_drv.h"
  18. #include "exynos_hdmi.h"
  19. static int hdmiphy_probe(struct i2c_client *client,
  20. const struct i2c_device_id *id)
  21. {
  22. hdmi_attach_hdmiphy_client(client);
  23. dev_info(&client->adapter->dev, "attached s5p_hdmiphy "
  24. "into i2c adapter successfully\n");
  25. return 0;
  26. }
  27. static int hdmiphy_remove(struct i2c_client *client)
  28. {
  29. dev_info(&client->adapter->dev, "detached s5p_hdmiphy "
  30. "from i2c adapter successfully\n");
  31. return 0;
  32. }
  33. static const struct i2c_device_id hdmiphy_id[] = {
  34. { "s5p_hdmiphy", 0 },
  35. { "exynos5-hdmiphy", 0 },
  36. { },
  37. };
  38. #ifdef CONFIG_OF
  39. static struct of_device_id hdmiphy_match_types[] = {
  40. {
  41. .compatible = "samsung,exynos5-hdmiphy",
  42. }, {
  43. /* end node */
  44. }
  45. };
  46. #endif
  47. struct i2c_driver hdmiphy_driver = {
  48. .driver = {
  49. .name = "exynos-hdmiphy",
  50. .owner = THIS_MODULE,
  51. .of_match_table = of_match_ptr(hdmiphy_match_types),
  52. },
  53. .id_table = hdmiphy_id,
  54. .probe = hdmiphy_probe,
  55. .remove = hdmiphy_remove,
  56. .command = NULL,
  57. };
  58. EXPORT_SYMBOL(hdmiphy_driver);