[01/10] include: linux: Add Renesas RZ/G2L CRU Pixel Formats
diff mbox series

Message ID 20250724065256.75175-2-dan.scally@ideasonboard.com
State New
Headers show
Series
  • Support memory input mode in mali-c55
Related show

Commit Message

Dan Scally July 24, 2025, 6:52 a.m. UTC
Add the RZ/G2L's Pixel Formats, which are not yet upstream, to
videodev2.h

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
---
 include/linux/videodev2.h | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Kieran Bingham July 24, 2025, 7:50 a.m. UTC | #1
Quoting Daniel Scally (2025-07-24 07:52:47)
> Add the RZ/G2L's Pixel Formats, which are not yet upstream, to
> videodev2.h
> 
> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>


Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

I wonder if we should keep 'our changes' we make on top of the upstream
kernel separated in a patch somehow - but we'd have to make something
then generate the 'includes folder' from a template and some patches
which just sounds awkward - so I guess we should just keep tracking them
manually for now.



> ---
>  include/linux/videodev2.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
> index 317d063a..defc80ef 100644
> --- a/include/linux/videodev2.h
> +++ b/include/linux/videodev2.h
> @@ -801,6 +801,12 @@ struct v4l2_pix_format {
>  #define V4L2_PIX_FMT_PISP_COMP2_BGGR   v4l2_fourcc('P', 'C', '2', 'B') /* PiSP 8-bit mode 2 compressed BGGR bayer */
>  #define V4L2_PIX_FMT_PISP_COMP2_MONO   v4l2_fourcc('P', 'C', '2', 'M') /* PiSP 8-bit mode 2 compressed monochrome */
>  
> +/* Renesas RZ/V2H CRU packed formats. 64-bit units with contiguous pixels */
> +#define V4L2_PIX_FMT_RAW_CRU10 v4l2_fourcc('C', 'R', '1', '0')
> +#define V4L2_PIX_FMT_RAW_CRU12 v4l2_fourcc('C', 'R', '1', '2')
> +#define V4L2_PIX_FMT_RAW_CRU14 v4l2_fourcc('C', 'R', '1', '4')
> +#define V4L2_PIX_FMT_RAW_CRU20 v4l2_fourcc('C', 'R', '2', '0')
> +
>  /* SDR formats - used only for Software Defined Radio devices */
>  #define V4L2_SDR_FMT_CU8          v4l2_fourcc('C', 'U', '0', '8') /* IQ u8 */
>  #define V4L2_SDR_FMT_CU16LE       v4l2_fourcc('C', 'U', '1', '6') /* IQ u16le */
> -- 
> 2.30.2
>

Patch
diff mbox series

diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 317d063a..defc80ef 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -801,6 +801,12 @@  struct v4l2_pix_format {
 #define V4L2_PIX_FMT_PISP_COMP2_BGGR	v4l2_fourcc('P', 'C', '2', 'B') /* PiSP 8-bit mode 2 compressed BGGR bayer */
 #define V4L2_PIX_FMT_PISP_COMP2_MONO	v4l2_fourcc('P', 'C', '2', 'M') /* PiSP 8-bit mode 2 compressed monochrome */
 
+/* Renesas RZ/V2H CRU packed formats. 64-bit units with contiguous pixels */
+#define V4L2_PIX_FMT_RAW_CRU10	v4l2_fourcc('C', 'R', '1', '0')
+#define V4L2_PIX_FMT_RAW_CRU12	v4l2_fourcc('C', 'R', '1', '2')
+#define V4L2_PIX_FMT_RAW_CRU14	v4l2_fourcc('C', 'R', '1', '4')
+#define V4L2_PIX_FMT_RAW_CRU20	v4l2_fourcc('C', 'R', '2', '0')
+
 /* SDR formats - used only for Software Defined Radio devices */
 #define V4L2_SDR_FMT_CU8          v4l2_fourcc('C', 'U', '0', '8') /* IQ u8 */
 #define V4L2_SDR_FMT_CU16LE       v4l2_fourcc('C', 'U', '1', '6') /* IQ u16le */