From 164e8a1d380d329b8af34f48e72b6532f5146642 Mon Sep 17 00:00:00 2001 From: Thuy Tran Date: Sat, 23 Dec 2017 14:00:16 +0700 Subject: rcar-gen3: kernel-module-uvcs-drv: Update new package name Video Codec new packages have been released. This commit modifies recipe to add UVCS driver new package. Signed-off-by: Thuy Tran Signed-off-by: Takamitsu Honda --- .../kernel-module-uvcs/kernel-module-uvcs-drv.bb | 7 +-- .../0001-update-uvcs-driver-for-M3N-support.patch | 60 ---------------------- 2 files changed, 2 insertions(+), 65 deletions(-) delete mode 100644 meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv/0001-update-uvcs-driver-for-M3N-support.patch (limited to 'meta-rcar-gen3') diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bb b/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bb index c4c64ce..eb2990a 100644 --- a/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bb +++ b/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bb @@ -16,13 +16,10 @@ require include/rcar-gen3-path-common.inc inherit module PR = "r0" -UVCS_SRC = "${@base_conditional('USE_VIDEO_OMX', '1', 'file://RCG3VUDRL4001ZDO.tar.bz2', '', d)}" +UVCS_SRC = "${@base_conditional('USE_VIDEO_OMX', '1', 'file://RCG3VUDRL4101ZDO.tar.bz2', '', d)}" SRC_URI = "${UVCS_SRC}" -# Add a patch file to support M3N board -SRC_URI_append = " file://0001-update-uvcs-driver-for-M3N-support.patch" - -S = "${WORKDIR}/RCG3VUDRL4001ZDO" +S = "${WORKDIR}/RCG3VUDRL4101ZDO" EXTRA_OEMAKE = "KERNELDIR=${STAGING_KERNEL_BUILDDIR}" EXTRA_OEMAKE += "CROSS_COMPILE=${CROSS_COMPILE}" diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv/0001-update-uvcs-driver-for-M3N-support.patch b/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv/0001-update-uvcs-driver-for-M3N-support.patch deleted file mode 100644 index d8fda7b..0000000 --- a/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv/0001-update-uvcs-driver-for-M3N-support.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 7368ecd2aa50c064c3cd0da6b751d1cbed0c4c41 Mon Sep 17 00:00:00 2001 -From: Katsumasa Matsunaga -Date: Fri, 6 Oct 2017 13:26:01 +0900 -Subject: soc: renesas: Add support M3N for UVCS driver - -Support new device R-Car M3N for UVCS driver. - -Signed-off-by: Katsumasa Matsunaga - -diff --git a/src/lkm/uvcs_lkm_internal.h b/src/lkm/uvcs_lkm_internal.h -index 9e1f53c..b249d68 100644 ---- a/src/lkm/uvcs_lkm_internal.h -+++ b/src/lkm/uvcs_lkm_internal.h -@@ -89,6 +89,7 @@ - #define UVCS_REG_SRSTCLR (0xE6150944u) - #define UVCS_LSITYPE_H3 (0x4Fu) - #define UVCS_LSITYPE_M3W (0x52u) -+#define UVCS_LSITYPE_M3N (0x55u) - #define UVCS_IPOPT_DEFAULT (0x000000Au) - - /* register size */ -diff --git a/src/lkm/uvcs_lkm_uf_io.c b/src/lkm/uvcs_lkm_uf_io.c -index c94277f..50dc97b 100644 ---- a/src/lkm/uvcs_lkm_uf_io.c -+++ b/src/lkm/uvcs_lkm_uf_io.c -@@ -124,6 +124,11 @@ static const struct soc_device_attribute r8a7796[] = { - { }, - }; - -+static const struct soc_device_attribute r8a77965[] = { -+ { .soc_id = "r8a77965" }, -+ { }, -+}; -+ - static const struct soc_device_attribute device_es1x[] = { - { .revision = "ES1.*" }, - { }, -@@ -526,6 +531,10 @@ int uvcs_io_init( - } - break; - -+ case UVCS_LSITYPE_M3N: -+ iparam->ip_group_id[0][UVCS_CMN_BASE_ADDR_VLC] = 1u; -+ break; -+ - default: - break; - } -@@ -647,6 +656,8 @@ static void uvcs_get_lsi_info( - drv->lsi_info.product_id = UVCS_LSITYPE_H3; - } else if (soc_device_match(r8a7796)) { - drv->lsi_info.product_id = UVCS_LSITYPE_M3W; -+ } else if (soc_device_match(r8a77965)) { -+ drv->lsi_info.product_id = UVCS_LSITYPE_M3N; - } else { - drv->lsi_info.product_id = 0; - pr_err("unknown soc device\n"); --- -1.9.1 - -- cgit 1.2.3-korg