sevki
c9e1dba412
setup CI/CD for kernel development - added CodeQL for code scanning - every pr is built as an image and is available for 30days on https://oklinux.dev - tagged and released on github for now Signed-off-by: sevki <s@sevki.io>
44 lines
888 B
C
44 lines
888 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) 2014 - 2020 Intel Corporation */
|
|
|
|
#ifndef MEDIA_IPU_H
|
|
#define MEDIA_IPU_H
|
|
|
|
#include <linux/i2c.h>
|
|
#include <linux/clkdev.h>
|
|
#include <media/v4l2-async.h>
|
|
|
|
#define IPU_ISYS_MAX_CSI2_LANES 4
|
|
|
|
struct ipu_isys_csi2_config {
|
|
unsigned int nlanes;
|
|
unsigned int port;
|
|
};
|
|
|
|
struct ipu_isys_subdev_i2c_info {
|
|
struct i2c_board_info board_info;
|
|
int i2c_adapter_id;
|
|
char i2c_adapter_bdf[32];
|
|
};
|
|
|
|
struct ipu_isys_subdev_info {
|
|
struct ipu_isys_csi2_config *csi2;
|
|
struct ipu_isys_subdev_i2c_info i2c;
|
|
};
|
|
|
|
struct ipu_isys_clk_mapping {
|
|
struct clk_lookup clkdev_data;
|
|
char *platform_clock_name;
|
|
};
|
|
|
|
struct ipu_isys_subdev_pdata {
|
|
struct ipu_isys_subdev_info **subdevs;
|
|
struct ipu_isys_clk_mapping *clk_map;
|
|
};
|
|
|
|
struct sensor_async_subdev {
|
|
struct v4l2_async_connection asd;
|
|
struct ipu_isys_csi2_config csi2;
|
|
};
|
|
|
|
#endif /* MEDIA_IPU_H */
|