summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun4i_backend.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-04-21 10:38:53 +0200
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-05-14 08:27:41 +0200
commit2c03e2fb063f33694e35bbade6d9186274b9a02f (patch)
treeb607b9001396ee6e0e2a5b4f14b98e0747f9cc8f /drivers/gpu/drm/sun4i/sun4i_backend.h
parentdrm/sun4i: backend: Fetch backend ID from device tree (diff)
downloadlinux-2c03e2fb063f33694e35bbade6d9186274b9a02f.tar.xz
linux-2c03e2fb063f33694e35bbade6d9186274b9a02f.zip
drm/sun4i: backend: Save pointer to device tree node
Save a pointer to the backend's underlying device tree node in its data structure. This will be used later for downstream tcons to find and match their respective upstream backends. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_backend.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_backend.h b/drivers/gpu/drm/sun4i/sun4i_backend.h
index 45b7fc110590..6327a2985fe6 100644
--- a/drivers/gpu/drm/sun4i/sun4i_backend.h
+++ b/drivers/gpu/drm/sun4i/sun4i_backend.h
@@ -15,6 +15,7 @@
#include <linux/clk.h>
#include <linux/list.h>
+#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/reset.h>
@@ -140,6 +141,7 @@
#define SUN4I_BACKEND_PIPE_OFF(p) (0x5000 + (0x400 * (p)))
struct sun4i_backend {
+ struct device_node *node;
struct regmap *regs;
struct reset_control *reset;