Files
kernel_common_drivers/include/linux/amlogic/media/utils/am_com.h
T
junwei.ma 69cacc04bf ISP: G12B & SM1 Bringup - Kernel - Display - mipi camera of SM1 [1/1]
PD#SWPL-108141

Problem:
5. 15 no camera driver

Solution:
porting camera driver to kernel-5.15

Verify:
ok

Change-Id: I92789c946a8f2456f6bb68adc52ece77cd730f81
Signed-off-by: junwei.ma <junwei.ma@amlogic.com>
2023-04-04 19:48:16 +08:00

39 lines
736 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef AM_COM_H
#define AM_COM_H
#include <linux/time.h>
#include <uapi/linux/time.h>
int flashlight_init(void);
int vm_init_module(void);
int gc2145_i2c_driver_init(void);
int gc2145_mipi_i2c_driver_init(void);
int ov5640_i2c_driver_init(void);
void flashlight_exit(void);
void vm_remove_module(void);
struct timeval {
__kernel_old_time_t tv_sec; /* seconds */
__kernel_suseconds_t tv_usec; /* microseconds */
};
static inline void do_gettimeofday(struct timeval *tv)
{
struct timespec64 now;
ktime_get_real_ts64(&now);
tv->tv_sec = now.tv_sec;
tv->tv_usec = now.tv_nsec / 1000;
}
#endif /* AM_COM_H */