Merge remote-tracking branch 'asoc/topic/arizona' into asoc-next
[deliverable/linux.git] / drivers / gpu / drm / exynos / exynos_hdmiphy.c
CommitLineData
d8408326
SWK
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
760285e7 14#include <drm/drmP.h>
d8408326
SWK
15
16#include <linux/kernel.h>
17#include <linux/i2c.h>
d8408326
SWK
18
19#include "exynos_drm_drv.h"
20#include "exynos_hdmi.h"
21
22
23static int hdmiphy_probe(struct i2c_client *client,
24 const struct i2c_device_id *id)
25{
26 hdmi_attach_hdmiphy_client(client);
27
28 dev_info(&client->adapter->dev, "attached s5p_hdmiphy "
29 "into i2c adapter successfully\n");
30
31 return 0;
32}
33
34static int hdmiphy_remove(struct i2c_client *client)
35{
36 dev_info(&client->adapter->dev, "detached s5p_hdmiphy "
37 "from i2c adapter successfully\n");
38
39 return 0;
40}
41
42static const struct i2c_device_id hdmiphy_id[] = {
43 { "s5p_hdmiphy", 0 },
93c645ee 44 { "exynos5-hdmiphy", 0 },
d8408326
SWK
45 { },
46};
47
65da0350 48#ifdef CONFIG_OF
93c645ee
RS
49static struct of_device_id hdmiphy_match_types[] = {
50 {
51 .compatible = "samsung,exynos5-hdmiphy",
cc57caf0
RS
52 }, {
53 .compatible = "samsung,exynos4210-hdmiphy",
54 }, {
55 .compatible = "samsung,exynos4212-hdmiphy",
93c645ee
RS
56 }, {
57 /* end node */
58 }
59};
65da0350 60#endif
93c645ee 61
d8408326
SWK
62struct i2c_driver hdmiphy_driver = {
63 .driver = {
93c645ee 64 .name = "exynos-hdmiphy",
d8408326 65 .owner = THIS_MODULE,
65da0350 66 .of_match_table = of_match_ptr(hdmiphy_match_types),
d8408326
SWK
67 },
68 .id_table = hdmiphy_id,
69 .probe = hdmiphy_probe,
56550d94 70 .remove = hdmiphy_remove,
d8408326
SWK
71 .command = NULL,
72};
73EXPORT_SYMBOL(hdmiphy_driver);
This page took 0.12619 seconds and 5 git commands to generate.