Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: include: media: Add Renesas CEU driver interface

Add renesas-ceu header file.

Do not remove the existing sh_mobile_ceu.h one as long as the original
driver does not go away.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Jacopo Mondi and committed by
Mauro Carvalho Chehab
20b56052 a444e518

+26
+26
include/media/drv-intf/renesas-ceu.h
··· 1 + // SPDX-License-Identifier: GPL-2.0 2 + /* 3 + * renesas-ceu.h - Renesas CEU driver interface 4 + * 5 + * Copyright 2017-2018 Jacopo Mondi <jacopo+renesas@jmondi.org> 6 + */ 7 + 8 + #ifndef __MEDIA_DRV_INTF_RENESAS_CEU_H__ 9 + #define __MEDIA_DRV_INTF_RENESAS_CEU_H__ 10 + 11 + #define CEU_MAX_SUBDEVS 2 12 + 13 + struct ceu_async_subdev { 14 + unsigned long flags; 15 + unsigned char bus_width; 16 + unsigned char bus_shift; 17 + unsigned int i2c_adapter_id; 18 + unsigned int i2c_address; 19 + }; 20 + 21 + struct ceu_platform_data { 22 + unsigned int num_subdevs; 23 + struct ceu_async_subdev subdevs[CEU_MAX_SUBDEVS]; 24 + }; 25 + 26 + #endif /* ___MEDIA_DRV_INTF_RENESAS_CEU_H__ */