blob: 6e32264d3825a5e744c8ed5de9c35f317c41131a [file] [log] [blame]
/*
* Z-star vc0321 library
*
* Copyright (C) 2009-2010 Jean-Fran├žois Moine <http://moinejf.free.fr>
* Copyright (C) 2006 Koninski Artur takeshi87@o2.pl
* Copyright (C) 2006 Michel Xhaard
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#define MODULE_NAME "vc032x"
#include "gspca.h"
MODULE_AUTHOR("Jean-Fran├žois Moine <http://moinejf.free.fr>");
MODULE_DESCRIPTION("GSPCA/VC032X USB Camera Driver");
MODULE_LICENSE("GPL");
/* specific webcam descriptor */
struct sd {
struct gspca_dev gspca_dev; /* !! must be the first item */
struct { /* hvflip cluster */
struct v4l2_ctrl *hflip;
struct v4l2_ctrl *vflip;
};
u8 image_offset;
u8 bridge;
u8 sensor;
u8 flags;
#define FL_SAMSUNG 0x01 /* SamsungQ1 (2 sensors) */
#define FL_HFLIP 0x02 /* mirrored by default */
#define FL_VFLIP 0x04 /* vertical flipped by default */
};
enum bridges {
BRIDGE_VC0321,
BRIDGE_VC0323,
};
enum sensors {
SENSOR_HV7131R,
SENSOR_MI0360,
SENSOR_MI1310_SOC,
SENSOR_MI1320,
SENSOR_MI1320_SOC,
SENSOR_OV7660,
SENSOR_OV7670,
SENSOR_PO1200,
SENSOR_PO3130NC,
SENSOR_POxxxx,
NSENSORS
};
static const struct v4l2_pix_format vc0321_mode[] = {
{320, 240, V4L2_PIX_FMT_YVYU, V4L2_FIELD_NONE,
.bytesperline = 320 * 2,
.sizeimage = 320 * 240 * 2,
.colorspace = V4L2_COLORSPACE_SRGB,
.priv = 1},
{640, 480, V4L2_PIX_FMT_YVYU, V4L2_FIELD_NONE,
.bytesperline = 640 * 2,
.sizeimage = 640 * 480 * 2,
.colorspace = V4L2_COLORSPACE_SRGB,
.priv = 0},
};
static const struct v4l2_pix_format vc0323_mode[] = {
{320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
.bytesperline = 320,
.sizeimage = 320 * 240 * 3 / 8 + 590,
.colorspace = V4L2_COLORSPACE_JPEG,
.priv = 1},
{640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
.bytesperline = 640,
.sizeimage = 640 * 480 * 3 / 8 + 590,
.colorspace = V4L2_COLORSPACE_JPEG,
.priv = 0},
{1280, 960, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, /* mi1310_soc only */
.bytesperline = 1280,
.sizeimage = 1280 * 960 * 3 / 8 + 590,
.colorspace = V4L2_COLORSPACE_JPEG,
.priv = 2},
};
static const struct v4l2_pix_format bi_mode[] = {
{320, 240, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE,
.bytesperline = 320 * 2,
.sizeimage = 320 * 240 * 2,
.colorspace = V4L2_COLORSPACE_SRGB,
.priv = 2},
{640, 480, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE,
.bytesperline = 640 * 2,
.sizeimage = 640 * 480 * 2,
.colorspace = V4L2_COLORSPACE_SRGB,
.priv = 1},
{1280, 1024, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE,
.bytesperline = 1280 * 2,
.sizeimage = 1280 * 1024 * 2,
.colorspace = V4L2_COLORSPACE_SRGB,
.priv = 0},
};
static const struct v4l2_pix_format svga_mode[] = {
{800, 600, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
.bytesperline = 800,
.sizeimage = 800 * 600 * 1 / 4 + 590,
.colorspace = V4L2_COLORSPACE_JPEG,
.priv = 0},
};
/* OV7660/7670 registers */
#define OV7660_REG_MVFP 0x1e
#define OV7660_MVFP_MIRROR 0x20
#define OV7660_MVFP_VFLIP 0x10
static const u8 mi0360_matrix[9] = {
0x50, 0xf8, 0xf8, 0xf5, 0x50, 0xfb, 0xff, 0xf1, 0x50
};
static const u8 mi0360_initVGA_JPG[][4] = {
{0xb0, 0x03, 0x19, 0xcc},
{0xb0, 0x04, 0x02, 0xcc},
{0xb3, 0x00, 0x24, 0xcc},
{0xb3, 0x00, 0x25, 0xcc},
{0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x05, 0x01, 0xcc},
{0xb3, 0x06, 0x03, 0xcc},
{0xb3, 0x03, 0x0a, 0xcc},
{0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x01, 0xcc},
{0xb3, 0x23, 0xe0, 0xcc},
{0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x02, 0xcc},
{0xb3, 0x17, 0x7f, 0xcc},
{0xb3, 0x35, 0xdd, 0xcc}, /* i2c add: 5d */
{0xb3, 0x34, 0x02, 0xcc},
{0xb3, 0x00, 0x25, 0xcc},
{0xbc, 0x00, 0x71, 0xcc},
{0xb8, 0x00, 0x13, 0xcc},
{0xb8, 0x27, 0x20, 0xcc},
{0xb8, 0x2c, 0x50, 0xcc},
{0xb8, 0x2d, 0xf8, 0xcc},
{0xb8, 0x2e, 0xf8, 0xcc},
{0xb8, 0x2f, 0xf8, 0xcc},
{0xb8, 0x30, 0x50, 0xcc},
{0xb8, 0x31, 0xf8, 0xcc},
{0xb8, 0x32, 0xf8, 0xcc},
{0xb8, 0x33, 0xf8, 0xcc},
{0xb8, 0x34, 0x50, 0xcc},
{0xb8, 0x35, 0x00, 0xcc},
{0xb8, 0x36, 0x00, 0xcc},
{0xb8, 0x37, 0x00, 0xcc},
{0xb8, 0x01, 0x79, 0xcc},
{0xb8, 0x08, 0xe0, 0xcc},
{0xb3, 0x01, 0x41, 0xcc},
{0xb8, 0x01, 0x79, 0xcc},
{0xb8, 0x14, 0x18, 0xcc},
{0xb8, 0xb2, 0x0a, 0xcc},
{0xb8, 0xb4, 0x0a, 0xcc},
{0xb8, 0xb5, 0x0a, 0xcc},
{0xb8, 0xfe, 0x00, 0xcc},
{0xb8, 0xff, 0x28, 0xcc},
{0xb9, 0x00, 0x28, 0xcc},
{0xb9, 0x01, 0x28, 0xcc},
{0xb9, 0x02, 0x28, 0xcc},
{0xb9, 0x03, 0x00, 0xcc},
{0xb9, 0x04, 0x00, 0xcc},
{0xb9, 0x05, 0x3c, 0xcc},
{0xb9, 0x06, 0x3c, 0xcc},
{0xb9, 0x07, 0x3c, 0xcc},
{0xb9, 0x08, 0x3c, 0xcc},
{0xb8, 0x8e, 0x00, 0xcc},
{0xb8, 0x8f, 0xff, 0xcc},
{0xb8, 0x81, 0x09, 0xcc},
{0x31, 0x00, 0x00, 0xbb},
{0x09, 0x01, 0xc7, 0xbb},
{0x34, 0x01, 0x00, 0xbb},
{0x2b, 0x00, 0x28, 0xbb},
{0x2c, 0x00, 0x30, 0xbb},
{0x2d, 0x00, 0x30, 0xbb},
{0x2e, 0x00, 0x28, 0xbb},
{0x62, 0x04, 0x11, 0xbb},
{0x03, 0x01, 0xe0, 0xbb},
{0x2c, 0x00, 0x2c, 0xbb},
{0x20, 0xd0, 0x00, 0xbb},
{0x01, 0x00, 0x08, 0xbb},
{0x06, 0x00, 0x10, 0xbb},
{0x05, 0x00, 0x20, 0xbb},
{0x20, 0x00, 0x00, 0xbb},
{0xb6, 0x00, 0x00, 0xcc},
{0xb6, 0x03, 0x02, 0xcc},
{0xb6, 0x02, 0x80, 0xcc},
{0xb6, 0x05, 0x01, 0xcc},
{0xb6, 0x04, 0xe0, 0xcc},
{0xb6, 0x12, 0x78, 0xcc},
{0xb6, 0x18, 0x02, 0xcc},
{0xb6, 0x17, 0x58, 0xcc},
{0xb6, 0x16, 0x00, 0xcc},
{0xb6, 0x22, 0x12, 0xcc},
{0xb6, 0x23, 0x0b, 0xcc},
{0xb3, 0x02, 0x02, 0xcc},
{0xbf, 0xc0, 0x39, 0xcc},
{0xbf, 0xc1, 0x04, 0xcc},
{0xbf, 0xcc, 0x10, 0xcc},
{0xb9, 0x12, 0x00, 0xcc},
{0xb9, 0x13, 0x0a, 0xcc},
{0xb9, 0x14, 0x0a, 0xcc},
{0xb9, 0x15, 0x0a, 0xcc},
{0xb9, 0x16, 0x0a, 0xcc},
{0xb9, 0x18, 0x00, 0xcc},
{0xb9, 0x19, 0x0f, 0xcc},
{0xb9, 0x1a, 0x0f, 0xcc},
{0xb9, 0x1b, 0x0f, 0xcc},
{0xb9, 0x1c, 0x0f, 0xcc},
{0xb8, 0x8e, 0x00, 0xcc},
{0xb8, 0x8f, 0xff, 0xcc},
{0xb6, 0x12, 0xf8, 0xcc},
{0xb8, 0x0c, 0x20, 0xcc},
{0xb8, 0x0d, 0x70, 0xcc},
{0xb6, 0x13, 0x13, 0xcc},
{0x35, 0x00, 0x60, 0xbb},
{0xb3, 0x5c, 0x01, 0xcc},
{}
};
static const u8 mi0360_initQVGA_JPG[][4] = {
{0xb0, 0x03, 0x19, 0xcc},
{0xb0, 0x04, 0x02, 0xcc},
{0xb3, 0x00, 0x24, 0xcc},
{0xb3, 0x00, 0x25, 0xcc},
{0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x05, 0x01, 0xcc},
{0xb3, 0x06, 0x03, 0xcc},
{0xb3, 0x03, 0x0a, 0xcc},
{0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x01, 0xcc},
{0xb3, 0x23, 0xe0, 0xcc},
{0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x02, 0xcc},
{0xb3, 0x17, 0x7f, 0xcc},
{0xb3, 0x35, 0xdd, 0xcc},
{0xb3, 0x34, 0x02, 0xcc},
{0xb3, 0x00, 0x25, 0xcc},
{0xbc, 0x00, 0xd1, 0xcc},
{0xb8, 0x00, 0x13, 0xcc},
{0xb8, 0x27, 0x20, 0xcc},
{0xb8, 0x2c, 0x50, 0xcc},
{0xb8, 0x2d, 0xf8, 0xcc},
{0xb8, 0x2e, 0xf8, 0xcc},
{0xb8, 0x2f, 0xf8, 0xcc},
{0xb8, 0x30, 0x50, 0xcc},
{0xb8, 0x31, 0xf8, 0xcc},
{0xb8, 0x32, 0xf8, 0xcc},
{0xb8, 0x33, 0xf8, 0xcc},
{0xb8, 0x34, 0x50, 0xcc},
{0xb8, 0x35, 0x00, 0xcc},
{0xb8, 0x36, 0x00, 0xcc},
{0xb8, 0x37, 0x00, 0xcc},
{0xb8, 0x01, 0x79, 0xcc},
{0xb8, 0x08, 0xe0, 0xcc},
{0xb3, 0x01, 0x41, 0xcc},
{0xb8, 0x01, 0x79, 0xcc},
{0xb8, 0x14, 0x18, 0xcc},
{0xb8, 0xb2, 0x0a, 0xcc},
{0xb8, 0xb4, 0x0a, 0xcc},
{0xb8, 0xb5, 0x0a, 0xcc},
{0xb8, 0xfe, 0x00, 0xcc},
{0xb8, 0xff, 0x28, 0xcc},
{0xb9, 0x00, 0x28, 0xcc},
{0xb9, 0x01, 0x28, 0xcc},
{0xb9, 0x02, 0x28, 0xcc},
{0xb9, 0x03, 0x00, 0xcc},
{0xb9, 0x04, 0x00, 0xcc},
{0xb9, 0x05, 0x3c, 0xcc},
{0xb9, 0x06, 0x3c, 0xcc},
{0xb9, 0x07, 0x3c, 0xcc},
{0xb9, 0x08, 0x3c, 0xcc},
{0xb8, 0x8e, 0x00, 0xcc},
{0xb8, 0x8f, 0xff, 0xcc},
{0xb8, 0x81, 0x09, 0xcc},
{0x31, 0x00, 0x00, 0xbb},
{0x09, 0x01, 0xc7, 0xbb},
{0x34, 0x01, 0x00, 0xbb},
{0x2b, 0x00, 0x28, 0xbb},
{0x2c, 0x00, 0x30, 0xbb},
{0x2d, 0x00, 0x30, 0xbb},
{0x2e, 0x00, 0x28, 0xbb},
{0x62, 0x04, 0x11, 0xbb},
{0x03, 0x01, 0xe0, 0xbb},
{0x2c, 0x00, 0x2c, 0xbb},
{0x20, 0xd0, 0x00, 0xbb},
{0x01, 0x00, 0x08, 0xbb},
{0x06, 0x00, 0x10, 0xbb},
{0x05, 0x00, 0x20, 0xbb},
{0x20, 0x00, 0x00, 0xbb},
{0xb6, 0x00, 0x00, 0xcc},
{0xb6, 0x03, 0x01, 0xcc},
{0xb6, 0x02, 0x40, 0xcc},
{0xb6, 0x05, 0x00, 0xcc},
{0xb6, 0x04, 0xf0, 0xcc},
{0xb6, 0x12, 0x78, 0xcc},
{0xb6, 0x18, 0x00, 0xcc},
{0xb6, 0x17, 0x96, 0xcc},
{0xb6, 0x16, 0x00, 0xcc},
{0xb6, 0x22, 0x12, 0xcc},
{0xb6, 0x23, 0x0b, 0xcc},
{0xb3, 0x02, 0x02, 0xcc},
{0xbf, 0xc0, 0x39, 0xcc},
{0xbf, 0xc1, 0x04, 0xcc},
{0xbf, 0xcc, 0x10, 0xcc},
{0xb9, 0x12, 0x00, 0xcc},
{0xb9, 0x13, 0x0a, 0xcc},
{0xb9, 0x14, 0x0a, 0xcc},
{0xb9, 0x15, 0x0a, 0xcc},
{0xb9, 0x16, 0x0a, 0xcc},
{0xb9, 0x18, 0x00, 0xcc},
{0xb9, 0x19, 0x0f, 0xcc},
{0xb9, 0x1a, 0x0f, 0xcc},
{0xb9, 0x1b, 0x0f, 0xcc},
{0xb9, 0x1c, 0x0f, 0xcc},
{0xb8, 0x8e, 0x00, 0xcc},
{0xb8, 0x8f, 0xff, 0xcc},
{0xb6, 0x12, 0xf8, 0xcc},
{0xb6, 0x13, 0x13, 0xcc},
{0xbc, 0x02, 0x18, 0xcc},
{0xbc, 0x03, 0x50, 0xcc},
{0xbc, 0x04, 0x18, 0xcc},
{0xbc, 0x05, 0x00, 0xcc},
{0xbc, 0x06, 0x00, 0xcc},
{0xbc, 0x08, 0x30, 0xcc},
{0xbc, 0x09, 0x40, 0xcc},
{0xbc, 0x0a, 0x10, 0xcc},
{0xb8, 0x0c, 0x20, 0xcc},
{0xb8, 0x0d, 0x70, 0xcc},
{0xbc, 0x0b, 0x00, 0xcc},
{0xbc, 0x0c, 0x00, 0xcc},
{0x35, 0x00, 0xef, 0xbb},
{0xb3, 0x5c, 0x01, 0xcc},
{}
};
static const u8 mi1310_socinitVGA_JPG[][4] = {
{0xb0, 0x03, 0x19, 0xcc},
{0xb0, 0x04, 0x02, 0xcc},
{0xb3, 0x00, 0x64, 0xcc},
{0xb3, 0x00, 0x65, 0xcc},
{0xb3, 0x05, 0x00, 0xcc},
{0xb3, 0x06, 0x00, 0xcc},
{0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x34, 0x02, 0xcc},
{0xb3, 0x35, 0xdd, 0xcc}, /* i2c add: 5d */
{0xb3, 0x02, 0x00, 0xcc},
{0xb3, 0x03, 0x0a, 0xcc},
{0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x03, 0xcc},
{0xb3, 0x23, 0xc0, 0xcc},
{0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x04, 0xcc},
{0xb3, 0x17, 0xff, 0xcc},
{0xb3, 0x00, 0x65, 0xcc},
{0xb8, 0x00, 0x00, 0xcc},
{0xbc, 0x00, 0xd0, 0xcc},
{0xbc, 0x01, 0x01, 0xcc},
{0xf0, 0x00, 0x02, 0xbb},
{0xc8, 0x9f, 0x0b, 0xbb},
{0x5b, 0x00, 0x01, 0xbb},
{0x2f, 0xde, 0x20, 0xbb},
{0xf0, 0x00, 0x00, 0xbb},
{0x20, 0x03, 0x02, 0xbb}, /* h/v flip */
{0xf0, 0x00, 0x01, 0xbb},
{0x05, 0x00, 0x07, 0xbb},
{0x34, 0x00, 0x00, 0xbb},
{0x35, 0xff, 0x00, 0xbb},
{0xdc, 0x07, 0x02, 0xbb},
{0xdd, 0x3c, 0x18, 0xbb},
{0xde, 0x92, 0x6d, 0xbb},
{0xdf, 0xcd, 0xb1, 0xbb},
{0xe0, 0xff, 0xe7, 0xbb},
{0x06, 0xf0, 0x0d, 0xbb},
{0x06, 0x70, 0x0e, 0xbb},
{0x4c, 0x00, 0x01, 0xbb},
{0x4d, 0x00, 0x01, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x2e, 0x0c, 0x55, 0xbb},
{0x21, 0xb6, 0x6e, 0xbb},
{0x36, 0x30, 0x10, 0xbb},
{0x37, 0x00, 0xc1, 0xbb},
{0xf0, 0x00, 0x00, 0xbb},
{0x07, 0x00, 0x84, 0xbb},
{0x08, 0x02, 0x4a, 0xbb},
{0x05, 0x01, 0x10, 0xbb},
{0x06, 0x00, 0x39, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x58, 0x02, 0x67, 0xbb},
{0x57, 0x02, 0x00, 0xbb},
{0x5a, 0x02, 0x67, 0xbb},
{0x59, 0x02, 0x00, 0xbb},
{0x5c, 0x12, 0x0d, 0xbb},
{0x5d, 0x16, 0x11, 0xbb},
{0x39, 0x06, 0x18, 0xbb},
{0x3a, 0x06, 0x18, 0xbb},
{0x3b, 0x06, 0x18, 0xbb},
{0x3c, 0x06, 0x18, 0xbb},
{0x64, 0x7b, 0x5b, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x36, 0x30, 0x10, 0xbb},
{0x37, 0x00, 0xc0, 0xbb},
{0xbc, 0x0e, 0x00, 0xcc},
{0xbc, 0x0f, 0x05, 0xcc},
{0xbc, 0x10, 0xc0, 0xcc},
{0xbc, 0x11, 0x03, 0xcc},
{0xb6, 0x00, 0x00, 0xcc},
{0xb6, 0x03, 0x02, 0xcc},
{0xb6, 0x02, 0x80, 0xcc},
{0xb6, 0x05, 0x01, 0xcc},
{0xb6, 0x04, 0xe0, 0xcc},
{0xb6, 0x12, 0xf8, 0xcc},
{0xb6, 0x13, 0x25, 0xcc},
{0xb6, 0x18, 0x02, 0xcc},
{0xb6, 0x17, 0x58, 0xcc},
{0xb6, 0x16, 0x00, 0xcc},
{0xb6, 0x22, 0x12, 0xcc},
{0xb6, 0x23, 0x0b, 0xcc},
{0xbf, 0xc0, 0x39, 0xcc},
{0xbf, 0xc1, 0x04, 0xcc},
{0xbf, 0xcc, 0x00, 0xcc},
{0xbc, 0x02, 0x18, 0xcc},
{0xbc, 0x03, 0x50, 0xcc},
{0xbc, 0x04, 0x18, 0xcc},
{0xbc, 0x05, 0x00, 0xcc},
{0xbc, 0x06, 0x00, 0xcc},
{0xbc, 0x08, 0x30, 0xcc},
{0xbc, 0x09, 0x40, 0xcc},
{0xbc, 0x0a, 0x10, 0xcc},
{0xbc, 0x0b, 0x00, 0xcc},
{0xbc, 0x0c, 0x00, 0xcc},
{0xb3, 0x5c, 0x01, 0xcc},
{0xf0, 0x00, 0x01, 0xbb},
{0x80, 0x00, 0x03, 0xbb},
{0x81, 0xc7, 0x14, 0xbb},
{0x82, 0xeb, 0xe8, 0xbb},
{0x83, 0xfe, 0xf4, 0xbb},
{0x84, 0xcd, 0x10, 0xbb},
{0x85, 0xf3, 0xee, 0xbb},
{0x86, 0xff, 0xf1, 0xbb},
{0x87, 0xcd, 0x10, 0xbb},
{0x88, 0xf3, 0xee, 0xbb},
{0x89, 0x01, 0xf1, 0xbb},
{0x8a, 0xe5, 0x17, 0xbb},
{0x8b, 0xe8, 0xe2, 0xbb},
{0x8c, 0xf7, 0xed, 0xbb},
{0x8d, 0x00, 0xff, 0xbb},
{0x8e, 0xec, 0x10, 0xbb},
{0x8f, 0xf0, 0xed, 0xbb},
{0x90, 0xf9, 0xf2, 0xbb},
{0x91, 0x00, 0x00, 0xbb},
{0x92, 0xe9, 0x0d, 0xbb},
{0x93, 0xf4, 0xf2, 0xbb},
{0x94, 0xfb, 0xf5, 0xbb},
{0x95, 0x00, 0xff, 0xbb},
{0xb6, 0x0f, 0x08, 0xbb},
{0xb7, 0x3d, 0x16, 0xbb},
{0xb8, 0x0c, 0x04, 0xbb},
{0xb9, 0x1c, 0x07, 0xbb},
{0xba, 0x0a, 0x03, 0xbb},
{0xbb, 0x1b, 0x09, 0xbb},
{0xbc, 0x17, 0x0d, 0xbb},
{0xbd, 0x23, 0x1d, 0xbb},
{0xbe, 0x00, 0x28, 0xbb},
{0xbf, 0x11, 0x09, 0xbb},
{0xc0, 0x16, 0x15, 0xbb},
{0xc1, 0x00, 0x1b, 0xbb},
{0xc2, 0x0e, 0x07, 0xbb},
{0xc3, 0x14, 0x10, 0xbb},
{0xc4, 0x00, 0x17, 0xbb},
{0x06, 0x74, 0x8e, 0xbb},
{0xf0, 0x00, 0x01, 0xbb},
{0x06, 0xf4, 0x8e, 0xbb},
{0x00, 0x00, 0x50, 0xdd},
{0x06, 0x74, 0x8e, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x24, 0x50, 0x20, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x34, 0x0c, 0x50, 0xbb},
{0xb3, 0x01, 0x41, 0xcc},
{0xf0, 0x00, 0x00, 0xbb},
{0x03, 0x03, 0xc0, 0xbb},
{},
};
static const u8 mi1310_socinitQVGA_JPG[][4] = {
{0xb0, 0x03, 0x19, 0xcc}, {0xb0, 0x04, 0x02, 0xcc},
{0xb3, 0x00, 0x64, 0xcc}, {0xb3, 0x00, 0x65, 0xcc},
{0xb3, 0x05, 0x00, 0xcc}, {0xb3, 0x06, 0x00, 0xcc},
{0xb3, 0x08, 0x01, 0xcc}, {0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x34, 0x02, 0xcc}, {0xb3, 0x35, 0xdd, 0xcc},
{0xb3, 0x02, 0x00, 0xcc}, {0xb3, 0x03, 0x0a, 0xcc},
{0xb3, 0x04, 0x05, 0xcc}, {0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc}, {0xb3, 0x22, 0x03, 0xcc},
{0xb3, 0x23, 0xc0, 0xcc}, {0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x00, 0xcc}, {0xb3, 0x16, 0x04, 0xcc},
{0xb3, 0x17, 0xff, 0xcc}, {0xb3, 0x00, 0x65, 0xcc},
{0xb8, 0x00, 0x00, 0xcc}, {0xbc, 0x00, 0xf0, 0xcc},
{0xbc, 0x01, 0x01, 0xcc}, {0xf0, 0x00, 0x02, 0xbb},
{0xc8, 0x9f, 0x0b, 0xbb}, {0x5b, 0x00, 0x01, 0xbb},
{0x2f, 0xde, 0x20, 0xbb}, {0xf0, 0x00, 0x00, 0xbb},
{0x20, 0x03, 0x02, 0xbb}, /* h/v flip */
{0xf0, 0x00, 0x01, 0xbb},
{0x05, 0x00, 0x07, 0xbb}, {0x34, 0x00, 0x00, 0xbb},
{0x35, 0xff, 0x00, 0xbb}, {0xdc, 0x07, 0x02, 0xbb},
{0xdd, 0x3c, 0x18, 0xbb}, {0xde, 0x92, 0x6d, 0xbb},
{0xdf, 0xcd, 0xb1, 0xbb}, {0xe0, 0xff, 0xe7, 0xbb},
{0x06, 0xf0, 0x0d, 0xbb}, {0x06, 0x70, 0x0e, 0xbb},
{0x4c, 0x00, 0x01, 0xbb}, {0x4d, 0x00, 0x01, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x2e, 0x0c, 0x55, 0xbb},
{0x21, 0xb6, 0x6e, 0xbb}, {0x36, 0x30, 0x10, 0xbb},
{0x37, 0x00, 0xc1, 0xbb}, {0xf0, 0x00, 0x00, 0xbb},
{0x07, 0x00, 0x84, 0xbb}, {0x08, 0x02, 0x4a, 0xbb},
{0x05, 0x01, 0x10, 0xbb}, {0x06, 0x00, 0x39, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x58, 0x02, 0x67, 0xbb},
{0x57, 0x02, 0x00, 0xbb}, {0x5a, 0x02, 0x67, 0xbb},
{0x59, 0x02, 0x00, 0xbb}, {0x5c, 0x12, 0x0d, 0xbb},
{0x5d, 0x16, 0x11, 0xbb}, {0x39, 0x06, 0x18, 0xbb},
{0x3a, 0x06, 0x18, 0xbb}, {0x3b, 0x06, 0x18, 0xbb},
{0x3c, 0x06, 0x18, 0xbb}, {0x64, 0x7b, 0x5b, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x36, 0x30, 0x10, 0xbb},
{0x37, 0x00, 0xc0, 0xbb}, {0xbc, 0x0e, 0x00, 0xcc},
{0xbc, 0x0f, 0x05, 0xcc}, {0xbc, 0x10, 0xc0, 0xcc},
{0xbc, 0x11, 0x03, 0xcc}, {0xb6, 0x00, 0x00, 0xcc},
{0xb6, 0x03, 0x01, 0xcc}, {0xb6, 0x02, 0x40, 0xcc},
{0xb6, 0x05, 0x00, 0xcc}, {0xb6, 0x04, 0xf0, 0xcc},
{0xb6, 0x12, 0xf8, 0xcc}, {0xb6, 0x13, 0x25, 0xcc},
{0xb6, 0x18, 0x00, 0xcc}, {0xb6, 0x17, 0x96, 0xcc},
{0xb6, 0x16, 0x00, 0xcc}, {0xb6, 0x22, 0x12, 0xcc},
{0xb6, 0x23, 0x0b, 0xcc}, {0xbf, 0xc0, 0x39, 0xcc},
{0xbf, 0xc1, 0x04, 0xcc}, {0xbf, 0xcc, 0x00, 0xcc},
{0xb3, 0x5c, 0x01, 0xcc}, {0xf0, 0x00, 0x01, 0xbb},
{0x80, 0x00, 0x03, 0xbb}, {0x81, 0xc7, 0x14, 0xbb},
{0x82, 0xeb, 0xe8, 0xbb}, {0x83, 0xfe, 0xf4, 0xbb},
{0x84, 0xcd, 0x10, 0xbb}, {0x85, 0xf3, 0xee, 0xbb},
{0x86, 0xff, 0xf1, 0xbb}, {0x87, 0xcd, 0x10, 0xbb},
{0x88, 0xf3, 0xee, 0xbb}, {0x89, 0x01, 0xf1, 0xbb},
{0x8a, 0xe5, 0x17, 0xbb}, {0x8b, 0xe8, 0xe2, 0xbb},
{0x8c, 0xf7, 0xed, 0xbb}, {0x8d, 0x00, 0xff, 0xbb},
{0x8e, 0xec, 0x10, 0xbb}, {0x8f, 0xf0, 0xed, 0xbb},
{0x90, 0xf9, 0xf2, 0xbb}, {0x91, 0x00, 0x00, 0xbb},
{0x92, 0xe9, 0x0d, 0xbb}, {0x93, 0xf4, 0xf2, 0xbb},
{0x94, 0xfb, 0xf5, 0xbb}, {0x95, 0x00, 0xff, 0xbb},
{0xb6, 0x0f, 0x08, 0xbb}, {0xb7, 0x3d, 0x16, 0xbb},
{0xb8, 0x0c, 0x04, 0xbb}, {0xb9, 0x1c, 0x07, 0xbb},
{0xba, 0x0a, 0x03, 0xbb}, {0xbb, 0x1b, 0x09, 0xbb},
{0xbc, 0x17, 0x0d, 0xbb}, {0xbd, 0x23, 0x1d, 0xbb},
{0xbe, 0x00, 0x28, 0xbb}, {0xbf, 0x11, 0x09, 0xbb},
{0xc0, 0x16, 0x15, 0xbb}, {0xc1, 0x00, 0x1b, 0xbb},
{0xc2, 0x0e, 0x07, 0xbb}, {0xc3, 0x14, 0x10, 0xbb},
{0xc4, 0x00, 0x17, 0xbb}, {0x06, 0x74, 0x8e, 0xbb},
{0xf0, 0x00, 0x01, 0xbb}, {0x06, 0xf4, 0x8e, 0xbb},
{0x00, 0x00, 0x50, 0xdd}, {0x06, 0x74, 0x8e, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x24, 0x50, 0x20, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x34, 0x0c, 0x50, 0xbb},
{0xb3, 0x01, 0x41, 0xcc}, {0xf0, 0x00, 0x00, 0xbb},
{0x03, 0x03, 0xc0, 0xbb},
{},
};
static const u8 mi1310_soc_InitSXGA_JPG[][4] = {
{0xb0, 0x03, 0x19, 0xcc},
{0xb0, 0x04, 0x02, 0xcc},
{0xb3, 0x00, 0x64, 0xcc},
{0xb3, 0x00, 0x65, 0xcc},
{0xb3, 0x05, 0x00, 0xcc},
{0xb3, 0x06, 0x00, 0xcc},
{0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x34, 0x02, 0xcc},
{0xb3, 0x35, 0xdd, 0xcc},
{0xb3, 0x02, 0x00, 0xcc},
{0xb3, 0x03, 0x0a, 0xcc},
{0xb3, 0x04, 0x0d, 0xcc},
{0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x03, 0xcc},
{0xb3, 0x23, 0xc0, 0xcc},
{0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x04, 0xcc},
{0xb3, 0x17, 0xff, 0xcc},
{0xb3, 0x00, 0x65, 0xcc},
{0xb8, 0x00, 0x00, 0xcc},
{0xbc, 0x00, 0x70, 0xcc},
{0xbc, 0x01, 0x01, 0xcc},
{0xf0, 0x00, 0x02, 0xbb},
{0xc8, 0x9f, 0x0b, 0xbb},
{0x5b, 0x00, 0x01, 0xbb},
{0xf0, 0x00, 0x00, 0xbb},
{0x20, 0x03, 0x02, 0xbb}, /* h/v flip */
{0xf0, 0x00, 0x01, 0xbb},
{0x05, 0x00, 0x07, 0xbb},
{0x34, 0x00, 0x00, 0xbb},
{0x35, 0xff, 0x00, 0xbb},
{0xdc, 0x07, 0x02, 0xbb},
{0xdd, 0x3c, 0x18, 0xbb},
{0xde, 0x92, 0x6d, 0xbb},
{0xdf, 0xcd, 0xb1, 0xbb},
{0xe0, 0xff, 0xe7, 0xbb},
{0x06, 0xf0, 0x0d, 0xbb},
{0x06, 0x70, 0x0e, 0xbb},
{0x4c, 0x00, 0x01, 0xbb},
{0x4d, 0x00, 0x01, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x2e, 0x0c, 0x60, 0xbb},
{0x21, 0xb6, 0x6e, 0xbb},
{0x37, 0x01, 0x40, 0xbb},
{0xf0, 0x00, 0x00, 0xbb},
{0x07, 0x00, 0x84, 0xbb},
{0x08, 0x02, 0x4a, 0xbb},
{0x05, 0x01, 0x10, 0xbb},
{0x06, 0x00, 0x39, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x58, 0x02, 0x67, 0xbb},
{0x57, 0x02, 0x00, 0xbb},
{0x5a, 0x02, 0x67, 0xbb},
{0x59, 0x02, 0x00, 0xbb},
{0x5c, 0x12, 0x0d, 0xbb},
{0x5d, 0x16, 0x11, 0xbb},
{0x39, 0x06, 0x18, 0xbb},
{0x3a, 0x06, 0x18, 0xbb},
{0x3b, 0x06, 0x18, 0xbb},
{0x3c, 0x06, 0x18, 0xbb},
{0x64, 0x7b, 0x5b, 0xbb},
{0xb6, 0x00, 0x00, 0xcc},
{0xb6, 0x03, 0x05, 0xcc},
{0xb6, 0x02, 0x00, 0xcc},
{0xb6, 0x05, 0x03, 0xcc},
{0xb6, 0x04, 0xc0, 0xcc},
{0xb6, 0x12, 0xf8, 0xcc},
{0xb6, 0x13, 0x29, 0xcc},
{0xb6, 0x18, 0x09, 0xcc},
{0xb6, 0x17, 0x60, 0xcc},
{0xb6, 0x16, 0x00, 0xcc},
{0xb6, 0x22, 0x12, 0xcc},
{0xb6, 0x23, 0x0b, 0xcc},
{0xbf, 0xc0, 0x39, 0xcc},
{0xbf, 0xc1, 0x04, 0xcc},
{0xbf, 0xcc, 0x00, 0xcc},
{0xb3, 0x01, 0x41, 0xcc},
{0x00, 0x00, 0x80, 0xdd},
{0xf0, 0x00, 0x02, 0xbb},
{0x00, 0x00, 0x10, 0xdd},
{0x22, 0xa0, 0x78, 0xbb},
{0x23, 0xa0, 0x78, 0xbb},
{0x24, 0x7f, 0x00, 0xbb},
{0x28, 0xea, 0x02, 0xbb},
{0x29, 0x86, 0x7a, 0xbb},
{0x5e, 0x52, 0x4c, 0xbb},
{0x5f, 0x20, 0x24, 0xbb},
{0x60, 0x00, 0x02, 0xbb},
{0x02, 0x00, 0xee, 0xbb},
{0x03, 0x39, 0x23, 0xbb},
{0x04, 0x07, 0x24, 0xbb},
{0x09, 0x00, 0xc0, 0xbb},
{0x0a, 0x00, 0x79, 0xbb},
{0x0b, 0x00, 0x04, 0xbb},
{0x0c, 0x00, 0x5c, 0xbb},
{0x0d, 0x00, 0xd9, 0xbb},
{0x0e, 0x00, 0x53, 0xbb},
{0x0f, 0x00, 0x21, 0xbb},
{0x10, 0x00, 0xa4, 0xbb},
{0x11, 0x00, 0xe5, 0xbb},
{0x15, 0x00, 0x00, 0xbb},
{0x16, 0x00, 0x00, 0xbb},
{0x17, 0x00, 0x00, 0xbb},
{0x18, 0x00, 0x00, 0xbb},
{0x19, 0x00, 0x00, 0xbb},
{0x1a, 0x00, 0x00, 0xbb},
{0x1b, 0x00, 0x00, 0xbb},
{0x1c, 0x00, 0x00, 0xbb},
{0x1d, 0x00, 0x00, 0xbb},
{0x1e, 0x00, 0x00, 0xbb},
{0xf0, 0x00, 0x01, 0xbb},
{0x00, 0x00, 0x20, 0xdd},
{0x06, 0xf0, 0x8e, 0xbb},
{0x00, 0x00, 0x80, 0xdd},
{0x06, 0x70, 0x8e, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x00, 0x00, 0x20, 0xdd},
{0x5e, 0x6a, 0x53, 0xbb},
{0x5f, 0x40, 0x2c, 0xbb},
{0xf0, 0x00, 0x01, 0xbb},
{0x00, 0x00, 0x20, 0xdd},
{0x58, 0x00, 0x00, 0xbb},
{0x53, 0x09, 0x03, 0xbb},
{0x54, 0x31, 0x18, 0xbb},
{0x55, 0x8b, 0x5f, 0xbb},
{0x56, 0xc0, 0xa9, 0xbb},
{0x57, 0xe0, 0xd2, 0xbb},
{0xe1, 0x00, 0x00, 0xbb},
{0xdc, 0x09, 0x03, 0xbb},
{0xdd, 0x31, 0x18, 0xbb},
{0xde, 0x8b, 0x5f, 0xbb},
{0xdf, 0xc0, 0xa9, 0xbb},
{0xe0, 0xe0, 0xd2, 0xbb},
{0xb3, 0x5c, 0x01, 0xcc},
{0xf0, 0x00, 0x01, 0xbb},
{0x06, 0xf0, 0x8e, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x2f, 0xde, 0x20, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x24, 0x50, 0x20, 0xbb},
{0xbc, 0x0e, 0x00, 0xcc},
{0xbc, 0x0f, 0x05, 0xcc},
{0xbc, 0x10, 0xc0, 0xcc},
{0xf0, 0x00, 0x02, 0xbb},
{0x34, 0x0c, 0x50, 0xbb},
{0xbc, 0x11, 0x03, 0xcc},
{0xf0, 0x00, 0x01, 0xbb},
{0x80, 0x00, 0x03, 0xbb},
{0x81, 0xc7, 0x14, 0xbb},
{0x82, 0xeb, 0xe8, 0xbb},
{0x83, 0xfe, 0xf4, 0xbb},
{0x84, 0xcd, 0x10, 0xbb},
{0x85, 0xf3, 0xee, 0xbb},
{0x86, 0xff, 0xf1, 0xbb},
{0x87, 0xcd, 0x10, 0xbb},
{0x88, 0xf3, 0xee, 0xbb},
{0x89, 0x01, 0xf1, 0xbb},
{0x8a, 0xe5, 0x17, 0xbb},
{0x8b, 0xe8, 0xe2, 0xbb},
{0x8c, 0xf7, 0xed, 0xbb},
{0x8d, 0x00, 0xff, 0xbb},
{0x8e, 0xec, 0x10, 0xbb},
{0x8f, 0xf0, 0xed, 0xbb},
{0x90, 0xf9, 0xf2, 0xbb},
{0x91, 0x00, 0x00, 0xbb},
{0x92, 0xe9, 0x0d, 0xbb},
{0x93, 0xf4, 0xf2, 0xbb},
{0x94, 0xfb, 0xf5, 0xbb},
{0x95, 0x00, 0xff, 0xbb},
{0xb6, 0x0f, 0x08, 0xbb},
{0xb7, 0x3d, 0x16, 0xbb},
{0xb8, 0x0c, 0x04, 0xbb},
{0xb9, 0x1c, 0x07, 0xbb},
{0xba, 0x0a, 0x03, 0xbb},
{0xbb, 0x1b, 0x09, 0xbb},
{0xbc, 0x17, 0x0d, 0xbb},
{0xbd, 0x23, 0x1d, 0xbb},
{0xbe, 0x00, 0x28, 0xbb},
{0xbf, 0x11, 0x09, 0xbb},
{0xc0, 0x16, 0x15, 0xbb},
{0xc1, 0x00, 0x1b, 0xbb},
{0xc2, 0x0e, 0x07, 0xbb},
{0xc3, 0x14, 0x10, 0xbb},
{0xc4, 0x00, 0x17, 0xbb},
{0x06, 0x74, 0x8e, 0xbb},
{0xf0, 0x00, 0x00, 0xbb},
{0x03, 0x03, 0xc0, 0xbb},
{}
};
static const u8 mi1320_gamma[17] = {
0x00, 0x13, 0x38, 0x59, 0x79, 0x92, 0xa7, 0xb9, 0xc8,
0xd4, 0xdf, 0xe7, 0xee, 0xf4, 0xf9, 0xfc, 0xff
};
static const u8 mi1320_matrix[9] = {
0x54, 0xda, 0x06, 0xf1, 0x50, 0xf4, 0xf7, 0xea, 0x52
};
static const u8 mi1320_initVGA_data[][4] = {
{0xb3, 0x01, 0x01, 0xcc}, {0x00, 0x00, 0x33, 0xdd},
{0xb0, 0x03, 0x19, 0xcc}, {0x00, 0x00, 0x33, 0xdd},
{0xb0, 0x04, 0x02, 0xcc}, {0x00, 0x00, 0x33, 0xdd},
{0xb3, 0x00, 0x64, 0xcc}, {0xb3, 0x00, 0x65, 0xcc},
{0xb0, 0x16, 0x03, 0xcc}, {0xb3, 0x05, 0x00, 0xcc},
{0xb3, 0x06, 0x00, 0xcc}, {0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc}, {0xb3, 0x34, 0x02, 0xcc},
{0xb3, 0x35, 0xc8, 0xcc}, /* i2c add: 48 */
{0xb3, 0x02, 0x00, 0xcc},
{0xb3, 0x03, 0x0a, 0xcc}, {0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x20, 0x00, 0xcc}, {0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x03, 0xcc}, {0xb3, 0x23, 0xc0, 0xcc},
{0xb3, 0x14, 0x00, 0xcc}, {0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x04, 0xcc}, {0xb3, 0x17, 0xff, 0xcc},
{0xb3, 0x00, 0x67, 0xcc}, {0xbc, 0x00, 0xd0, 0xcc},
{0xbc, 0x01, 0x01, 0xcc}, {0xf0, 0x00, 0x00, 0xbb},
{0x0d, 0x00, 0x09, 0xbb}, {0x00, 0x01, 0x00, 0xdd},
{0x0d, 0x00, 0x08, 0xbb}, {0xf0, 0x00, 0x01, 0xbb},
{0xa1, 0x05, 0x00, 0xbb}, {0xa4, 0x03, 0xc0, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x00, 0x00, 0x10, 0xdd},
{0xc8, 0x9f, 0x0b, 0xbb}, {0x00, 0x00, 0x10, 0xdd},
{0xf0, 0x00, 0x00, 0xbb}, {0x00, 0x00, 0x10, 0xdd},
{0x20, 0x01, 0x00, 0xbb}, {0x00, 0x00, 0x10, 0xdd},
{0xf0, 0x00, 0x01, 0xbb}, {0x9d, 0x3c, 0xa0, 0xbb},
{0x47, 0x30, 0x30, 0xbb}, {0xf0, 0x00, 0x00, 0xbb},
{0x0a, 0x80, 0x11, 0xbb}, {0x35, 0x00, 0x22, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x9d, 0xc5, 0x05, 0xbb},
{0xdc, 0x0f, 0xfc, 0xbb}, {0xf0, 0x00, 0x01, 0xbb},
{0x06, 0x74, 0x0e, 0xbb}, {0x80, 0x00, 0x06, 0xbb},
{0x81, 0x04, 0x00, 0xbb}, {0x82, 0x01, 0x02, 0xbb},
{0x83, 0x03, 0x02, 0xbb}, {0x84, 0x05, 0x00, 0xbb},
{0x85, 0x01, 0x00, 0xbb}, {0x86, 0x03, 0x02, 0xbb},
{0x87, 0x05, 0x00, 0xbb}, {0x88, 0x01, 0x00, 0xbb},
{0x89, 0x02, 0x02, 0xbb}, {0x8a, 0xfd, 0x04, 0xbb},
{0x8b, 0xfc, 0xfd, 0xbb}, {0x8c, 0xff, 0xfd, 0xbb},
{0x8d, 0x00, 0x00, 0xbb}, {0x8e, 0xfe, 0x05, 0xbb},
{0x8f, 0xfc, 0xfd, 0xbb}, {0x90, 0xfe, 0xfd, 0xbb},
{0x91, 0x00, 0x00, 0xbb}, {0x92, 0xfe, 0x03, 0xbb},
{0x93, 0xfd, 0xfe, 0xbb}, {0x94, 0xff, 0xfd, 0xbb},
{0x95, 0x00, 0x00, 0xbb}, {0xb6, 0x07, 0x05, 0xbb},
{0xb7, 0x13, 0x06, 0xbb}, {0xb8, 0x08, 0x06, 0xbb},
{0xb9, 0x14, 0x08, 0xbb}, {0xba, 0x06, 0x05, 0xbb},
{0xbb, 0x13, 0x06, 0xbb}, {0xbc, 0x03, 0x01, 0xbb},
{0xbd, 0x03, 0x04, 0xbb}, {0xbe, 0x00, 0x02, 0xbb},
{0xbf, 0x03, 0x01, 0xbb}, {0xc0, 0x02, 0x04, 0xbb},
{0xc1, 0x00, 0x04, 0xbb}, {0xc2, 0x02, 0x01, 0xbb},
{0xc3, 0x01, 0x03, 0xbb}, {0xc4, 0x00, 0x04, 0xbb},
{0xf0, 0x00, 0x00, 0xbb}, {0x05, 0x01, 0x13, 0xbb},
{0x06, 0x00, 0x11, 0xbb}, {0x07, 0x00, 0x85, 0xbb},
{0x08, 0x00, 0x27, 0xbb},
{0x20, 0x01, 0x00, 0xbb}, /* h/v flips - was 03 */
{0x21, 0x80, 0x00, 0xbb}, {0x22, 0x0d, 0x0f, 0xbb},
{0x24, 0x80, 0x00, 0xbb}, {0x59, 0x00, 0xff, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x39, 0x03, 0x0d, 0xbb},
{0x3a, 0x06, 0x1b, 0xbb}, {0x3b, 0x00, 0x95, 0xbb},
{0x3c, 0x04, 0xdb, 0xbb}, {0x57, 0x02, 0x00, 0xbb},
{0x58, 0x02, 0x66, 0xbb}, {0x59, 0x00, 0xff, 0xbb},
{0x5a, 0x01, 0x33, 0xbb}, {0x5c, 0x12, 0x0d, 0xbb},
{0x5d, 0x16, 0x11, 0xbb}, {0x64, 0x5e, 0x1c, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x2f, 0xd1, 0x00, 0xbb},
{0x5b, 0x00, 0x01, 0xbb}, {0xf0, 0x00, 0x02, 0xbb},
{0x36, 0x68, 0x10, 0xbb}, {0x00, 0x00, 0x30, 0xdd},
{0x37, 0x82, 0x00, 0xbb}, {0xbc, 0x0e, 0x00, 0xcc},
{0xbc, 0x0f, 0x05, 0xcc}, {0xbc, 0x10, 0xc0, 0xcc},
{0xbc, 0x11, 0x03, 0xcc}, {0xb6, 0x00, 0x00, 0xcc},
{0xb6, 0x03, 0x05, 0xcc}, {0xb6, 0x02, 0x00, 0xcc},
{0xb6, 0x05, 0x04, 0xcc}, {0xb6, 0x04, 0x00, 0xcc},
{0xb6, 0x12, 0xf8, 0xcc}, {0xb6, 0x13, 0x29, 0xcc},
{0xb6, 0x18, 0x0a, 0xcc}, {0xb6, 0x17, 0x00, 0xcc},
{0xb6, 0x16, 0x00, 0xcc}, {0xb6, 0x22, 0x12, 0xcc},
{0xb6, 0x23, 0x0b, 0xcc}, {0xbf, 0xc0, 0x26, 0xcc},
{0xbf, 0xc1, 0x02, 0xcc}, {0xbf, 0xcc, 0x04, 0xcc},
{0xbc, 0x02, 0x18, 0xcc}, {0xbc, 0x03, 0x50, 0xcc},
{0xbc, 0x04, 0x18, 0xcc}, {0xbc, 0x05, 0x00, 0xcc},
{0xbc, 0x06, 0x00, 0xcc}, {0xbc, 0x08, 0x30, 0xcc},
{0xbc, 0x09, 0x40, 0xcc}, {0xbc, 0x0a, 0x10, 0xcc},
{0xbc, 0x0b, 0x00, 0xcc}, {0xbc, 0x0c, 0x00, 0xcc},
{0xb3, 0x5c, 0x01, 0xcc}, {0xb3, 0x01, 0x41, 0xcc},
{}
};
static const u8 mi1320_initQVGA_data[][4] = {
{0xb3, 0x01, 0x01, 0xcc}, {0x00, 0x00, 0x33, 0xdd},
{0xb0, 0x03, 0x19, 0xcc}, {0x00, 0x00, 0x33, 0xdd},
{0xb0, 0x04, 0x02, 0xcc}, {0x00, 0x00, 0x33, 0xdd},
{0xb3, 0x00, 0x64, 0xcc}, {0xb3, 0x00, 0x65, 0xcc},
{0xb0, 0x16, 0x03, 0xcc}, {0xb3, 0x05, 0x01, 0xcc},
{0xb3, 0x06, 0x01, 0xcc}, {0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc}, {0xb3, 0x34, 0x02, 0xcc},
{0xb3, 0x35, 0xc8, 0xcc}, {0xb3, 0x02, 0x00, 0xcc},
{0xb3, 0x03, 0x0a, 0xcc}, {0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x20, 0x00, 0xcc}, {0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x01, 0xcc}, {0xb3, 0x23, 0xe0, 0xcc},
{0xb3, 0x14, 0x00, 0xcc}, {0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x02, 0xcc}, {0xb3, 0x17, 0x7f, 0xcc},
{0xb3, 0x00, 0x65, 0xcc}, {0xb8, 0x00, 0x00, 0xcc},
{0xbc, 0x00, 0xd0, 0xcc}, {0xbc, 0x01, 0x01, 0xcc},
{0xf0, 0x00, 0x00, 0xbb}, {0x0d, 0x00, 0x09, 0xbb},
{0x00, 0x01, 0x00, 0xdd}, {0x0d, 0x00, 0x08, 0xbb},
{0xf0, 0x00, 0x00, 0xbb}, {0x02, 0x00, 0x64, 0xbb},
{0x05, 0x01, 0x78, 0xbb}, {0x06, 0x00, 0x11, 0xbb},
{0x07, 0x01, 0x42, 0xbb}, {0x08, 0x00, 0x11, 0xbb},
{0x20, 0x01, 0x00, 0xbb}, {0x21, 0x80, 0x00, 0xbb},
{0x22, 0x0d, 0x0f, 0xbb}, {0x24, 0x80, 0x00, 0xbb},
{0x59, 0x00, 0xff, 0xbb}, {0xf0, 0x00, 0x01, 0xbb},
{0x9d, 0x3c, 0xa0, 0xbb}, {0x47, 0x30, 0x30, 0xbb},
{0xf0, 0x00, 0x00, 0xbb}, {0x0a, 0x80, 0x11, 0xbb},
{0x35, 0x00, 0x22, 0xbb}, {0xf0, 0x00, 0x02, 0xbb},
{0x9d, 0xc5, 0x05, 0xbb}, {0xdc, 0x0f, 0xfc, 0xbb},
{0xf0, 0x00, 0x01, 0xbb}, {0x06, 0x74, 0x0e, 0xbb},
{0x80, 0x00, 0x06, 0xbb}, {0x81, 0x04, 0x00, 0xbb},
{0x82, 0x01, 0x02, 0xbb}, {0x83, 0x03, 0x02, 0xbb},
{0x84, 0x05, 0x00, 0xbb}, {0x85, 0x01, 0x00, 0xbb},
{0x86, 0x03, 0x02, 0xbb}, {0x87, 0x05, 0x00, 0xbb},
{0x88, 0x01, 0x00, 0xbb}, {0x89, 0x02, 0x02, 0xbb},
{0x8a, 0xfd, 0x04, 0xbb}, {0x8b, 0xfc, 0xfd, 0xbb},
{0x8c, 0xff, 0xfd, 0xbb}, {0x8d, 0x00, 0x00, 0xbb},
{0x8e, 0xfe, 0x05, 0xbb}, {0x8f, 0xfc, 0xfd, 0xbb},
{0x90, 0xfe, 0xfd, 0xbb}, {0x91, 0x00, 0x00, 0xbb},
{0x92, 0xfe, 0x03, 0xbb}, {0x93, 0xfd, 0xfe, 0xbb},
{0x94, 0xff, 0xfd, 0xbb}, {0x95, 0x00, 0x00, 0xbb},
{0xb6, 0x07, 0x05, 0xbb}, {0xb7, 0x13, 0x06, 0xbb},
{0xb8, 0x08, 0x06, 0xbb}, {0xb9, 0x14, 0x08, 0xbb},
{0xba, 0x06, 0x05, 0xbb}, {0xbb, 0x13, 0x06, 0xbb},
{0xbc, 0x03, 0x01, 0xbb}, {0xbd, 0x03, 0x04, 0xbb},
{0xbe, 0x00, 0x02, 0xbb}, {0xbf, 0x03, 0x01, 0xbb},
{0xc0, 0x02, 0x04, 0xbb}, {0xc1, 0x00, 0x04, 0xbb},
{0xc2, 0x02, 0x01, 0xbb}, {0xc3, 0x01, 0x03, 0xbb},
{0xc4, 0x00, 0x04, 0xbb}, {0xf0, 0x00, 0x02, 0xbb},
{0xc8, 0x00, 0x00, 0xbb}, {0x2e, 0x00, 0x00, 0xbb},
{0x2e, 0x0c, 0x5b, 0xbb}, {0x2f, 0xd1, 0x00, 0xbb},
{0x39, 0x03, 0xca, 0xbb}, {0x3a, 0x06, 0x80, 0xbb},
{0x3b, 0x01, 0x52, 0xbb}, {0x3c, 0x05, 0x40, 0xbb},
{0x57, 0x01, 0x9c, 0xbb}, {0x58, 0x01, 0xee, 0xbb},
{0x59, 0x00, 0xf0, 0xbb}, {0x5a, 0x01, 0x20, 0xbb},
{0x5c, 0x1d, 0x17, 0xbb}, {0x5d, 0x22, 0x1c, 0xbb},
{0x64, 0x1e, 0x1c, 0xbb}, {0x5b, 0x00, 0x01, 0xbb},
{0xf0, 0x00, 0x02, 0xbb}, {0x36, 0x68, 0x10, 0xbb},
{0x00, 0x00, 0x30, 0xdd}, {0x37, 0x81, 0x00, 0xbb},
{0xbc, 0x02, 0x18, 0xcc}, {0xbc, 0x03, 0x50, 0xcc},
{0xbc, 0x04, 0x18, 0xcc}, {0xbc, 0x05, 0x00, 0xcc},
{0xbc, 0x06, 0x00, 0xcc}, {0xbc, 0x08, 0x30, 0xcc},
{0xbc, 0x09, 0x40, 0xcc}, {0xbc, 0x0a, 0x10, 0xcc},
{0xbc, 0x0b, 0x00, 0xcc}, {0xbc, 0x0c, 0x00, 0xcc},
{0xbf, 0xc0, 0x26, 0xcc}, {0xbf, 0xc1, 0x02, 0xcc},
{0xbf, 0xcc, 0x04, 0xcc}, {0xb3, 0x5c, 0x01, 0xcc},
{0xb3, 0x01, 0x41, 0xcc},
{}
};
static const u8 mi1320_soc_InitVGA[][4] = {
{0xb3, 0x01, 0x01, 0xcc},
{0xb0, 0x03, 0x19, 0xcc},
{0xb0, 0x04, 0x02, 0xcc},
{0x00, 0x00, 0x30, 0xdd},
{0xb3, 0x00, 0x64, 0xcc},
{0xb3, 0x00, 0x67, 0xcc},
{0xb3, 0x05, 0x01, 0xcc},
{0xb3, 0x06, 0x01, 0xcc},
{0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x34, 0x02, 0xcc},
{0xb3, 0x35, 0xc8, 0xcc}, /* i2c add: 48 */
{0xb3, 0x02, 0x00, 0xcc},
{0xb3, 0x03, 0x0a, 0xcc},
{0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x01, 0xcc},
{0xb3, 0x23, 0xe0, 0xcc},
{0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x02, 0xcc},
{0xb3, 0x17, 0x7f, 0xcc},
{0xb3, 0x00, 0x67, 0xcc},
{0xb8, 0x00, 0x00, 0xcc},
{0xbc, 0x00, 0x71, 0xcc},
{0xbc, 0x01, 0x01, 0xcc},
{0xb3, 0x5c, 0x01, 0xcc},
{0xf0, 0x00, 0x02, 0xbb},
{0x00, 0x00, 0x10, 0xdd},
{0xc8, 0x00, 0x00, 0xbb},
{0x00, 0x00, 0x30, 0xdd},
{0xf0, 0x00, 0x00, 0xbb},
{0x00, 0x00, 0x10, 0xdd},
{0x07, 0x00, 0xe0, 0xbb},
{0x08, 0x00, 0x0b, 0xbb},
{0x21, 0x00, 0x0c, 0xbb},
{0x20, 0x01, 0x03, 0xbb}, /* h/v flip */
{0xbf, 0xc0, 0x26, 0xcc},
{0xbf, 0xc1, 0x02, 0xcc},
{0xbf, 0xcc, 0x04, 0xcc},
{0xb3, 0x01, 0x41, 0xcc},
{0xf0, 0x00, 0x00, 0xbb},
{0x05, 0x01, 0x78, 0xbb},
{0x06, 0x00, 0x11, 0xbb},
{0x07, 0x01, 0x42, 0xbb},
{0x08, 0x00, 0x11, 0xbb},
{0x20, 0x01, 0x03, 0xbb}, /* h/v flip */
{0x21, 0x80, 0x00, 0xbb},
{0x22, 0x0d, 0x0f, 0xbb},
{0x24, 0x80, 0x00, 0xbb},
{0x59, 0x00, 0xff, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x39, 0x03, 0xca, 0xbb},
{0x3a, 0x06, 0x80, 0xbb},
{0x3b, 0x01, 0x52, 0xbb},
{0x3c, 0x05, 0x40, 0xbb},
{0x57, 0x01, 0x9c, 0xbb},
{0x58, 0x01, 0xee, 0xbb},
{0x59, 0x00, 0xf0, 0xbb},
{0x5a, 0x01, 0x20, 0xbb},
{0x5c, 0x1d, 0x17, 0xbb},
{0x5d, 0x22, 0x1c, 0xbb},
{0x64, 0x1e, 0x1c, 0xbb},
{0x5b, 0x00, 0x00, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x22, 0xa0, 0x78, 0xbb},
{0x23, 0xa0, 0x78, 0xbb},
{0x24, 0x7f, 0x00, 0xbb},
{0x28, 0xea, 0x02, 0xbb},
{0x29, 0x86, 0x7a, 0xbb},
{0x5e, 0x52, 0x4c, 0xbb},
{0x5f, 0x20, 0x24, 0xbb},
{0x60, 0x00, 0x02, 0xbb},
{0x02, 0x00, 0xee, 0xbb},
{0x03, 0x39, 0x23, 0xbb},
{0x04, 0x07, 0x24, 0xbb},
{0x09, 0x00, 0xc0, 0xbb},
{0x0a, 0x00, 0x79, 0xbb},
{0x0b, 0x00, 0x04, 0xbb},
{0x0c, 0x00, 0x5c, 0xbb},
{0x0d, 0x00, 0xd9, 0xbb},
{0x0e, 0x00, 0x53, 0xbb},
{0x0f, 0x00, 0x21, 0xbb},
{0x10, 0x00, 0xa4, 0xbb},
{0x11, 0x00, 0xe5, 0xbb},
{0x15, 0x00, 0x00, 0xbb},
{0x16, 0x00, 0x00, 0xbb},
{0x17, 0x00, 0x00, 0xbb},
{0x18, 0x00, 0x00, 0xbb},
{0x19, 0x00, 0x00, 0xbb},
{0x1a, 0x00, 0x00, 0xbb},
{0x1b, 0x00, 0x00, 0xbb},
{0x1c, 0x00, 0x00, 0xbb},
{0x1d, 0x00, 0x00, 0xbb},
{0x1e, 0x00, 0x00, 0xbb},
{0xf0, 0x00, 0x01, 0xbb},
{0x06, 0xe0, 0x0e, 0xbb},
{0x06, 0x60, 0x0e, 0xbb},
{0xb3, 0x5c, 0x01, 0xcc},
{}
};
static const u8 mi1320_soc_InitQVGA[][4] = {
{0xb3, 0x01, 0x01, 0xcc},
{0xb0, 0x03, 0x19, 0xcc},
{0xb0, 0x04, 0x02, 0xcc},
{0x00, 0x00, 0x30, 0xdd},
{0xb3, 0x00, 0x64, 0xcc},
{0xb3, 0x00, 0x67, 0xcc},
{0xb3, 0x05, 0x01, 0xcc},
{0xb3, 0x06, 0x01, 0xcc},
{0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x34, 0x02, 0xcc},
{0xb3, 0x35, 0xc8, 0xcc},
{0xb3, 0x02, 0x00, 0xcc},
{0xb3, 0x03, 0x0a, 0xcc},
{0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x01, 0xcc},
{0xb3, 0x23, 0xe0, 0xcc},
{0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x02, 0xcc},
{0xb3, 0x17, 0x7f, 0xcc},
{0xb3, 0x00, 0x67, 0xcc},
{0xb8, 0x00, 0x00, 0xcc},
{0xbc, 0x00, 0xd1, 0xcc},
{0xbc, 0x01, 0x01, 0xcc},
{0xb3, 0x5c, 0x01, 0xcc},
{0xf0, 0x00, 0x02, 0xbb},
{0x00, 0x00, 0x10, 0xdd},
{0xc8, 0x00, 0x00, 0xbb},
{0x00, 0x00, 0x30, 0xdd},
{0xf0, 0x00, 0x00, 0xbb},
{0x00, 0x00, 0x10, 0xdd},
{0x07, 0x00, 0xe0, 0xbb},
{0x08, 0x00, 0x0b, 0xbb},
{0x21, 0x00, 0x0c, 0xbb},
{0x20, 0x01, 0x03, 0xbb}, /* h/v flip */
{0xbf, 0xc0, 0x26, 0xcc},
{0xbf, 0xc1, 0x02, 0xcc},
{0xbf, 0xcc, 0x04, 0xcc},
{0xbc, 0x02, 0x18, 0xcc},
{0xbc, 0x03, 0x50, 0xcc},
{0xbc, 0x04, 0x18, 0xcc},
{0xbc, 0x05, 0x00, 0xcc},
{0xbc, 0x06, 0x00, 0xcc},
{0xbc, 0x08, 0x30, 0xcc},
{0xbc, 0x09, 0x40, 0xcc},
{0xbc, 0x0a, 0x10, 0xcc},
{0xbc, 0x0b, 0x00, 0xcc},
{0xbc, 0x0c, 0x00, 0xcc},
{0xb3, 0x01, 0x41, 0xcc},
{0xf0, 0x00, 0x00, 0xbb},
{0x05, 0x01, 0x78, 0xbb},
{0x06, 0x00, 0x11, 0xbb},
{0x07, 0x01, 0x42, 0xbb},
{0x08, 0x00, 0x11, 0xbb},
{0x20, 0x01, 0x03, 0xbb}, /* h/v flip */
{0x21, 0x80, 0x00, 0xbb},
{0x22, 0x0d, 0x0f, 0xbb},
{0x24, 0x80, 0x00, 0xbb},
{0x59, 0x00, 0xff, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x39, 0x03, 0xca, 0xbb},
{0x3a, 0x06, 0x80, 0xbb},
{0x3b, 0x01, 0x52, 0xbb},
{0x3c, 0x05, 0x40, 0xbb},
{0x57, 0x01, 0x9c, 0xbb},
{0x58, 0x01, 0xee, 0xbb},
{0x59, 0x00, 0xf0, 0xbb},
{0x5a, 0x01, 0x20, 0xbb},
{0x5c, 0x1d, 0x17, 0xbb},
{0x5d, 0x22, 0x1c, 0xbb},
{0x64, 0x1e, 0x1c, 0xbb},
{0x5b, 0x00, 0x00, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x22, 0xa0, 0x78, 0xbb},
{0x23, 0xa0, 0x78, 0xbb},
{0x24, 0x7f, 0x00, 0xbb},
{0x28, 0xea, 0x02, 0xbb},
{0x29, 0x86, 0x7a, 0xbb},
{0x5e, 0x52, 0x4c, 0xbb},
{0x5f, 0x20, 0x24, 0xbb},
{0x60, 0x00, 0x02, 0xbb},
{0x02, 0x00, 0xee, 0xbb},
{0x03, 0x39, 0x23, 0xbb},
{0x04, 0x07, 0x24, 0xbb},
{0x09, 0x00, 0xc0, 0xbb},
{0x0a, 0x00, 0x79, 0xbb},
{0x0b, 0x00, 0x04, 0xbb},
{0x0c, 0x00, 0x5c, 0xbb},
{0x0d, 0x00, 0xd9, 0xbb},
{0x0e, 0x00, 0x53, 0xbb},
{0x0f, 0x00, 0x21, 0xbb},
{0x10, 0x00, 0xa4, 0xbb},
{0x11, 0x00, 0xe5, 0xbb},
{0x15, 0x00, 0x00, 0xbb},
{0x16, 0x00, 0x00, 0xbb},
{0x17, 0x00, 0x00, 0xbb},
{0x18, 0x00, 0x00, 0xbb},
{0x19, 0x00, 0x00, 0xbb},
{0x1a, 0x00, 0x00, 0xbb},
{0x1b, 0x00, 0x00, 0xbb},
{0x1c, 0x00, 0x00, 0xbb},
{0x1d, 0x00, 0x00, 0xbb},
{0x1e, 0x00, 0x00, 0xbb},
{0xf0, 0x00, 0x01, 0xbb},
{0x06, 0xe0, 0x0e, 0xbb},
{0x06, 0x60, 0x0e, 0xbb},
{0xb3, 0x5c, 0x01, 0xcc},
{}
};
static const u8 mi1320_soc_InitSXGA[][4] = {
{0xb3, 0x01, 0x01, 0xcc},
{0xb0, 0x03, 0x19, 0xcc},
{0x00, 0x00, 0x30, 0xdd},
{0xb3, 0x00, 0x64, 0xcc},
{0xb3, 0x00, 0x67, 0xcc},
{0xb3, 0x05, 0x01, 0xcc},
{0xb3, 0x06, 0x01, 0xcc},
{0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x34, 0x02, 0xcc},
{0xb3, 0x35, 0xc8, 0xcc},
{0xb3, 0x02, 0x00, 0xcc},
{0xb3, 0x03, 0x0a, 0xcc},
{0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x04, 0xcc},
{0xb3, 0x23, 0x00, 0xcc},
{0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x04, 0xcc},
{0xb3, 0x17, 0xff, 0xcc},
{0xb3, 0x00, 0x67, 0xcc},
{0xbc, 0x00, 0x71, 0xcc},
{0xbc, 0x01, 0x01, 0xcc},
{0xb3, 0x5c, 0x01, 0xcc},
{0xf0, 0x00, 0x02, 0xbb},
{0x00, 0x00, 0x30, 0xdd},
{0xc8, 0x9f, 0x0b, 0xbb},
{0x00, 0x00, 0x20, 0xdd},
{0x5b, 0x00, 0x01, 0xbb},
{0x00, 0x00, 0x20, 0xdd},
{0xf0, 0x00, 0x00, 0xbb},
{0x00, 0x00, 0x30, 0xdd},
{0x20, 0x01, 0x03, 0xbb}, /* h/v flip */
{0x00, 0x00, 0x20, 0xdd},
{0xbf, 0xc0, 0x26, 0xcc},
{0xbf, 0xc1, 0x02, 0xcc},
{0xbf, 0xcc, 0x04, 0xcc},
{0xb3, 0x01, 0x41, 0xcc},
{0xf0, 0x00, 0x00, 0xbb},
{0x05, 0x01, 0x78, 0xbb},
{0x06, 0x00, 0x11, 0xbb},
{0x07, 0x01, 0x42, 0xbb},
{0x08, 0x00, 0x11, 0xbb},
{0x20, 0x01, 0x03, 0xbb}, /* h/v flip */
{0x21, 0x80, 0x00, 0xbb},
{0x22, 0x0d, 0x0f, 0xbb},
{0x24, 0x80, 0x00, 0xbb},
{0x59, 0x00, 0xff, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x39, 0x03, 0xca, 0xbb},
{0x3a, 0x06, 0x80, 0xbb},
{0x3b, 0x01, 0x52, 0xbb},
{0x3c, 0x05, 0x40, 0xbb},
{0x57, 0x01, 0x9c, 0xbb},
{0x58, 0x01, 0xee, 0xbb},
{0x59, 0x00, 0xf0, 0xbb},
{0x5a, 0x01, 0x20, 0xbb},
{0x5c, 0x1d, 0x17, 0xbb},
{0x5d, 0x22, 0x1c, 0xbb},
{0x64, 0x1e, 0x1c, 0xbb},
{0x5b, 0x00, 0x00, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x22, 0xa0, 0x78, 0xbb},
{0x23, 0xa0, 0x78, 0xbb},
{0x24, 0x7f, 0x00, 0xbb},
{0x28, 0xea, 0x02, 0xbb},
{0x29, 0x86, 0x7a, 0xbb},
{0x5e, 0x52, 0x4c, 0xbb},
{0x5f, 0x20, 0x24, 0xbb},
{0x60, 0x00, 0x02, 0xbb},
{0x02, 0x00, 0xee, 0xbb},
{0x03, 0x39, 0x23, 0xbb},
{0x04, 0x07, 0x24, 0xbb},
{0x09, 0x00, 0xc0, 0xbb},
{0x0a, 0x00, 0x79, 0xbb},
{0x0b, 0x00, 0x04, 0xbb},
{0x0c, 0x00, 0x5c, 0xbb},
{0x0d, 0x00, 0xd9, 0xbb},
{0x0e, 0x00, 0x53, 0xbb},
{0x0f, 0x00, 0x21, 0xbb},
{0x10, 0x00, 0xa4, 0xbb},
{0x11, 0x00, 0xe5, 0xbb},
{0x15, 0x00, 0x00, 0xbb},
{0x16, 0x00, 0x00, 0xbb},
{0x17, 0x00, 0x00, 0xbb},
{0x18, 0x00, 0x00, 0xbb},
{0x19, 0x00, 0x00, 0xbb},
{0x1a, 0x00, 0x00, 0xbb},
{0x1b, 0x00, 0x00, 0xbb},
{0x1c, 0x00, 0x00, 0xbb},
{0x1d, 0x00, 0x00, 0xbb},
{0x1e, 0x00, 0x00, 0xbb},
{0xf0, 0x00, 0x01, 0xbb},
{0x06, 0xe0, 0x0e, 0xbb},
{0x06, 0x60, 0x0e, 0xbb},
{0xb3, 0x5c, 0x01, 0xcc},
{0xf0, 0x00, 0x00, 0xbb},
{0x05, 0x01, 0x13, 0xbb},
{0x06, 0x00, 0x11, 0xbb},
{0x07, 0x00, 0x85, 0xbb},
{0x08, 0x00, 0x27, 0xbb},
{0x20, 0x01, 0x03, 0xbb}, /* h/v flip */
{0x21, 0x80, 0x00, 0xbb},
{0x22, 0x0d, 0x0f, 0xbb},
{0x24, 0x80, 0x00, 0xbb},
{0x59, 0x00, 0xff, 0xbb},
{0xf0, 0x00, 0x02, 0xbb},
{0x39, 0x03, 0x0d, 0xbb},
{0x3a, 0x06, 0x1b, 0xbb},
{0x3b, 0x00, 0x95, 0xbb},
{0x3c, 0x04, 0xdb, 0xbb},
{0x57, 0x02, 0x00, 0xbb},
{0x58, 0x02, 0x66, 0xbb},
{0x59, 0x00, 0xff, 0xbb},
{0x5a, 0x01, 0x33, 0xbb},
{0x5c, 0x12, 0x0d, 0xbb},
{0x5d, 0x16, 0x11, 0xbb},
{0x64, 0x5e, 0x1c, 0xbb},
{}
};
static const u8 po3130_gamma[17] = {
0x00, 0x13, 0x38, 0x59, 0x79, 0x92, 0xa7, 0xb9, 0xc8,
0xd4, 0xdf, 0xe7, 0xee, 0xf4, 0xf9, 0xfc, 0xff
};
static const u8 po3130_matrix[9] = {
0x5f, 0xec, 0xf5, 0xf1, 0x5a, 0xf5, 0xf1, 0xec, 0x63
};
static const u8 po3130_initVGA_data[][4] = {
{0xb0, 0x4d, 0x00, 0xcc}, {0xb3, 0x01, 0x01, 0xcc},
{0x00, 0x00, 0x50, 0xdd}, {0xb0, 0x03, 0x01, 0xcc},
{0xb3, 0x00, 0x04, 0xcc}, {0xb3, 0x00, 0x24, 0xcc},
{0xb3, 0x00, 0x25, 0xcc}, {0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc}, {0xb3, 0x05, 0x00, 0xcc},
{0xb3, 0x06, 0x01, 0xcc}, {0xb3, 0x03, 0x1a, 0xcc},
{0xb3, 0x04, 0x15, 0xcc}, {0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc}, {0xb3, 0x22, 0x01, 0xcc},
{0xb3, 0x23, 0xe8, 0xcc}, {0xb8, 0x08, 0xe8, 0xcc},
{0xb3, 0x14, 0x00, 0xcc}, {0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x02, 0xcc}, {0xb3, 0x17, 0x7f, 0xcc},
{0xb3, 0x34, 0x01, 0xcc},
{0xb3, 0x35, 0xf6, 0xcc}, /* i2c add: 76 */
{0xb3, 0x00, 0x27, 0xcc}, {0xbc, 0x00, 0x71, 0xcc},
{0xb8, 0x00, 0x21, 0xcc}, {0xb8, 0x27, 0x20, 0xcc},
{0xb8, 0x01, 0x79, 0xcc}, {0xb8, 0x81, 0x09, 0xcc},
{0xb8, 0x2c, 0x50, 0xcc}, {0xb8, 0x2d, 0xf8, 0xcc},
{0xb8, 0x2e, 0xf8, 0xcc}, {0xb8, 0x2f, 0xf8, 0xcc},
{0xb8, 0x30, 0x50, 0xcc}, {0xb8, 0x31, 0xf8, 0xcc},
{0xb8, 0x32, 0xf8, 0xcc}, {0xb8, 0x33, 0xf8, 0xcc},
{0xb8, 0x34, 0x50, 0xcc}, {0xb8, 0x35, 0x00, 0xcc},
{0xb8, 0x36, 0x00, 0xcc}, {0xb8, 0x37, 0x00, 0xcc},
{0x00, 0x1e, 0xc6, 0xaa}, {0x00, 0x20, 0x44, 0xaa},
{0x00, 0xad, 0x02, 0xaa}, {0x00, 0xae, 0x2c, 0xaa},
{0x00, 0x12, 0x08, 0xaa}, {0x00, 0x17, 0x41, 0xaa},
{0x00, 0x19, 0x41, 0xaa}, {0x00, 0x1e, 0x06, 0xaa},
{0x00, 0x21, 0x00, 0xaa}, {0x00, 0x36, 0xc0, 0xaa},
{0x00, 0x37, 0xc8, 0xaa}, {0x00, 0x3b, 0x36, 0xaa},
{0x00, 0x4b, 0xfe, 0xaa}, {0x00, 0x51, 0x1c, 0xaa},
{0x00, 0x52, 0x01, 0xaa}, {0x00, 0x55, 0x0a, 0xaa},
{0x00, 0x59, 0x02, 0xaa}, {0x00, 0x5a, 0x04, 0xaa},
{0x00, 0x5c, 0x10, 0xaa}, {0x00, 0x5d, 0x10, 0xaa},
{0x00, 0x5e, 0x10, 0xaa}, {0x00, 0x5f, 0x10, 0xaa},
{0x00, 0x61, 0x00, 0xaa}, {0x00, 0x62, 0x18, 0xaa},
{0x00, 0x63, 0x30, 0xaa}, {0x00, 0x70, 0x68, 0xaa},
{0x00, 0x80, 0x71, 0xaa}, {0x00, 0x81, 0x08, 0xaa},
{0x00, 0x82, 0x00, 0xaa}, {0x00, 0x83, 0x55, 0xaa},
{0x00, 0x84, 0x06, 0xaa}, {0x00, 0x85, 0x06, 0xaa},
{0x00, 0x86, 0x13, 0xaa}, {0x00, 0x87, 0x18, 0xaa},
{0x00, 0xaa, 0x3f, 0xaa}, {0x00, 0xab, 0x44, 0xaa},
{0x00, 0xb0, 0x68, 0xaa}, {0x00, 0xb5, 0x10, 0xaa},
{0x00, 0xb8, 0x20, 0xaa}, {0x00, 0xb9, 0xa0, 0xaa},
{0x00, 0xbc, 0x04, 0xaa}, {0x00, 0x8b, 0x40, 0xaa},
{0x00, 0x8c, 0x91, 0xaa}, {0x00, 0x8d, 0x8f, 0xaa},
{0x00, 0x8e, 0x91, 0xaa}, {0x00, 0x8f, 0x43, 0xaa},
{0x00, 0x90, 0x92, 0xaa}, {0x00, 0x91, 0x89, 0xaa},
{0x00, 0x92, 0x9d, 0xaa}, {0x00, 0x93, 0x46, 0xaa},
{0x00, 0xd6, 0x22, 0xaa}, {0x00, 0x73, 0x00, 0xaa},
{0x00, 0x74, 0x10, 0xaa}, {0x00, 0x75, 0x20, 0xaa},
{0x00, 0x76, 0x2b, 0xaa}, {0x00, 0x77, 0x36, 0xaa},
{0x00, 0x78, 0x49, 0xaa}, {0x00, 0x79, 0x5a, 0xaa},
{0x00, 0x7a, 0x7f, 0xaa}, {0x00, 0x7b, 0x9b, 0xaa},
{0x00, 0x7c, 0xba, 0xaa}, {0x00, 0x7d, 0xd4, 0xaa},
{0x00, 0x7e, 0xea, 0xaa}, {0x00, 0xd6, 0x62, 0xaa},
{0x00, 0x73, 0x00, 0xaa}, {0x00, 0x74, 0x10, 0xaa},
{0x00, 0x75, 0x20, 0xaa}, {0x00, 0x76, 0x2b, 0xaa},
{0x00, 0x77, 0x36, 0xaa}, {0x00, 0x78, 0x49, 0xaa},
{0x00, 0x79, 0x5a, 0xaa}, {0x00, 0x7a, 0x7f, 0xaa},
{0x00, 0x7b, 0x9b, 0xaa}, {0x00, 0x7c, 0xba, 0xaa},
{0x00, 0x7d, 0xd4, 0xaa}, {0x00, 0x7e, 0xea, 0xaa},
{0x00, 0xd6, 0xa2, 0xaa}, {0x00, 0x73, 0x00, 0xaa},
{0x00, 0x74, 0x10, 0xaa}, {0x00, 0x75, 0x20, 0xaa},
{0x00, 0x76, 0x2b, 0xaa}, {0x00, 0x77, 0x36, 0xaa},
{0x00, 0x78, 0x49, 0xaa}, {0x00, 0x79, 0x5a, 0xaa},
{0x00, 0x7a, 0x7f, 0xaa}, {0x00, 0x7b, 0x9b, 0xaa},
{0x00, 0x7c, 0xba, 0xaa}, {0x00, 0x7d, 0xd4, 0xaa},
{0x00, 0x7e, 0xea, 0xaa},
{0x00, 0x4c, 0x07, 0xaa},
{0x00, 0x4b, 0xe0, 0xaa}, {0x00, 0x4e, 0x77, 0xaa},
{0x00, 0x59, 0x02, 0xaa}, {0x00, 0x4d, 0x0a, 0xaa},
/* {0x00, 0xd1, 0x00, 0xaa}, {0x00, 0x20, 0xc4, 0xaa},
{0xb8, 0x8e, 0x00, 0xcc}, {0xb8, 0x8f, 0xff, 0xcc}, */
{0x00, 0xd1, 0x3c, 0xaa}, {0x00, 0x20, 0xc4, 0xaa},
{0xb8, 0x8e, 0x00, 0xcc}, {0xb8, 0x8f, 0xff, 0xcc},
{0xb8, 0xfe, 0x00, 0xcc}, {0xb8, 0xff, 0x28, 0xcc},
{0xb9, 0x00, 0x28, 0xcc}, {0xb9, 0x01, 0x28, 0xcc},
{0xb9, 0x02, 0x28, 0xcc}, {0xb9, 0x03, 0x00, 0xcc},
{0xb9, 0x04, 0x00, 0xcc}, {0xb9, 0x05, 0x3c, 0xcc},
{0xb9, 0x06, 0x3c, 0xcc}, {0xb9, 0x07, 0x3c, 0xcc},
{0xb9, 0x08, 0x3c, 0xcc}, {0x00, 0x05, 0x00, 0xaa},
{0xb3, 0x5c, 0x00, 0xcc}, {0xb3, 0x01, 0x41, 0xcc},
{}
};
static const u8 po3130_rundata[][4] = {
{0x00, 0x47, 0x45, 0xaa}, {0x00, 0x48, 0x9b, 0xaa},
{0x00, 0x49, 0x3a, 0xaa}, {0x00, 0x4a, 0x01, 0xaa},
{0x00, 0x44, 0x40, 0xaa},
/* {0x00, 0xd5, 0x7c, 0xaa}, */
{0x00, 0xad, 0x04, 0xaa}, {0x00, 0xae, 0x00, 0xaa},
{0x00, 0xb0, 0x78, 0xaa}, {0x00, 0x98, 0x02, 0xaa},
{0x00, 0x94, 0x25, 0xaa}, {0x00, 0x95, 0x25, 0xaa},
{0x00, 0x59, 0x68, 0xaa}, {0x00, 0x44, 0x20, 0xaa},
{0x00, 0x17, 0x50, 0xaa}, {0x00, 0x19, 0x50, 0xaa},
{0x00, 0xd1, 0x3c, 0xaa}, {0x00, 0xd1, 0x3c, 0xaa},
{0x00, 0x1e, 0x06, 0xaa}, {0x00, 0x1e, 0x06, 0xaa},
{}
};
static const u8 po3130_initQVGA_data[][4] = {
{0xb0, 0x4d, 0x00, 0xcc}, {0xb3, 0x01, 0x01, 0xcc},
{0x00, 0x00, 0x50, 0xdd}, {0xb0, 0x03, 0x09, 0xcc},
{0xb3, 0x00, 0x04, 0xcc}, {0xb3, 0x00, 0x24, 0xcc},
{0xb3, 0x00, 0x25, 0xcc}, {0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc}, {0xb3, 0x05, 0x00, 0xcc},
{0xb3, 0x06, 0x01, 0xcc}, {0xb3, 0x03, 0x1a, 0xcc},
{0xb3, 0x04, 0x15, 0xcc}, {0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc}, {0xb3, 0x22, 0x01, 0xcc},
{0xb3, 0x23, 0xe0, 0xcc}, {0xb8, 0x08, 0xe0, 0xcc},
{0xb3, 0x14, 0x00, 0xcc}, {0xb3, 0x15, 0x00, 0xcc},
{0xb3, 0x16, 0x02, 0xcc}, {0xb3, 0x17, 0x7f, 0xcc},
{0xb3, 0x34, 0x01, 0xcc}, {0xb3, 0x35, 0xf6, 0xcc},
{0xb3, 0x00, 0x27, 0xcc}, {0xbc, 0x00, 0xd1, 0xcc},
{0xb8, 0x00, 0x21, 0xcc}, {0xb8, 0x27, 0x20, 0xcc},
{0xb8, 0x01, 0x79, 0xcc}, {0xb8, 0x81, 0x09, 0xcc},
{0xb8, 0x2c, 0x50, 0xcc}, {0xb8, 0x2d, 0xf8, 0xcc},
{0xb8, 0x2e, 0xf8, 0xcc}, {0xb8, 0x2f, 0xf8, 0xcc},
{0xb8, 0x30, 0x50, 0xcc}, {0xb8, 0x31, 0xf8, 0xcc},
{0xb8, 0x32, 0xf8, 0xcc}, {0xb8, 0x33, 0xf8, 0xcc},
{0xb8, 0x34, 0x50, 0xcc}, {0xb8, 0x35, 0x00, 0xcc},
{0xb8, 0x36, 0x00, 0xcc}, {0xb8, 0x37, 0x00, 0xcc},
{0x00, 0x1e, 0xc6, 0xaa}, {0x00, 0x20, 0x44, 0xaa},
{0x00, 0xad, 0x02, 0xaa}, {0x00, 0xae, 0x2c, 0xaa},
{0x00, 0x12, 0x08, 0xaa}, {0x00, 0x17, 0x41, 0xaa},
{0x00, 0x19, 0x41, 0xaa}, {0x00, 0x1e, 0x06, 0xaa},
{0x00, 0x21, 0x00, 0xaa}, {0x00, 0x36, 0xc0, 0xaa},
{0x00, 0x37, 0xc8, 0xaa}, {0x00, 0x3b, 0x36, 0xaa},
{0x00, 0x4b, 0xfe, 0xaa}, {0x00, 0x51, 0x1c, 0xaa},
{0x00, 0x52, 0x01, 0xaa}, {0x00, 0x55, 0x0a, 0xaa},
{0x00, 0x59, 0x6f, 0xaa}, {0x00, 0x5a, 0x04, 0xaa},
{0x00, 0x5c, 0x10, 0xaa}, {0x00, 0x5d, 0x10, 0xaa},
{0x00, 0x5e, 0x10, 0xaa}, {0x00, 0x5f, 0x10, 0xaa},
{0x00, 0x61, 0x00, 0xaa}, {0x00, 0x62, 0x18, 0xaa},
{0x00, 0x63, 0x30, 0xaa}, {0x00, 0x70, 0x68, 0xaa},
{0x00, 0x80, 0x71, 0xaa}, {0x00, 0x81, 0x08, 0xaa},
{0x00, 0x82, 0x00, 0xaa}, {0x00, 0x83, 0x55, 0xaa},
{0x00, 0x84, 0x06, 0xaa}, {0x00, 0x85, 0x06, 0xaa},
{0x00, 0x86, 0x13, 0xaa}, {0x00, 0x87, 0x18, 0xaa},
{0x00, 0xaa, 0x3f, 0xaa}, {0x00, 0xab, 0x44, 0xaa},
{0x00, 0xb0, 0x68, 0xaa}, {0x00, 0xb5, 0x10, 0xaa},
{0x00, 0xb8, 0x20, 0xaa}, {0x00, 0xb9, 0xa0, 0xaa},
{0x00, 0xbc, 0x04, 0xaa}, {0x00, 0x8b, 0x40, 0xaa},
{0x00, 0x8c, 0x91, 0xaa}, {0x00, 0x8d, 0x8f, 0xaa},
{0x00, 0x8e, 0x91, 0xaa}, {0x00, 0x8f, 0x43, 0xaa},
{0x00, 0x90, 0x92, 0xaa}, {0x00, 0x91, 0x89, 0xaa},
{0x00, 0x92, 0x9d, 0xaa}, {0x00, 0x93, 0x46, 0xaa},
{0x00, 0xd6, 0x22, 0xaa}, {0x00, 0x73, 0x00, 0xaa},
{0x00, 0x74, 0x10, 0xaa}, {0x00, 0x75, 0x20, 0xaa},
{0x00, 0x76, 0x2b, 0xaa}, {0x00, 0x77, 0x36, 0xaa},
{0x00, 0x78, 0x49, 0xaa}, {0x00, 0x79, 0x5a, 0xaa},
{0x00, 0x7a, 0x7f, 0xaa}, {0x00, 0x7b, 0x9b, 0xaa},
{0x00, 0x7c, 0xba, 0xaa}, {0x00, 0x7d, 0xd4, 0xaa},
{0x00, 0x7e, 0xea, 0xaa}, {0x00, 0xd6, 0x62, 0xaa},
{0x00, 0x73, 0x00, 0xaa}, {0x00, 0x74, 0x10, 0xaa},
{0x00, 0x75, 0x20, 0xaa}, {0x00, 0x76, 0x2b, 0xaa},
{0x00, 0x77, 0x36, 0xaa}, {0x00, 0x78, 0x49, 0xaa},
{0x00, 0x79, 0x5a, 0xaa}, {0x00, 0x7a, 0x7f, 0xaa},
{0x00, 0x7b, 0x9b, 0xaa}, {0x00, 0x7c, 0xba, 0xaa},
{0x00, 0x7d, 0xd4, 0xaa}, {0x00, 0x7e, 0xea, 0xaa},
{0x00, 0xd6, 0xa2, 0xaa}, {0x00, 0x73, 0x00, 0xaa},
{0x00, 0x74, 0x10, 0xaa}, {0x00, 0x75, 0x20, 0xaa},
{0x00, 0x76, 0x2b, 0xaa}, {0x00, 0x77, 0x36, 0xaa},
{0x00, 0x78, 0x49, 0xaa}, {0x00, 0x79, 0x5a, 0xaa},
{0x00, 0x7a, 0x7f, 0xaa}, {0x00, 0x7b, 0x9b, 0xaa},
{0x00, 0x7c, 0xba, 0xaa}, {0x00, 0x7d, 0xd4, 0xaa},
{0x00, 0x7e, 0xea, 0xaa}, {0x00, 0x4c, 0x07, 0xaa},
{0x00, 0x4b, 0xe0, 0xaa}, {0x00, 0x4e, 0x77, 0xaa},
{0x00, 0x59, 0x66, 0xaa}, {0x00, 0x4d, 0x0a, 0xaa},
{0x00, 0xd1, 0x00, 0xaa}, {0x00, 0x20, 0xc4, 0xaa},
{0xb8, 0x8e, 0x00, 0xcc}, {0xb8, 0x8f, 0xff, 0xcc},
{0xb8, 0xfe, 0x00, 0xcc}, {0xb8, 0xff, 0x28, 0xcc},
{0xb9, 0x00, 0x28, 0xcc}, {0xb9, 0x01, 0x28, 0xcc},
{0xb9, 0x02, 0x28, 0xcc}, {0xb9, 0x03, 0x00, 0xcc},
{0xb9, 0x04, 0x00, 0xcc}, {0xb9, 0x05, 0x3c, 0xcc},
{0xb9, 0x06, 0x3c, 0xcc}, {0xb9, 0x07, 0x3c, 0xcc},
{0xb9, 0x08, 0x3c, 0xcc}, {0xbc, 0x02, 0x18, 0xcc},
{0xbc, 0x03, 0x50, 0xcc}, {0xbc, 0x04, 0x18, 0xcc},
{0xbc, 0x05, 0x00, 0xcc}, {0xbc, 0x06, 0x00, 0xcc},
{0xbc, 0x08, 0x30, 0xcc}, {0xbc, 0x09, 0x40, 0xcc},
{0xbc, 0x0a, 0x10, 0xcc}, {0xbc, 0x0b, 0x00, 0xcc},
{0xbc, 0x0c, 0x00, 0xcc}, {0x00, 0x05, 0x00, 0xaa},
{0xb3, 0x5c, 0x00, 0xcc}, {0xb3, 0x01, 0x41, 0xcc},
{}
};
static const u8 hv7131r_gamma[17] = {
0x00, 0x13, 0x38, 0x59, 0x79, 0x92, 0xa7, 0xb9, 0xc8,
0xd4, 0xdf, 0xe7, 0xee, 0xf4, 0xf9, 0xfc, 0xff
};
static const u8 hv7131r_matrix[9] = {
0x5f, 0xec, 0xf5, 0xf1, 0x5a, 0xf5, 0xf1, 0xec, 0x63
};
static const u8 hv7131r_initVGA_data[][4] = {
{0xb3, 0x01, 0x01, 0xcc},
{0xb0, 0x03, 0x19, 0xcc},
{0xb0, 0x04, 0x02, 0xcc},
{0x00, 0x00, 0x20, 0xdd},
{0xb3, 0x00, 0x24, 0xcc},
{0xb3, 0x00, 0x25, 0xcc},
{0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x05, 0x01, 0xcc},
{0xb3, 0x06, 0x03, 0xcc},
{0xb3, 0x01, 0x45, 0xcc},
{0xb3, 0x03, 0x0b, 0xcc},
{0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x01, 0xcc},
{0xb3, 0x23, 0xe0, 0xcc},
{0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x02, 0xcc},
{0xb3, 0x16, 0x02, 0xcc},
{0xb3, 0x17, 0x7f, 0xcc},
{0xb3, 0x34, 0x01, 0xcc},
{0xb3, 0x35, 0x91, 0xcc}, /* i2c add: 11 */
{0xb3, 0x00, 0x27, 0xcc},
{0xbc, 0x00, 0x73, 0xcc},
{0xb8, 0x00, 0x23, 0xcc},
{0xb8, 0x2c, 0x50, 0xcc},
{0xb8, 0x2d, 0xf8, 0xcc},
{0xb8, 0x2e, 0xf8, 0xcc},
{0xb8, 0x2f, 0xf8, 0xcc},
{0xb8, 0x30, 0x50, 0xcc},
{0xb8, 0x31, 0xf8, 0xcc},
{0xb8, 0x32, 0xf8, 0xcc},
{0xb8, 0x33, 0xf8, 0xcc},
{0xb8, 0x34, 0x58, 0xcc},
{0xb8, 0x35, 0x00, 0xcc},
{0xb8, 0x36, 0x00, 0xcc},
{0xb8, 0x37, 0x00, 0xcc},
{0xb8, 0x27, 0x20, 0xcc},
{0xb8, 0x01, 0x7d, 0xcc},
{0xb8, 0x81, 0x09, 0xcc},
{0xb3, 0x01, 0x41, 0xcc},
{0xb8, 0x8e, 0x00, 0xcc},
{0xb8, 0x8f, 0xff, 0xcc},
{0x00, 0x01, 0x0c, 0xaa},
{0x00, 0x14, 0x01, 0xaa},
{0x00, 0x15, 0xe6, 0xaa},
{0x00, 0x16, 0x02, 0xaa},
{0x00, 0x17, 0x86, 0xaa},
{0x00, 0x23, 0x00, 0xaa},
{0x00, 0x25, 0x03, 0xaa},
{0x00, 0x26, 0xa9, 0xaa},
{0x00, 0x27, 0x80, 0xaa},
{0x00, 0x30, 0x18, 0xaa},
{0xb6, 0x00, 0x00, 0xcc},
{0xb6, 0x03, 0x02, 0xcc},
{0xb6, 0x02, 0x80, 0xcc},
{0xb6, 0x05, 0x01, 0xcc},
{0xb6, 0x04, 0xe0, 0xcc},
{0xb6, 0x12, 0x78, 0xcc},
{0xb6, 0x18, 0x02, 0xcc},
{0xb6, 0x17, 0x58, 0xcc},
{0xb6, 0x16, 0x00, 0xcc},
{0xb6, 0x22, 0x12, 0xcc},
{0xb6, 0x23, 0x0b, 0xcc},
{0xb3, 0x02, 0x02, 0xcc},
{0xbf, 0xc0, 0x39, 0xcc},
{0xbf, 0xc1, 0x04, 0xcc},
{0xbf, 0xcc, 0x10, 0xcc},
{0xb6, 0x12, 0xf8, 0xcc},
{0xb6, 0x13, 0x13, 0xcc},
{0xb9, 0x12, 0x00, 0xcc},
{0xb9, 0x13, 0x0a, 0xcc},
{0xb9, 0x14, 0x0a, 0xcc},
{0xb9, 0x15, 0x0a, 0xcc},
{0xb9, 0x16, 0x0a, 0xcc},
{0xb8, 0x0c, 0x20, 0xcc},
{0xb8, 0x0d, 0x70, 0xcc},
{0xb9, 0x18, 0x00, 0xcc},
{0xb9, 0x19, 0x0f, 0xcc},
{0xb9, 0x1a, 0x0f, 0xcc},
{0xb9, 0x1b, 0x0f, 0xcc},
{0xb9, 0x1c, 0x0f, 0xcc},
{0xb3, 0x5c, 0x01, 0xcc},
{}
};
static const u8 hv7131r_initQVGA_data[][4] = {
{0xb3, 0x01, 0x01, 0xcc},
{0xb0, 0x03, 0x19, 0xcc},
{0xb0, 0x04, 0x02, 0xcc},
{0x00, 0x00, 0x20, 0xdd},
{0xb3, 0x00, 0x24, 0xcc},
{0xb3, 0x00, 0x25, 0xcc},
{0xb3, 0x08, 0x01, 0xcc},
{0xb3, 0x09, 0x0c, 0xcc},
{0xb3, 0x05, 0x01, 0xcc},
{0xb3, 0x06, 0x03, 0xcc},
{0xb3, 0x01, 0x45, 0xcc},
{0xb3, 0x03, 0x0b, 0xcc},
{0xb3, 0x04, 0x05, 0xcc},
{0xb3, 0x20, 0x00, 0xcc},
{0xb3, 0x21, 0x00, 0xcc},
{0xb3, 0x22, 0x01, 0xcc},
{0xb3, 0x23, 0xe0, 0xcc},
{0xb3, 0x14, 0x00, 0xcc},
{0xb3, 0x15, 0x02, 0xcc},
{0xb3, 0x16, 0x02, 0xcc},
{0xb3, 0x17, 0x7f, 0xcc},
{0xb3, 0x34, 0x01, 0xcc},
{0xb3, 0x35, 0x91, 0xcc},
{0xb3, 0x00, 0x27, 0xcc},
{0xbc, 0x00, 0xd3, 0xcc},
{0xb8, 0x00, 0x23, 0xcc},
{0xb8, 0x2c, 0x50, 0xcc},
{0xb8, 0x2d, 0xf8, 0xcc},
{0xb8, 0x2e, 0xf8, 0xcc},
{0xb8, 0x2f, 0xf8, 0xcc},
{0xb8, 0x30, 0x50, 0xcc},
{0xb8, 0x31, 0xf8, 0xcc},
{0xb8, 0x32, 0xf8, 0xcc},
{0xb8, 0x33, 0xf8, 0xcc},
{0xb8, 0x34, 0x58, 0xcc},
{0xb8, 0x35, 0x00, 0xcc},
{0xb8, 0x36, 0x00, 0xcc},
{0xb8, 0x37, 0x00, 0xcc},
{0xb8, 0x27, 0x20, 0xcc},
{0xb8, 0x01, 0x7d, 0xcc},
{0xb8, 0x81, 0x09, 0xcc},
{0xb3, 0x01, 0x41, 0xcc},
{0xb8, 0x8e, 0x00, 0xcc},
{0xb8, 0x8f, 0xff, 0xcc},
{0x00, 0x01, 0x0c, 0xaa},
{0x00, 0x14, 0x01, 0xaa},
{0x00, 0x15, 0xe6, 0xaa},
{0x00, 0x16, 0x02, 0xaa},
{0x00, 0x17, 0x86, 0xaa},
{0x00, 0x23, 0x00, 0xaa},
{0x00, 0x25, 0x03, 0xaa},
{0x00, 0x26, 0xa9, 0xaa},
{0x00, 0x27, 0x80, 0xaa},
{0x00, 0x30, 0x18, 0xaa},
{0xb6, 0x00, 0x00, 0xcc},
{0xb6, 0x03, 0x01, 0xcc},
{0xb6, 0x02, 0x40, 0xcc},
{0xb6, 0x05, 0x00, 0xcc},
{0xb6, 0x04, 0xf0, 0xcc},
{0xb6, 0x12, 0x78, 0xcc},
{0xb6, 0x18, 0x00, 0xcc},
{0xb6, 0x17, 0x96, 0xcc},
{0xb6, 0x16, 0x00, 0xcc},
{0xb6, 0x22, 0x12, 0xcc},
{0xb6, 0x23, 0x0b, 0xcc},
{0xb3, 0x02, 0x02, 0xcc},
{0xbf, 0xc0, 0x39, 0xcc},
{0xbf, 0xc1, 0x04, 0xcc},
{0xbf, 0xcc, 0x10, 0xcc},
{0xbc, 0x02, 0x18, 0xcc},
{0xbc, 0x03, 0x50, 0xcc},
{0xbc, 0x04, 0x18, 0xcc},
{0xbc, 0x05, 0x00, 0xcc},
{0xbc, 0x06, 0x00, 0xcc},
{0xbc, 0x08, 0x30, 0xcc},
{0xbc, 0x09, 0x40, 0xcc},
{0xbc, 0x0a, 0x10, 0xcc},
{0xbc, 0x0b, 0x00, 0xcc},
{0xbc, 0x0c, 0x00, 0xcc},
{0xb9, 0x12, 0x00, 0xcc},
{0xb9, 0x13, 0x0a, 0xcc},
{0xb9, 0x14, 0x0a, 0xcc},
{0xb9, 0x15, 0x0a, 0xcc},
{0xb9, 0x16, 0x0a, 0xcc},
{0xb9, 0x18, 0x00, 0xcc},