| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Xilinx Video IP Core |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Contacts: Hyun Kwon <hyun.kwon@xilinx.com> |
|---|
| 8 | 9 | * 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. |
|---|
| 13 | 10 | */ |
|---|
| 14 | 11 | |
|---|
| 15 | 12 | #include <linux/clk.h> |
|---|
| .. | .. |
|---|
| 28 | 25 | |
|---|
| 29 | 26 | static const struct xvip_video_format xvip_video_formats[] = { |
|---|
| 30 | 27 | { 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 }, |
|---|
| 32 | 29 | { 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 }, |
|---|
| 34 | 31 | { XVIP_VF_RBG, 8, NULL, MEDIA_BUS_FMT_RBG888_1X24, |
|---|
| 35 | | - 3, 0, NULL }, |
|---|
| 32 | + 3, 0 }, |
|---|
| 36 | 33 | { 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 }, |
|---|
| 38 | 35 | { 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 }, |
|---|
| 40 | 37 | { 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 }, |
|---|
| 42 | 39 | { 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 }, |
|---|
| 44 | 41 | { 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 }, |
|---|
| 46 | 43 | }; |
|---|
| 47 | 44 | |
|---|
| 48 | 45 | /** |
|---|
| .. | .. |
|---|
| 169 | 166 | * the register, otherwise the bitmask is cleared from the register |
|---|
| 170 | 167 | * when the flag @set is false. |
|---|
| 171 | 168 | * |
|---|
| 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 |
|---|
| 173 | 170 | * requested by users. If the caller knows whether to set or clear in the first |
|---|
| 174 | 171 | * place, the caller should call xvip_clr() or xvip_set() directly instead of |
|---|
| 175 | 172 | * using this function. |
|---|