[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1480372989-6413-1-git-send-email-martin@kaiser.cx>
Date: Mon, 28 Nov 2016 23:43:09 +0100
From: Martin Kaiser <martin@...ser.cx>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
Sascha Hauer <kernel@...gutronix.de>,
linux-fbdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Martin Kaiser <martin@...ser.cx>
Subject: [PATCH] video: imxfb: remove the macros for initializing the DMACR
The current definitions of DMACR_HM() and DMACR_TM() are correct only
for imx1, they're wrong for imx21.
The macros are meant for legacy board files only, they're not applicable
for boards using device tree.
At the moment, there are no boards are using the macros. So it should be
safe to drop them rather than making them work for both imx1 and imx21,
which would require a change in the platform data struct.
Signed-off-by: Martin Kaiser <martin@...ser.cx>
---
include/linux/platform_data/video-imxfb.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/include/linux/platform_data/video-imxfb.h b/include/linux/platform_data/video-imxfb.h
index 18e9083..a5c0a71 100644
--- a/include/linux/platform_data/video-imxfb.h
+++ b/include/linux/platform_data/video-imxfb.h
@@ -47,10 +47,6 @@
#define LSCR1_GRAY2(x) (((x) & 0xf) << 4)
#define LSCR1_GRAY1(x) (((x) & 0xf))
-#define DMACR_BURST (1 << 31)
-#define DMACR_HM(x) (((x) & 0xf) << 16)
-#define DMACR_TM(x) ((x) & 0xf)
-
struct imx_fb_videomode {
struct fb_videomode mode;
u32 pcr;
--
1.7.10.4
Powered by blists - more mailing lists