mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 12:49:08 +07:00
96f60e37dc
This patch adds support for the pair of LCD controllers on the Marvell Armada 510 SoCs. This driver supports: - multiple contiguous scanout buffers for video and graphics - shm backed cacheable buffer objects for X pixmaps for Vivante GPU acceleration - dual lcd0 and lcd1 crt operation - video overlay on each LCD crt via DRM planes - page flipping of the main scanout buffers - DRM prime for buffer export/import This driver is trivial to extend to other Armada SoCs. Included in this commit is the core driver with no output support; output support is platform and encoder driver dependent. Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
27 lines
609 B
C
27 lines
609 B
C
/*
|
|
* 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
|