2015-10-09 04:00:56 -06: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-09 20:16:22 -06:00
|
|
|
#define MAX_CRTC 2
|
|
|
|
|
2015-10-09 04:00:56 -06:00
|
|
|
/* display controller init/cleanup ops */
|
|
|
|
struct kirin_dc_ops {
|
2016-12-09 07:19:38 -07:00
|
|
|
int (*init)(struct platform_device *pdev);
|
|
|
|
void (*cleanup)(struct platform_device *pdev);
|
2015-10-09 04:00:56 -06:00
|
|
|
};
|
|
|
|
|
2015-10-09 20:16:22 -06:00
|
|
|
struct kirin_drm_private {
|
2015-10-10 00:54:14 -06:00
|
|
|
struct drm_fbdev_cma *fbdev;
|
2015-10-09 20:16:22 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const struct kirin_dc_ops ade_dc_ops;
|
|
|
|
|
2015-10-09 04:00:56 -06:00
|
|
|
#endif /* __KIRIN_DRM_DRV_H__ */
|