2015-10-09 18:00:56 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Linaro Limited.
|
|
|
|
* Copyright (c) 2014-2016 Hisilicon Limited.
|
|
|
|
*
|
|
|
|
* 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 __KIRIN_DRM_DRV_H__
|
|
|
|
#define __KIRIN_DRM_DRV_H__
|
|
|
|
|
2015-10-10 10:16:22 +08:00
|
|
|
#define MAX_CRTC 2
|
|
|
|
|
2015-10-09 18:00:56 +08:00
|
|
|
/* display controller init/cleanup ops */
|
|
|
|
struct kirin_dc_ops {
|
2016-12-09 22:19:38 +08:00
|
|
|
int (*init)(struct platform_device *pdev);
|
|
|
|
void (*cleanup)(struct platform_device *pdev);
|
2015-10-09 18:00:56 +08:00
|
|
|
};
|
|
|
|
|
2015-10-10 10:16:22 +08:00
|
|
|
struct kirin_drm_private {
|
2015-10-10 14:54:14 +08:00
|
|
|
#ifdef CONFIG_DRM_FBDEV_EMULATION
|
|
|
|
struct drm_fbdev_cma *fbdev;
|
|
|
|
#endif
|
2015-10-10 10:16:22 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const struct kirin_dc_ops ade_dc_ops;
|
|
|
|
|
2015-10-09 18:00:56 +08:00
|
|
|
#endif /* __KIRIN_DRM_DRV_H__ */
|