Loading...
1/*
2 * shmob_drm.h -- SH Mobile DRM driver
3 *
4 * Copyright (C) 2012 Renesas Electronics Corporation
5 *
6 * Laurent Pinchart (laurent.pinchart@ideasonboard.com)
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 */
13
14#ifndef __SHMOB_DRM_DRV_H__
15#define __SHMOB_DRM_DRV_H__
16
17#include <linux/kernel.h>
18#include <linux/platform_data/shmob_drm.h>
19#include <linux/spinlock.h>
20
21#include "shmob_drm_crtc.h"
22
23struct clk;
24struct device;
25struct drm_device;
26struct sh_mobile_meram_info;
27
28struct shmob_drm_device {
29 struct device *dev;
30 const struct shmob_drm_platform_data *pdata;
31
32 void __iomem *mmio;
33 struct clk *clock;
34 struct sh_mobile_meram_info *meram;
35 u32 lddckr;
36 u32 ldmt1r;
37
38 spinlock_t irq_lock; /* Protects hardware LDINTR register */
39
40 struct drm_device *ddev;
41
42 struct shmob_drm_crtc crtc;
43 struct shmob_drm_encoder encoder;
44 struct shmob_drm_connector connector;
45};
46
47#endif /* __SHMOB_DRM_DRV_H__ */
1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * shmob_drm.h -- SH Mobile DRM driver
4 *
5 * Copyright (C) 2012 Renesas Electronics Corporation
6 *
7 * Laurent Pinchart (laurent.pinchart@ideasonboard.com)
8 */
9
10#ifndef __SHMOB_DRM_DRV_H__
11#define __SHMOB_DRM_DRV_H__
12
13#include <linux/kernel.h>
14#include <linux/platform_data/shmob_drm.h>
15#include <linux/spinlock.h>
16
17#include "shmob_drm_crtc.h"
18
19struct clk;
20struct device;
21struct drm_device;
22
23struct shmob_drm_device {
24 struct device *dev;
25 const struct shmob_drm_platform_data *pdata;
26
27 void __iomem *mmio;
28 struct clk *clock;
29 u32 lddckr;
30 u32 ldmt1r;
31
32 unsigned int irq;
33 spinlock_t irq_lock; /* Protects hardware LDINTR register */
34
35 struct drm_device *ddev;
36
37 struct shmob_drm_crtc crtc;
38 struct shmob_drm_encoder encoder;
39 struct shmob_drm_connector connector;
40};
41
42#endif /* __SHMOB_DRM_DRV_H__ */