“9a5d690b08478fc2358d885703014853e44a357e”上不存在“README.md”
exynos_hdmiphy.c 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
 * 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.
 *
 */

14
#include <drm/drmP.h>
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

#include <linux/kernel.h>
#include <linux/i2c.h>
#include <linux/module.h>

#include "exynos_drm_drv.h"
#include "exynos_hdmi.h"


static int hdmiphy_probe(struct i2c_client *client,
	const struct i2c_device_id *id)
{
	hdmi_attach_hdmiphy_client(client);

	dev_info(&client->adapter->dev, "attached s5p_hdmiphy "
		"into i2c adapter successfully\n");

	return 0;
}

static int hdmiphy_remove(struct i2c_client *client)
{
	dev_info(&client->adapter->dev, "detached s5p_hdmiphy "
		"from i2c adapter successfully\n");

	return 0;
}

static const struct i2c_device_id hdmiphy_id[] = {
	{ "s5p_hdmiphy", 0 },
45
	{ "exynos5-hdmiphy", 0 },
46 47 48
	{ },
};

49 50 51 52 53 54 55 56
static struct of_device_id hdmiphy_match_types[] = {
	{
		.compatible = "samsung,exynos5-hdmiphy",
	}, {
		/* end node */
	}
};

57 58
struct i2c_driver hdmiphy_driver = {
	.driver = {
59
		.name	= "exynos-hdmiphy",
60
		.owner	= THIS_MODULE,
61
		.of_match_table = hdmiphy_match_types,
62 63 64 65 66 67 68
	},
	.id_table = hdmiphy_id,
	.probe		= hdmiphy_probe,
	.remove		= __devexit_p(hdmiphy_remove),
	.command		= NULL,
};
EXPORT_SYMBOL(hdmiphy_driver);
反馈
建议
客服 返回
顶部