exynos_hdmiphy.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. static struct of_device_id hdmiphy_match_types[] = {
  39. {
  40. .compatible = "samsung,exynos5-hdmiphy",
  41. }, {
  42. /* end node */
  43. }
  44. };
  45. struct i2c_driver hdmiphy_driver = {
  46. .driver = {
  47. .name = "exynos-hdmiphy",
  48. .owner = THIS_MODULE,
  49. .of_match_table = hdmiphy_match_types,
  50. },
  51. .id_table = hdmiphy_id,
  52. .probe = hdmiphy_probe,
  53. .remove = __devexit_p(hdmiphy_remove),
  54. .command = NULL,
  55. };
  56. EXPORT_SYMBOL(hdmiphy_driver);