diff --git a/lichee/linux-4.9/drivers/media/platform/sunxi-vin/modules/sensor/sc2356_mipi.c b/lichee/linux-4.9/drivers/media/platform/sunxi-vin/modules/sensor/sc2356_mipi.c index 66515791e..f7f8dc5b0 100755 --- a/lichee/linux-4.9/drivers/media/platform/sunxi-vin/modules/sensor/sc2356_mipi.c +++ b/lichee/linux-4.9/drivers/media/platform/sunxi-vin/modules/sensor/sc2356_mipi.c @@ -239,7 +239,7 @@ static struct regval_list sensor_800x600_30_regs[] = { static struct regval_list sensor_1600x1200_30_regs[] = { {0x0103,0x01}, {0x0100,0x00}, - {0x3221,0x06},//hflip:0x06 vflip:0x60 + {0x3221,0x60},//hflip:0x06 vflip:0x60 {0x36e9,0x80}, {0x36e9,0x24}, {0x301f,0x01}, @@ -737,7 +737,7 @@ static int sensor_s_hflip(struct v4l2_subdev *sd, int enable) static int sensor_get_fmt_mbus_core(struct v4l2_subdev *sd, int *code) { - *code = MEDIA_BUS_FMT_SBGGR10_1X10; + *code = MEDIA_BUS_FMT_SRGGB10_1X10;//;MEDIA_BUS_FMT_SBGGR10_1X10; return 0; } @@ -1158,7 +1158,7 @@ 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_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */ + .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,//MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */ .regs = sensor_fmt_raw, .regs_size = ARRAY_SIZE(sensor_fmt_raw), .bpp = 1 diff --git a/lichee/rtos-hal/hal/source/vin/modules/sensor/sc2356_mipi.c b/lichee/rtos-hal/hal/source/vin/modules/sensor/sc2356_mipi.c index 7b71d0490..726c50ef3 100755 --- a/lichee/rtos-hal/hal/source/vin/modules/sensor/sc2356_mipi.c +++ b/lichee/rtos-hal/hal/source/vin/modules/sensor/sc2356_mipi.c @@ -340,7 +340,7 @@ static struct regval_list sensor_800x600_30_regs[] = { static struct regval_list sensor_1600x1200_30_regs[] = { {0x0103,0x01}, {0x0100,0x00}, - {0x3221,0x06},//hflip:0x06 vflip:0x60 + {0x3221,0x60},//hflip:0x06 vflip:0x60 {0x36e9,0x80}, {0x36e9,0x24}, {0x301f,0x01}, @@ -695,7 +695,7 @@ static int sensor_init(int id) static struct sensor_format_struct sensor_formats[] = { #ifdef SC2356_800X600_30FPS { - .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */ + .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,//MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */ .width = 800, .height = 600,//1080, .hoffset = 0, @@ -719,7 +719,7 @@ static struct sensor_format_struct sensor_formats[] = { #ifdef SC2356_1600X1200_30FPS { - .mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */ + .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,//MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */ .width = 1600, .height = 1200,//1080, .hoffset = 0, diff --git a/target/allwinner/v851s3-fastboot_sl100_front/busybox-init-base-files/etc/init.d/rc.final b/target/allwinner/v851s3-fastboot_sl100_front/busybox-init-base-files/etc/init.d/rc.final index 1bfb0e43b..0a46c5c22 100755 --- a/target/allwinner/v851s3-fastboot_sl100_front/busybox-init-base-files/etc/init.d/rc.final +++ b/target/allwinner/v851s3-fastboot_sl100_front/busybox-init-base-files/etc/init.d/rc.final @@ -106,7 +106,7 @@ echo 0 > /sys/class/gpio/gpio162/value echo 9 > /sys/class/pwm/pwmchip0/export echo 100000 > /sys/class/pwm/pwmchip0/pwm9/period -echo 70000 > /sys/class/pwm/pwmchip0/pwm9/duty_cycle +echo 50000 > /sys/class/pwm/pwmchip0/pwm9/duty_cycle echo 1 > /sys/class/pwm/pwmchip0/pwm9/enable # echo 1 > /sys/class/gpio/gpio160/value