Re: [PATCH 3/3] gpu: ipu-v3: Move i.MX IPUv3 core driver out of staging

2014-02-27 Thread Greg Kroah-Hartman
On Tue, Feb 25, 2014 at 01:09:57PM +0100, Philipp Zabel wrote:
 Am Dienstag, den 25.02.2014, 12:43 +0100 schrieb Philipp Zabel:
  The i.MX Image Processing Unit (IPU) contains a number of image processing
  blocks that sit right in the middle between DRM and V4L2. Some of the 
  modules,
  such as Display Controller, Processor, and Interface (DC, DP, DI) or CMOS
  Sensor Interface (CSI) and their FIFOs could be assigned to either 
  framework,
  but others, such as the dma controller (IDMAC) and image converter (IC) can
  be used by both.
  The IPUv3 core driver provides an internal API to access the modules, to be
  used by both DRM and V4L2 IPUv3 drivers.
 [...]
 
 This one is missing:
 
 diff --git a/drivers/staging/imx-drm/imx-hdmi.c 
 b/drivers/staging/imx-drm/imx-hdmi.c
 index cb4eb76..9aeb863 100644
 --- a/drivers/staging/imx-drm/imx-hdmi.c
 +++ b/drivers/staging/imx-drm/imx-hdmi.c
 @@ -28,7 +28,8 @@
  #include drm/drm_edid.h
  #include drm/drm_encoder_slave.h
  
 -#include ipu-v3/imx-ipu-v3.h
 +#include video/imx-ipu-v3.h
 +

What do you mean?  I can't apply this patch?

Totally confused,

greg k-h
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH 3/3] gpu: ipu-v3: Move i.MX IPUv3 core driver out of staging

2014-02-27 Thread Uwe Kleine-König
On Thu, Feb 27, 2014 at 12:41:36PM -0800, Greg Kroah-Hartman wrote:
 On Tue, Feb 25, 2014 at 01:09:57PM +0100, Philipp Zabel wrote:
  Am Dienstag, den 25.02.2014, 12:43 +0100 schrieb Philipp Zabel:
   The i.MX Image Processing Unit (IPU) contains a number of image processing
   blocks that sit right in the middle between DRM and V4L2. Some of the 
   modules,
   such as Display Controller, Processor, and Interface (DC, DP, DI) or CMOS
   Sensor Interface (CSI) and their FIFOs could be assigned to either 
   framework,
   but others, such as the dma controller (IDMAC) and image converter (IC) 
   can
   be used by both.
   The IPUv3 core driver provides an internal API to access the modules, to 
   be
   used by both DRM and V4L2 IPUv3 drivers.
  [...]
  
  This one is missing:
  
  diff --git a/drivers/staging/imx-drm/imx-hdmi.c 
  b/drivers/staging/imx-drm/imx-hdmi.c
  index cb4eb76..9aeb863 100644
  --- a/drivers/staging/imx-drm/imx-hdmi.c
  +++ b/drivers/staging/imx-drm/imx-hdmi.c
  @@ -28,7 +28,8 @@
   #include drm/drm_edid.h
   #include drm/drm_encoder_slave.h
   
  -#include ipu-v3/imx-ipu-v3.h
  +#include video/imx-ipu-v3.h
  +
 
 What do you mean?  I can't apply this patch?
I understand it as: Please squash this hunk changing the #include into
patch 3. But note that I don't know anything about the stuff Philipp is
working on.

Thanks
Uwe

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | http://www.pengutronix.de/  |
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 3/3] gpu: ipu-v3: Move i.MX IPUv3 core driver out of staging

2014-02-25 Thread Philipp Zabel
The i.MX Image Processing Unit (IPU) contains a number of image processing
blocks that sit right in the middle between DRM and V4L2. Some of the modules,
such as Display Controller, Processor, and Interface (DC, DP, DI) or CMOS
Sensor Interface (CSI) and their FIFOs could be assigned to either framework,
but others, such as the dma controller (IDMAC) and image converter (IC) can
be used by both.
The IPUv3 core driver provides an internal API to access the modules, to be
used by both DRM and V4L2 IPUv3 drivers.

Signed-off-by: Lucas Stach l.st...@pengutronix.de
Signed-off-by: Philipp Zabel p.za...@pengutronix.de
---
 drivers/gpu/Makefile  |  1 +
 drivers/gpu/ipu-v3/Kconfig|  7 +++
 drivers/{staging/imx-drm = gpu}/ipu-v3/Makefile  |  2 +-
 drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-common.c  |  2 +-
 drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-dc.c  |  3 +--
 drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-di.c  |  2 +-
 drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-dmfc.c|  2 +-
 drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-dp.c  |  2 +-
 drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-prv.h |  2 +-
 drivers/staging/imx-drm/Kconfig   | 11 +--
 drivers/staging/imx-drm/Makefile  |  1 -
 drivers/staging/imx-drm/imx-tve.c |  2 +-
 drivers/staging/imx-drm/ipuv3-crtc.c  |  2 +-
 drivers/staging/imx-drm/ipuv3-plane.c |  2 +-
 drivers/video/Kconfig |  1 +
 .../staging/imx-drm/ipu-v3 = include/video}/imx-ipu-v3.h |  0
 16 files changed, 20 insertions(+), 22 deletions(-)
 create mode 100644 drivers/gpu/ipu-v3/Kconfig
 rename drivers/{staging/imx-drm = gpu}/ipu-v3/Makefile (59%)
 rename drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-common.c (99%)
 rename drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-dc.c (99%)
 rename drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-di.c (99%)
 rename drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-dmfc.c (99%)
 rename drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-dp.c (99%)
 rename drivers/{staging/imx-drm = gpu}/ipu-v3/ipu-prv.h (99%)
 rename {drivers/staging/imx-drm/ipu-v3 = include/video}/imx-ipu-v3.h (100%)

diff --git a/drivers/gpu/Makefile b/drivers/gpu/Makefile
index d8a22c2..70da9eb 100644
--- a/drivers/gpu/Makefile
+++ b/drivers/gpu/Makefile
@@ -1,2 +1,3 @@
 obj-y  += drm/ vga/
 obj-$(CONFIG_TEGRA_HOST1X) += host1x/
+obj-$(CONFIG_IMX_IPUV3_CORE)   += ipu-v3/
diff --git a/drivers/gpu/ipu-v3/Kconfig b/drivers/gpu/ipu-v3/Kconfig
new file mode 100644
index 000..2f228a2
--- /dev/null
+++ b/drivers/gpu/ipu-v3/Kconfig
@@ -0,0 +1,7 @@
+config IMX_IPUV3_CORE
+   tristate IPUv3 core support
+   depends on SOC_IMX5 || SOC_IMX6Q || SOC_IMX6SL || ARCH_MULTIPLATFORM
+   depends on RESET_CONTROLLER
+   help
+ Choose this if you have a i.MX5/6 system and want to use the Image
+ Processing Unit. This option only enables IPU base support.
diff --git a/drivers/staging/imx-drm/ipu-v3/Makefile 
b/drivers/gpu/ipu-v3/Makefile
similarity index 59%
rename from drivers/staging/imx-drm/ipu-v3/Makefile
rename to drivers/gpu/ipu-v3/Makefile
index 28ed72e..d21cc37 100644
--- a/drivers/staging/imx-drm/ipu-v3/Makefile
+++ b/drivers/gpu/ipu-v3/Makefile
@@ -1,3 +1,3 @@
-obj-$(CONFIG_DRM_IMX_IPUV3_CORE) += imx-ipu-v3.o
+obj-$(CONFIG_IMX_IPUV3_CORE) += imx-ipu-v3.o
 
 imx-ipu-v3-objs := ipu-common.o ipu-dc.o ipu-di.o ipu-dp.o ipu-dmfc.o
diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-common.c 
b/drivers/gpu/ipu-v3/ipu-common.c
similarity index 99%
rename from drivers/staging/imx-drm/ipu-v3/ipu-common.c
rename to drivers/gpu/ipu-v3/ipu-common.c
index ca85d3d..7e1f614 100644
--- a/drivers/staging/imx-drm/ipu-v3/ipu-common.c
+++ b/drivers/gpu/ipu-v3/ipu-common.c
@@ -31,7 +31,7 @@
 
 #include drm/drm_fourcc.h
 
-#include imx-ipu-v3.h
+#include video/imx-ipu-v3.h
 #include ipu-prv.h
 
 static inline u32 ipu_cm_read(struct ipu_soc *ipu, unsigned offset)
diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-dc.c 
b/drivers/gpu/ipu-v3/ipu-dc.c
similarity index 99%
rename from drivers/staging/imx-drm/ipu-v3/ipu-dc.c
rename to drivers/gpu/ipu-v3/ipu-dc.c
index d5de8bb..9f1e5ef 100644
--- a/drivers/staging/imx-drm/ipu-v3/ipu-dc.c
+++ b/drivers/gpu/ipu-v3/ipu-dc.c
@@ -20,8 +20,7 @@
 #include linux/delay.h
 #include linux/io.h
 
-#include ../imx-drm.h
-#include imx-ipu-v3.h
+#include video/imx-ipu-v3.h
 #include ipu-prv.h
 
 #define DC_MAP_CONF_PTR(n) (0x108 + ((n)  ~0x1) * 2)
diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-di.c 
b/drivers/gpu/ipu-v3/ipu-di.c
similarity index 99%
rename from drivers/staging/imx-drm/ipu-v3/ipu-di.c
rename to drivers/gpu/ipu-v3/ipu-di.c
index 82a9eba..42e60b4 100644
--- a/drivers/staging/imx-drm/ipu-v3/ipu-di.c
+++ 

Re: [PATCH 3/3] gpu: ipu-v3: Move i.MX IPUv3 core driver out of staging

2014-02-25 Thread Philipp Zabel
Am Dienstag, den 25.02.2014, 12:43 +0100 schrieb Philipp Zabel:
 The i.MX Image Processing Unit (IPU) contains a number of image processing
 blocks that sit right in the middle between DRM and V4L2. Some of the modules,
 such as Display Controller, Processor, and Interface (DC, DP, DI) or CMOS
 Sensor Interface (CSI) and their FIFOs could be assigned to either framework,
 but others, such as the dma controller (IDMAC) and image converter (IC) can
 be used by both.
 The IPUv3 core driver provides an internal API to access the modules, to be
 used by both DRM and V4L2 IPUv3 drivers.
[...]

This one is missing:

diff --git a/drivers/staging/imx-drm/imx-hdmi.c 
b/drivers/staging/imx-drm/imx-hdmi.c
index cb4eb76..9aeb863 100644
--- a/drivers/staging/imx-drm/imx-hdmi.c
+++ b/drivers/staging/imx-drm/imx-hdmi.c
@@ -28,7 +28,8 @@
 #include drm/drm_edid.h
 #include drm/drm_encoder_slave.h
 
-#include ipu-v3/imx-ipu-v3.h
+#include video/imx-ipu-v3.h
+
 #include imx-hdmi.h
 #include imx-drm.h
 

regards
Philipp

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel