From fca0ba73f6eb14cd5905b6f712c44d6010f45ba3 Mon Sep 17 00:00:00 2001
From: Xiubo Li
Date: Mon, 13 Oct 2014 11:00:19 +0800
Subject: fb: dcu: convert to use regmap API.
The regmap framework has one feature of register cache, which
will be more easy to add big endian mode and PM support.
Signed-off-by: Xiubo Li
--
The first DRM version will be send out to the community
before 15 Dec 2014.
Change-Id: I3aa3c30f4ab42b64b80669b483b45a62ae31d6bb
Reviewed-on: http://git.am.freescale.net:8181/21571
Tested-by: Review Code-CDREVIEW
Reviewed-by: Dongsheng Wang
Reviewed-by: Zhengxiong Jin
diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
index f1e4ae6..c6a8d18 100644
--- a/arch/arm/boot/dts/ls1021a.dtsi
+++ b/arch/arm/boot/dts/ls1021a.dtsi
@@ -123,6 +123,7 @@
scfg: scfg@1570000 {
compatible = "fsl,ls1021a-scfg", "syscon";
reg = <0x0 0x1570000 0x0 0x10000>;
+ big-endian;
};
crypto: crypto@1700000 {
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 1d2d7db..76eff63 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -1987,6 +1987,7 @@ config FB_FSL_DCU
select FB_CFB_IMAGEBLIT
select FB_MODE_HELPERS
select VIDEOMODE_HELPERS
+ select REGMAP_MMIO
---help---
Framebuffer driver for the Freescale SoC DCU.
diff --git a/drivers/video/fsl-dcu-fb.c b/drivers/video/fsl-dcu-fb.c
index 2fc9994..57a42f2 100644
--- a/drivers/video/fsl-dcu-fb.c
+++ b/drivers/video/fsl-dcu-fb.c
@@ -19,6 +19,7 @@
#include
#include
#include
+#include
#include
#include