exynos_hdmiphy.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. .compatible = "samsung,exynos4210-hdmiphy",
  44. }, {
  45. .compatible = "samsung,exynos4212-hdmiphy",
  46. }, {
  47. /* end node */
  48. }
  49. };
  50. #endif
  51. struct i2c_driver hdmiphy_driver = {
  52. .driver = {
  53. .name = "exynos-hdmiphy",
  54. .owner = THIS_MODULE,
  55. .of_match_table = of_match_ptr(hdmiphy_match_types),
  56. },
  57. .id_table = hdmiphy_id,
  58. .probe = hdmiphy_probe,
  59. .remove = hdmiphy_remove,
  60. .command = NULL,
  61. };
  62. EXPORT_SYMBOL(hdmiphy_driver);