mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 11:21:33 +00:00
a5a0fc6743
Inki writes: "this patch set updates exynos drm framework and includes minor fixups. and this pull request except hdmi device tree support patch set posted by Rahul Sharma because that includes media side patch so for this patch set, we may have git pull one more time in addition, if we get an agreement with media guys. for this patch, you can refer to below link, http://comments.gmane.org/gmane.comp.video.dri.devel/74504 this pull request adds hdmi device tree support and includes related patch set such as disabling of hdmi internal interrupt, suppport for platform variants for hdmi and mixer, support to disable video processor based on platform type and removal of drm common platform data. as you know, this patch set was delayed because it included an media side patch. so for this, we got an ack from v4l2-based hdmi driver author, Tomasz Stanislawski." * 'exynos-drm-next' of git://git.infradead.org/users/kmpark/linux-samsung: (34 commits) drm: exynos: hdmi: remove drm common hdmi platform data struct drm: exynos: hdmi: add support for exynos5 hdmi drm: exynos: hdmi: replace is_v13 with version check in hdmi drm: exynos: hdmi: add support for exynos5 mixer drm: exynos: hdmi: add support to disable video processor in mixer drm: exynos: hdmi: add support for platform variants for mixer drm: exynos: hdmi: add support for exynos5 hdmiphy drm: exynos: hdmi: add support for exynos5 ddc drm: exynos: remove drm hdmi platform data struct drm: exynos: hdmi: turn off HPD interrupt in HDMI chip drm: exynos: hdmi: use s5p-hdmi platform data drm: exynos: hdmi: fix interrupt handling drm: exynos: hdmi: support for platform variants media: s5p-hdmi: add HPD GPIO to platform data drm/exynos: fix kcalloc size of g2d cmdlist node drm/exynos: fix to calculate CRTC shown via screen drm/exynos: fix display power call issue. drm/exynos: add platform_device_id table and driver data for drm fimd drm/exynos: Fix potential NULL pointer dereference drm/exynos: support drm_wait_vblank feature for VIDI ... Conflicts: include/drm/exynos_drm.h
70 lines
1.4 KiB
C
70 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2011 Samsung Electronics Co.Ltd
|
|
* Authors:
|
|
* Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
* Inki Dae <inki.dae@samsung.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
* option) any later version.
|
|
*
|
|
*/
|
|
|
|
#include <drm/drmP.h>
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/i2c.h>
|
|
#include <linux/module.h>
|
|
|
|
|
|
#include "exynos_drm_drv.h"
|
|
#include "exynos_hdmi.h"
|
|
|
|
static int s5p_ddc_probe(struct i2c_client *client,
|
|
const struct i2c_device_id *dev_id)
|
|
{
|
|
hdmi_attach_ddc_client(client);
|
|
|
|
dev_info(&client->adapter->dev,
|
|
"attached %s into i2c adapter successfully\n",
|
|
client->name);
|
|
|
|
return 0;
|
|
}
|
|
|
|
static int s5p_ddc_remove(struct i2c_client *client)
|
|
{
|
|
dev_info(&client->adapter->dev,
|
|
"detached %s from i2c adapter successfully\n",
|
|
client->name);
|
|
|
|
return 0;
|
|
}
|
|
|
|
static struct i2c_device_id ddc_idtable[] = {
|
|
{"s5p_ddc", 0},
|
|
{"exynos5-hdmiddc", 0},
|
|
{ },
|
|
};
|
|
|
|
static struct of_device_id hdmiddc_match_types[] = {
|
|
{
|
|
.compatible = "samsung,exynos5-hdmiddc",
|
|
}, {
|
|
/* end node */
|
|
}
|
|
};
|
|
|
|
struct i2c_driver ddc_driver = {
|
|
.driver = {
|
|
.name = "exynos-hdmiddc",
|
|
.owner = THIS_MODULE,
|
|
.of_match_table = hdmiddc_match_types,
|
|
},
|
|
.id_table = ddc_idtable,
|
|
.probe = s5p_ddc_probe,
|
|
.remove = __devexit_p(s5p_ddc_remove),
|
|
.command = NULL,
|
|
};
|