forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/platform/xilinx/xilinx-vip.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Xilinx Video IP Core
34 *
....@@ -6,10 +7,6 @@
67 *
78 * Contacts: Hyun Kwon <hyun.kwon@xilinx.com>
89 * Laurent Pinchart <laurent.pinchart@ideasonboard.com>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License version 2 as
12
- * published by the Free Software Foundation.
1310 */
1411
1512 #include <linux/clk.h>
....@@ -28,21 +25,21 @@
2825
2926 static const struct xvip_video_format xvip_video_formats[] = {
3027 { XVIP_VF_YUV_422, 8, NULL, MEDIA_BUS_FMT_UYVY8_1X16,
31
- 2, V4L2_PIX_FMT_YUYV, "4:2:2, packed, YUYV" },
28
+ 2, V4L2_PIX_FMT_YUYV },
3229 { XVIP_VF_YUV_444, 8, NULL, MEDIA_BUS_FMT_VUY8_1X24,
33
- 3, V4L2_PIX_FMT_YUV444, "4:4:4, packed, YUYV" },
30
+ 3, V4L2_PIX_FMT_YUV444 },
3431 { XVIP_VF_RBG, 8, NULL, MEDIA_BUS_FMT_RBG888_1X24,
35
- 3, 0, NULL },
32
+ 3, 0 },
3633 { XVIP_VF_MONO_SENSOR, 8, "mono", MEDIA_BUS_FMT_Y8_1X8,
37
- 1, V4L2_PIX_FMT_GREY, "Greyscale 8-bit" },
34
+ 1, V4L2_PIX_FMT_GREY },
3835 { XVIP_VF_MONO_SENSOR, 8, "rggb", MEDIA_BUS_FMT_SRGGB8_1X8,
39
- 1, V4L2_PIX_FMT_SGRBG8, "Bayer 8-bit RGGB" },
36
+ 1, V4L2_PIX_FMT_SRGGB8 },
4037 { XVIP_VF_MONO_SENSOR, 8, "grbg", MEDIA_BUS_FMT_SGRBG8_1X8,
41
- 1, V4L2_PIX_FMT_SGRBG8, "Bayer 8-bit GRBG" },
38
+ 1, V4L2_PIX_FMT_SGRBG8 },
4239 { XVIP_VF_MONO_SENSOR, 8, "gbrg", MEDIA_BUS_FMT_SGBRG8_1X8,
43
- 1, V4L2_PIX_FMT_SGBRG8, "Bayer 8-bit GBRG" },
40
+ 1, V4L2_PIX_FMT_SGBRG8 },
4441 { XVIP_VF_MONO_SENSOR, 8, "bggr", MEDIA_BUS_FMT_SBGGR8_1X8,
45
- 1, V4L2_PIX_FMT_SBGGR8, "Bayer 8-bit BGGR" },
42
+ 1, V4L2_PIX_FMT_SBGGR8 },
4643 };
4744
4845 /**
....@@ -169,7 +166,7 @@
169166 * the register, otherwise the bitmask is cleared from the register
170167 * when the flag @set is false.
171168 *
172
- * Fox eample, this function can be used to set a control with a boolean value
169
+ * Fox example, this function can be used to set a control with a boolean value
173170 * requested by users. If the caller knows whether to set or clear in the first
174171 * place, the caller should call xvip_clr() or xvip_set() directly instead of
175172 * using this function.