summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/armada/armada_slave.h
blob: bf2374c96fc190d82f93bcc2e1f2821c99a016f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (C) 2012 Russell King
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
#ifndef ARMADA_SLAVE_H
#define ARMADA_SLAVE_H

#include <linux/i2c.h>
#include <drm/drmP.h>

struct armada_drm_slave_config {
	int i2c_adapter_id;
	uint32_t crtcs;
	uint8_t polled;
	bool interlace_allowed;
	bool doublescan_allowed;
	struct i2c_board_info info;
};

int armada_drm_connector_slave_create(struct drm_device *dev,
	const struct armada_drm_slave_config *);

#endif
OpenPOWER on IntegriCloud