增加所有文件
This commit is contained in:
31
drivers/include/camera/cam_res.h
Normal file
31
drivers/include/camera/cam_res.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @file cam_res.h
|
||||
*
|
||||
* @brief Semidrive camera resource header file
|
||||
*
|
||||
* @copyright Copyright (c) 2021 Semidrive Semiconductor.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Revision History:
|
||||
* -----------------
|
||||
*/
|
||||
#ifndef __CAM_RES_H__
|
||||
#define __CAM_RES_H__
|
||||
|
||||
enum camera_id { CAMERA_0 = 0, CAMERA_1, CAMERA_2, CAMERA_NUM };
|
||||
|
||||
struct camera_res_cfg {
|
||||
unsigned int gpio[4];
|
||||
unsigned int i2c_res;
|
||||
unsigned int i2c_addr;
|
||||
char *name;
|
||||
void *i2c_handle;
|
||||
};
|
||||
|
||||
extern struct camera_res_cfg g_cam_cfg[CAMERA_NUM];
|
||||
|
||||
#if CONFIG_CSI_IOMUX
|
||||
extern void csi_iomux_cfg(int sel);
|
||||
#endif
|
||||
|
||||
#endif /* __CAM_RES_H__ */
|
||||
Reference in New Issue
Block a user