Skip to contentSkip to conversation

media: s5p-tv: support tv driver on Samsung Exynos5250 SoC

PATCH New Jiun Yu 1 participant 1 message Feb 29, 2012 Media (V4L/DVB)

lore
Share & tools
lore

Jiun Yu

author
#0 lore raw

PATCH 1/1 media: s5p-tv: support tv driver on Samsung Exynos5250 SoC

From: Jiun Yu <[email protected]>

HDMI Tx in Samsung Exynos5250 SoC supports hdmi v1.4a specification. And the hdmiphy configuration values are changed.

This patch is for supporting mixer and HDMI Tx on Samsung Exynos5250 SoC

---
 drivers/media/video/s5p-tv/Makefile           |    7 +
 drivers/media/video/s5p-tv/hdmi.h             |  211 ++++
 drivers/media/video/s5p-tv/hdmi_drv.c         |  518 +----------
 drivers/media/video/s5p-tv/hdmi_reg_v13.c     |  413 ++++++++
 drivers/media/video/s5p-tv/hdmi_reg_v14.c     |  710 ++++++++++++++
 drivers/media/video/s5p-tv/hdmiphy_conf_v13.c |   52 +
 drivers/media/video/s5p-tv/hdmiphy_conf_v14.c |   52 +
 drivers/media/video/s5p-tv/hdmiphy_drv.c      |   45 +-
 drivers/media/video/s5p-tv/mixer_video.c      |    2 +-
 drivers/media/video/s5p-tv/regs-hdmi-v13.h    |  145 +++
 drivers/media/video/s5p-tv/regs-hdmi-v14.h    | 1273 +++++++++++++++++++++++++
 drivers/media/video/s5p-tv/regs-hdmi.h        |  145 ---
 12 files changed, 2880 insertions(+), 693 deletions(-)
 create mode 100644 drivers/media/video/s5p-tv/hdmi.h
 create mode 100644 drivers/media/video/s5p-tv/hdmi_reg_v13.c
 create mode 100644 drivers/media/video/s5p-tv/hdmi_reg_v14.c
 create mode 100644 drivers/media/video/s5p-tv/hdmiphy_conf_v13.c
 create mode 100644 drivers/media/video/s5p-tv/hdmiphy_conf_v14.c
 create mode 100644 drivers/media/video/s5p-tv/regs-hdmi-v13.h
 create mode 100644 drivers/media/video/s5p-tv/regs-hdmi-v14.h
 delete mode 100644 drivers/media/video/s5p-tv/regs-hdmi.h
drivers/media/video/s5p-tv/Makefile +7 -0
index 37e4c17..a93b0af 100644
@@ -15,3 +15,10 @@ s5p-sdo-y += sdo_drv.o
 obj-$(CONFIG_VIDEO_SAMSUNG_S5P_MIXER) += s5p-mixer.o
 s5p-mixer-y += mixer_drv.o mixer_video.o mixer_reg.o mixer_grp_layer.o mixer_vp_layer.o
 
+ifeq ($(CONFIG_VIDEO_SAMSUNG_S5P_HDMI),y)
+	ifeq ($(CONFIG_CPU_EXYNOS4210), y)
+		s5p-hdmi-y += hdmi_reg_v13.o hdmiphy_conf_v13.o
+	else
+		s5p-hdmi-y += hdmi_reg_v14.o hdmiphy_conf_v14.o
+	endif
+endif
drivers/media/video/s5p-tv/hdmi.h new file +211 -0

211 lines not on this page · raw message

drivers/media/video/s5p-tv/hdmi_drv.c +14 -504

581 lines not on this page · raw message

drivers/media/video/s5p-tv/hdmi_reg_v13.c new file +413 -0

413 lines not on this page · raw message

drivers/media/video/s5p-tv/hdmi_reg_v14.c new file +710 -0

710 lines not on this page · raw message

drivers/media/video/s5p-tv/hdmiphy_conf_v13.c new file +52 -0

52 lines not on this page · raw message

drivers/media/video/s5p-tv/hdmiphy_conf_v14.c new file +52 -0

52 lines not on this page · raw message

drivers/media/video/s5p-tv/hdmiphy_drv.c +2 -43

60 lines not on this page · raw message

drivers/media/video/s5p-tv/mixer_video.c +1 -1
index 2ca580b..a91503c 100644
@@ -825,7 +825,7 @@ static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *pfmt,
 	for (i = 0; i < fmt->num_subframes; ++i) {
 		alloc_ctxs[i] = layer->mdev->alloc_ctx;
 		sizes[i] = PAGE_ALIGN(planes[i].sizeimage);
-		mxr_dbg(mdev, "size[%d] = %08lx\n", i, sizes[i]);
+		mxr_dbg(mdev, "size[%d] = %08x\n", i, sizes[i]);
 	}
 
 	if (*nbuffers == 0)
drivers/media/video/s5p-tv/regs-hdmi-v13.h new file +145 -0

145 lines not on this page · raw message

drivers/media/video/s5p-tv/regs-hdmi-v14.h new file +1273 -0

758 lines not on this page · raw message

drivers/media/video/s5p-tv/regs-hdmi.h deleted +0 -145

145 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.1

Part of the diff is not shown here. View the raw message.