后板配置
This commit is contained in:
@@ -119,7 +119,7 @@ static struct regval_list sensor_1080p20_regs[] = {
|
||||
{0x0d76, 0x00},
|
||||
{0x0d41, 0x06},
|
||||
{0x0d42, 0x98},
|
||||
|
||||
|
||||
{0x0d7a, 0x10},
|
||||
{0x0d19, 0x31},
|
||||
{0x0d25, 0xcb},
|
||||
@@ -140,7 +140,7 @@ static struct regval_list sensor_1080p20_regs[] = {
|
||||
{0x0d66, 0x42},
|
||||
{0x008c, 0x07},
|
||||
{0x008d, 0xff},
|
||||
|
||||
|
||||
/*gain*/
|
||||
{0x007a, 0x50}, //global gain
|
||||
{0x00d0, 0x00},
|
||||
@@ -915,6 +915,9 @@ static int sensor_get_temp(struct v4l2_subdev *sd, struct sensor_temp *temp)
|
||||
static int sensor_get_fmt_mbus_core(struct v4l2_subdev *sd, int *code)
|
||||
{
|
||||
*code = MEDIA_BUS_FMT_SRGGB10_1X10;
|
||||
//*code = MEDIA_BUS_FMT_SGBRG10_1X10;
|
||||
//*code = MEDIA_BUS_FMT_SBGGR10_1X10;
|
||||
//*code = MEDIA_BUS_FMT_SGRBG10_1X10,
|
||||
sensor_print("gc2083 will change bayer format by itself!\n");
|
||||
|
||||
return 0;
|
||||
@@ -1214,7 +1217,10 @@ static long sensor_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)
|
||||
static struct sensor_format_struct sensor_formats[] = {
|
||||
{
|
||||
.desc = "Raw RGB Bayer",
|
||||
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
|
||||
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,
|
||||
//.mbus_code = MEDIA_BUS_FMT_SGBRG10_1X10,
|
||||
//.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10,
|
||||
//.mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10,
|
||||
.regs = sensor_fmt_raw,
|
||||
.regs_size = ARRAY_SIZE(sensor_fmt_raw),
|
||||
.bpp = 1
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#define SENSOR_NAME_2 "gc2083_mipi_2"
|
||||
|
||||
#define GC2083_1920X1088_15FPS
|
||||
//#define GC2083_1920X1088_20FPS
|
||||
// #define GC2083_1920X1088_20FPS
|
||||
#define SENSOR_FRAME_RATE 15
|
||||
|
||||
static int sensor_power_count[2];
|
||||
@@ -275,7 +275,7 @@ static struct regval_list sensor_1080p15_regs[] = {
|
||||
{0x0d66, 0x42},
|
||||
{0x008c, 0x05},
|
||||
{0x008d, 0xff},
|
||||
|
||||
|
||||
/*gain*/
|
||||
{0x007a, 0x50}, //global gain
|
||||
{0x00d0, 0x00},
|
||||
|
||||
Reference in New Issue
Block a user