1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (C) 2026 Renesas Electronics Corp. 4 * Copyright (C) 2026 Ideas on Board Oy 5 * Copyright (C) 2026 Ragnatech AB 6 */ 7 8 #include "rpp_module.h" 9 10 #define XYZ2LUV_VERSION_REG 0x0000 11 #define XYZ2LUV_U_REF_REG 0x0004 12 #define XYZ2LUV_V_REF_REG 0x0008 13 #define XYZ2LUV_LUMA_OUT_FAC_REG 0x000c 14 #define XYZ2LUV_CHROMA_OUT_FAC_REG 0x0010 15 16 static int rppx1_xyz2luv_probe(struct rpp_module *mod) 17 { 18 /* Version check. */ 19 if (rpp_module_read(mod, XYZ2LUV_VERSION_REG) != 4) 20 return -EINVAL; 21 22 return 0; 23 } 24 25 const struct rpp_module_ops rppx1_xyz2luv_ops = { 26 .probe = rppx1_xyz2luv_probe, 27 }; 28