PageRenderTime 97ms CodeModel.GetById 19ms app.highlight 60ms RepoModel.GetById 1ms app.codeStats 1ms

/drivers/media/video/gspca/vc032x.c

https://bitbucket.org/abioy/linux
C | 3731 lines | 3475 code | 130 blank | 126 comment | 115 complexity | c950f091cdafffe0b59b3aad9db56640 MD5 | raw file
Possible License(s): CC-BY-SA-3.0, GPL-2.0, LGPL-2.0, AGPL-1.0

Large files files are truncated, but you can click here to view the full file

   1/*
   2 *		Z-star vc0321 library
   3 *		Copyright (C) 2006 Koninski Artur takeshi87@o2.pl
   4 *		Copyright (C) 2006 Michel Xhaard
   5 *
   6 * V4L2 by Jean-Francois Moine <http://moinejf.free.fr>
   7 *
   8 * This program is free software; you can redistribute it and/or modify
   9 * it under the terms of the GNU General Public License as published by
  10 * the Free Software Foundation; either version 2 of the License, or
  11 * any later version.
  12 *
  13 * This program is distributed in the hope that it will be useful,
  14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16 * GNU General Public License for more details.
  17 *
  18 * You should have received a copy of the GNU General Public License
  19 * along with this program; if not, write to the Free Software
  20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21 */
  22
  23#define MODULE_NAME "vc032x"
  24
  25#include "gspca.h"
  26
  27MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>");
  28MODULE_DESCRIPTION("GSPCA/VC032X USB Camera Driver");
  29MODULE_LICENSE("GPL");
  30
  31/* specific webcam descriptor */
  32struct sd {
  33	struct gspca_dev gspca_dev;	/* !! must be the first item */
  34
  35	u8 brightness;
  36	u8 contrast;
  37	u8 colors;
  38	u8 hflip;
  39	u8 vflip;
  40	u8 lightfreq;
  41	s8 sharpness;
  42
  43	u8 image_offset;
  44
  45	u8 bridge;
  46#define BRIDGE_VC0321 0
  47#define BRIDGE_VC0323 1
  48	u8 sensor;
  49#define SENSOR_HV7131R 0
  50#define SENSOR_MI0360 1
  51#define SENSOR_MI1310_SOC 2
  52#define SENSOR_MI1320 3
  53#define SENSOR_MI1320_SOC 4
  54#define SENSOR_OV7660 5
  55#define SENSOR_OV7670 6
  56#define SENSOR_PO1200 7
  57#define SENSOR_PO3130NC 8
  58#define SENSOR_POxxxx 9
  59	u8 flags;
  60#define FL_SAMSUNG 0x01		/* SamsungQ1 (2 sensors) */
  61#define FL_HFLIP 0x02		/* mirrored by default */
  62#define FL_VFLIP 0x04		/* vertical flipped by default */
  63};
  64
  65/* V4L2 controls supported by the driver */
  66static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val);
  67static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val);
  68static int sd_setcontrast(struct gspca_dev *gspca_dev, __s32 val);
  69static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val);
  70static int sd_setcolors(struct gspca_dev *gspca_dev, __s32 val);
  71static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val);
  72static int sd_sethflip(struct gspca_dev *gspca_dev, __s32 val);
  73static int sd_gethflip(struct gspca_dev *gspca_dev, __s32 *val);
  74static int sd_setvflip(struct gspca_dev *gspca_dev, __s32 val);
  75static int sd_getvflip(struct gspca_dev *gspca_dev, __s32 *val);
  76static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val);
  77static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val);
  78static int sd_setsharpness(struct gspca_dev *gspca_dev, __s32 val);
  79static int sd_getsharpness(struct gspca_dev *gspca_dev, __s32 *val);
  80
  81static const struct ctrl sd_ctrls[] = {
  82#define BRIGHTNESS_IDX 0
  83	{
  84	    {
  85		.id      = V4L2_CID_BRIGHTNESS,
  86		.type    = V4L2_CTRL_TYPE_INTEGER,
  87		.name    = "Brightness",
  88		.minimum = 0,
  89		.maximum = 255,
  90		.step    = 1,
  91#define BRIGHTNESS_DEF 128
  92		.default_value = BRIGHTNESS_DEF,
  93	    },
  94	    .set = sd_setbrightness,
  95	    .get = sd_getbrightness,
  96	},
  97#define CONTRAST_IDX 1
  98	{
  99	    {
 100		.id      = V4L2_CID_CONTRAST,
 101		.type    = V4L2_CTRL_TYPE_INTEGER,
 102		.name    = "Contrast",
 103		.minimum = 0,
 104		.maximum = 255,
 105		.step    = 1,
 106#define CONTRAST_DEF 127
 107		.default_value = CONTRAST_DEF,
 108	    },
 109	    .set = sd_setcontrast,
 110	    .get = sd_getcontrast,
 111	},
 112#define COLORS_IDX 2
 113	{
 114	    {
 115		.id      = V4L2_CID_SATURATION,
 116		.type    = V4L2_CTRL_TYPE_INTEGER,
 117		.name    = "Saturation",
 118		.minimum = 1,
 119		.maximum = 127,
 120		.step    = 1,
 121#define COLOR_DEF 63
 122		.default_value = COLOR_DEF,
 123	    },
 124	    .set = sd_setcolors,
 125	    .get = sd_getcolors,
 126	},
 127/* next 2 controls work with some sensors only */
 128#define HFLIP_IDX 3
 129	{
 130	    {
 131		.id      = V4L2_CID_HFLIP,
 132		.type    = V4L2_CTRL_TYPE_BOOLEAN,
 133		.name    = "Mirror",
 134		.minimum = 0,
 135		.maximum = 1,
 136		.step    = 1,
 137#define HFLIP_DEF 0
 138		.default_value = HFLIP_DEF,
 139	    },
 140	    .set = sd_sethflip,
 141	    .get = sd_gethflip,
 142	},
 143#define VFLIP_IDX 4
 144	{
 145	    {
 146		.id      = V4L2_CID_VFLIP,
 147		.type    = V4L2_CTRL_TYPE_BOOLEAN,
 148		.name    = "Vflip",
 149		.minimum = 0,
 150		.maximum = 1,
 151		.step    = 1,
 152#define VFLIP_DEF 0
 153		.default_value = VFLIP_DEF,
 154	    },
 155	    .set = sd_setvflip,
 156	    .get = sd_getvflip,
 157	},
 158#define LIGHTFREQ_IDX 5
 159	{
 160	    {
 161		.id	 = V4L2_CID_POWER_LINE_FREQUENCY,
 162		.type    = V4L2_CTRL_TYPE_MENU,
 163		.name    = "Light frequency filter",
 164		.minimum = 0,
 165		.maximum = 2,	/* 0: No, 1: 50Hz, 2:60Hz */
 166		.step    = 1,
 167#define FREQ_DEF 1
 168		.default_value = FREQ_DEF,
 169	    },
 170	    .set = sd_setfreq,
 171	    .get = sd_getfreq,
 172	},
 173#define SHARPNESS_IDX 6
 174	{
 175	 {
 176	  .id = V4L2_CID_SHARPNESS,
 177	  .type = V4L2_CTRL_TYPE_INTEGER,
 178	  .name = "Sharpness",
 179	  .minimum = -1,
 180	  .maximum = 2,
 181	  .step = 1,
 182#define SHARPNESS_DEF -1
 183	  .default_value = SHARPNESS_DEF,
 184	  },
 185	 .set = sd_setsharpness,
 186	 .get = sd_getsharpness,
 187	 },
 188};
 189
 190/* table of the disabled controls */
 191static u32 ctrl_dis[] = {
 192/* SENSOR_HV7131R 0 */
 193	(1 << BRIGHTNESS_IDX) | (1 << CONTRAST_IDX) | (1 << COLORS_IDX)
 194		| (1 << HFLIP_IDX) | (1 << VFLIP_IDX) | (1 << LIGHTFREQ_IDX)
 195		| (1 << SHARPNESS_IDX),
 196/* SENSOR_MI0360 1 */
 197	(1 << BRIGHTNESS_IDX) | (1 << CONTRAST_IDX) | (1 << COLORS_IDX)
 198		| (1 << HFLIP_IDX) | (1 << VFLIP_IDX) | (1 << LIGHTFREQ_IDX)
 199		| (1 << SHARPNESS_IDX),
 200/* SENSOR_MI1310_SOC 2 */
 201	(1 << BRIGHTNESS_IDX) | (1 << CONTRAST_IDX) | (1 << COLORS_IDX)
 202		| (1 << LIGHTFREQ_IDX) | (1 << SHARPNESS_IDX),
 203/* SENSOR_MI1320 3 */
 204	(1 << BRIGHTNESS_IDX) | (1 << CONTRAST_IDX) | (1 << COLORS_IDX)
 205		| (1 << LIGHTFREQ_IDX) | (1 << SHARPNESS_IDX),
 206/* SENSOR_MI1320_SOC 4 */
 207	(1 << BRIGHTNESS_IDX) | (1 << CONTRAST_IDX) | (1 << COLORS_IDX)
 208		| (1 << LIGHTFREQ_IDX) | (1 << SHARPNESS_IDX),
 209/* SENSOR_OV7660 5 */
 210	(1 << BRIGHTNESS_IDX) | (1 << CONTRAST_IDX) | (1 << COLORS_IDX)
 211		| (1 << LIGHTFREQ_IDX) | (1 << SHARPNESS_IDX),
 212/* SENSOR_OV7670 6 */
 213	(1 << BRIGHTNESS_IDX) | (1 << CONTRAST_IDX) | (1 << COLORS_IDX)
 214		| (1 << SHARPNESS_IDX),
 215/* SENSOR_PO1200 7 */
 216	(1 << BRIGHTNESS_IDX) | (1 << CONTRAST_IDX) | (1 << COLORS_IDX)
 217		| (1 << LIGHTFREQ_IDX),
 218/* SENSOR_PO3130NC 8 */
 219	(1 << BRIGHTNESS_IDX) | (1 << CONTRAST_IDX) | (1 << COLORS_IDX)
 220		| (1 << HFLIP_IDX) | (1 << VFLIP_IDX) | (1 << LIGHTFREQ_IDX)
 221		| (1 << SHARPNESS_IDX),
 222/* SENSOR_POxxxx 9 */
 223	(1 << HFLIP_IDX) | (1 << VFLIP_IDX) | (1 << LIGHTFREQ_IDX),
 224};
 225
 226static const struct v4l2_pix_format vc0321_mode[] = {
 227	{320, 240, V4L2_PIX_FMT_YVYU, V4L2_FIELD_NONE,
 228		.bytesperline = 320,
 229		.sizeimage = 320 * 240 * 2,
 230		.colorspace = V4L2_COLORSPACE_SRGB,
 231		.priv = 1},
 232	{640, 480, V4L2_PIX_FMT_YVYU, V4L2_FIELD_NONE,
 233		.bytesperline = 640,
 234		.sizeimage = 640 * 480 * 2,
 235		.colorspace = V4L2_COLORSPACE_SRGB,
 236		.priv = 0},
 237};
 238static const struct v4l2_pix_format vc0323_mode[] = {
 239	{320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
 240		.bytesperline = 320,
 241		.sizeimage = 320 * 240 * 3 / 8 + 590,
 242		.colorspace = V4L2_COLORSPACE_JPEG,
 243		.priv = 1},
 244	{640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
 245		.bytesperline = 640,
 246		.sizeimage = 640 * 480 * 3 / 8 + 590,
 247		.colorspace = V4L2_COLORSPACE_JPEG,
 248		.priv = 0},
 249	{1280, 960, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, /* mi1310_soc only */
 250		.bytesperline = 1280,
 251		.sizeimage = 1280 * 960 * 3 / 8 + 590,
 252		.colorspace = V4L2_COLORSPACE_JPEG,
 253		.priv = 2},
 254};
 255static const struct v4l2_pix_format bi_mode[] = {
 256	{320, 240, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE,
 257		.bytesperline = 320,
 258		.sizeimage = 320 * 240 * 2,
 259		.colorspace = V4L2_COLORSPACE_SRGB,
 260		.priv = 2},
 261	{640, 480, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE,
 262		.bytesperline = 640,
 263		.sizeimage = 640 * 480 * 2,
 264		.colorspace = V4L2_COLORSPACE_SRGB,
 265		.priv = 1},
 266	{1280, 1024, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE,
 267		.bytesperline = 1280,
 268		.sizeimage = 1280 * 1024 * 2,
 269		.colorspace = V4L2_COLORSPACE_SRGB,
 270		.priv = 0},
 271};
 272static const struct v4l2_pix_format svga_mode[] = {
 273	{800, 600, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
 274		.bytesperline = 800,
 275		.sizeimage = 800 * 600 * 1 / 4 + 590,
 276		.colorspace = V4L2_COLORSPACE_JPEG,
 277		.priv = 0},
 278};
 279
 280/* OV7660/7670 registers */
 281#define OV7660_REG_MVFP 0x1e
 282#define OV7660_MVFP_MIRROR	0x20
 283#define OV7660_MVFP_VFLIP	0x10
 284
 285static const u8 mi0360_matrix[9] = {
 286	0x50, 0xf8, 0xf8, 0xf5, 0x50, 0xfb, 0xff, 0xf1, 0x50
 287};
 288
 289static const u8 mi0360_initVGA_JPG[][4] = {
 290	{0xb0, 0x03, 0x19, 0xcc},
 291	{0xb0, 0x04, 0x02, 0xcc},
 292	{0xb3, 0x00, 0x24, 0xcc},
 293	{0xb3, 0x00, 0x25, 0xcc},
 294	{0xb3, 0x08, 0x01, 0xcc},
 295	{0xb3, 0x09, 0x0c, 0xcc},
 296	{0xb3, 0x05, 0x01, 0xcc},
 297	{0xb3, 0x06, 0x03, 0xcc},
 298	{0xb3, 0x03, 0x0a, 0xcc},
 299	{0xb3, 0x20, 0x00, 0xcc},
 300	{0xb3, 0x21, 0x00, 0xcc},
 301	{0xb3, 0x22, 0x01, 0xcc},
 302	{0xb3, 0x23, 0xe0, 0xcc},
 303	{0xb3, 0x04, 0x05, 0xcc},
 304	{0xb3, 0x14, 0x00, 0xcc},
 305	{0xb3, 0x15, 0x00, 0xcc},
 306	{0xb3, 0x16, 0x02, 0xcc},
 307	{0xb3, 0x17, 0x7f, 0xcc},
 308	{0xb3, 0x35, 0xdd, 0xcc},	/* i2c add: 5d */
 309	{0xb3, 0x34, 0x02, 0xcc},
 310	{0xb3, 0x00, 0x25, 0xcc},
 311	{0xbc, 0x00, 0x71, 0xcc},
 312	{0xb8, 0x00, 0x13, 0xcc},
 313	{0xb8, 0x27, 0x20, 0xcc},
 314	{0xb8, 0x2c, 0x50, 0xcc},
 315	{0xb8, 0x2d, 0xf8, 0xcc},
 316	{0xb8, 0x2e, 0xf8, 0xcc},
 317	{0xb8, 0x2f, 0xf8, 0xcc},
 318	{0xb8, 0x30, 0x50, 0xcc},
 319	{0xb8, 0x31, 0xf8, 0xcc},
 320	{0xb8, 0x32, 0xf8, 0xcc},
 321	{0xb8, 0x33, 0xf8, 0xcc},
 322	{0xb8, 0x34, 0x50, 0xcc},
 323	{0xb8, 0x35, 0x00, 0xcc},
 324	{0xb8, 0x36, 0x00, 0xcc},
 325	{0xb8, 0x37, 0x00, 0xcc},
 326	{0xb8, 0x01, 0x79, 0xcc},
 327	{0xb8, 0x08, 0xe0, 0xcc},
 328	{0xb3, 0x01, 0x41, 0xcc},
 329	{0xb8, 0x01, 0x79, 0xcc},
 330	{0xb8, 0x14, 0x18, 0xcc},
 331	{0xb8, 0xb2, 0x0a, 0xcc},
 332	{0xb8, 0xb4, 0x0a, 0xcc},
 333	{0xb8, 0xb5, 0x0a, 0xcc},
 334	{0xb8, 0xfe, 0x00, 0xcc},
 335	{0xb8, 0xff, 0x28, 0xcc},
 336	{0xb9, 0x00, 0x28, 0xcc},
 337	{0xb9, 0x01, 0x28, 0xcc},
 338	{0xb9, 0x02, 0x28, 0xcc},
 339	{0xb9, 0x03, 0x00, 0xcc},
 340	{0xb9, 0x04, 0x00, 0xcc},
 341	{0xb9, 0x05, 0x3c, 0xcc},
 342	{0xb9, 0x06, 0x3c, 0xcc},
 343	{0xb9, 0x07, 0x3c, 0xcc},
 344	{0xb9, 0x08, 0x3c, 0xcc},
 345	{0xb8, 0x8e, 0x00, 0xcc},
 346	{0xb8, 0x8f, 0xff, 0xcc},
 347	{0xb8, 0x81, 0x09, 0xcc},
 348	{0x31, 0x00, 0x00, 0xbb},
 349	{0x09, 0x01, 0xc7, 0xbb},
 350	{0x34, 0x01, 0x00, 0xbb},
 351	{0x2b, 0x00, 0x28, 0xbb},
 352	{0x2c, 0x00, 0x30, 0xbb},
 353	{0x2d, 0x00, 0x30, 0xbb},
 354	{0x2e, 0x00, 0x28, 0xbb},
 355	{0x62, 0x04, 0x11, 0xbb},
 356	{0x03, 0x01, 0xe0, 0xbb},
 357	{0x2c, 0x00, 0x2c, 0xbb},
 358	{0x20, 0xd0, 0x00, 0xbb},
 359	{0x01, 0x00, 0x08, 0xbb},
 360	{0x06, 0x00, 0x10, 0xbb},
 361	{0x05, 0x00, 0x20, 0xbb},
 362	{0x20, 0x00, 0x00, 0xbb},
 363	{0xb6, 0x00, 0x00, 0xcc},
 364	{0xb6, 0x03, 0x02, 0xcc},
 365	{0xb6, 0x02, 0x80, 0xcc},
 366	{0xb6, 0x05, 0x01, 0xcc},
 367	{0xb6, 0x04, 0xe0, 0xcc},
 368	{0xb6, 0x12, 0x78, 0xcc},
 369	{0xb6, 0x18, 0x02, 0xcc},
 370	{0xb6, 0x17, 0x58, 0xcc},
 371	{0xb6, 0x16, 0x00, 0xcc},
 372	{0xb6, 0x22, 0x12, 0xcc},
 373	{0xb6, 0x23, 0x0b, 0xcc},
 374	{0xb3, 0x02, 0x02, 0xcc},
 375	{0xbf, 0xc0, 0x39, 0xcc},
 376	{0xbf, 0xc1, 0x04, 0xcc},
 377	{0xbf, 0xcc, 0x10, 0xcc},
 378	{0xb9, 0x12, 0x00, 0xcc},
 379	{0xb9, 0x13, 0x0a, 0xcc},
 380	{0xb9, 0x14, 0x0a, 0xcc},
 381	{0xb9, 0x15, 0x0a, 0xcc},
 382	{0xb9, 0x16, 0x0a, 0xcc},
 383	{0xb9, 0x18, 0x00, 0xcc},
 384	{0xb9, 0x19, 0x0f, 0xcc},
 385	{0xb9, 0x1a, 0x0f, 0xcc},
 386	{0xb9, 0x1b, 0x0f, 0xcc},
 387	{0xb9, 0x1c, 0x0f, 0xcc},
 388	{0xb8, 0x8e, 0x00, 0xcc},
 389	{0xb8, 0x8f, 0xff, 0xcc},
 390	{0xb6, 0x12, 0xf8, 0xcc},
 391	{0xb8, 0x0c, 0x20, 0xcc},
 392	{0xb8, 0x0d, 0x70, 0xcc},
 393	{0xb6, 0x13, 0x13, 0xcc},
 394	{0x35, 0x00, 0x60, 0xbb},
 395	{0xb3, 0x5c, 0x01, 0xcc},
 396	{}
 397};
 398static const u8 mi0360_initQVGA_JPG[][4] = {
 399	{0xb0, 0x03, 0x19, 0xcc},
 400	{0xb0, 0x04, 0x02, 0xcc},
 401	{0xb3, 0x00, 0x24, 0xcc},
 402	{0xb3, 0x00, 0x25, 0xcc},
 403	{0xb3, 0x08, 0x01, 0xcc},
 404	{0xb3, 0x09, 0x0c, 0xcc},
 405	{0xb3, 0x05, 0x01, 0xcc},
 406	{0xb3, 0x06, 0x03, 0xcc},
 407	{0xb3, 0x03, 0x0a, 0xcc},
 408	{0xb3, 0x20, 0x00, 0xcc},
 409	{0xb3, 0x21, 0x00, 0xcc},
 410	{0xb3, 0x22, 0x01, 0xcc},
 411	{0xb3, 0x23, 0xe0, 0xcc},
 412	{0xb3, 0x04, 0x05, 0xcc},
 413	{0xb3, 0x14, 0x00, 0xcc},
 414	{0xb3, 0x15, 0x00, 0xcc},
 415	{0xb3, 0x16, 0x02, 0xcc},
 416	{0xb3, 0x17, 0x7f, 0xcc},
 417	{0xb3, 0x35, 0xdd, 0xcc},
 418	{0xb3, 0x34, 0x02, 0xcc},
 419	{0xb3, 0x00, 0x25, 0xcc},
 420	{0xbc, 0x00, 0xd1, 0xcc},
 421	{0xb8, 0x00, 0x13, 0xcc},
 422	{0xb8, 0x27, 0x20, 0xcc},
 423	{0xb8, 0x2c, 0x50, 0xcc},
 424	{0xb8, 0x2d, 0xf8, 0xcc},
 425	{0xb8, 0x2e, 0xf8, 0xcc},
 426	{0xb8, 0x2f, 0xf8, 0xcc},
 427	{0xb8, 0x30, 0x50, 0xcc},
 428	{0xb8, 0x31, 0xf8, 0xcc},
 429	{0xb8, 0x32, 0xf8, 0xcc},
 430	{0xb8, 0x33, 0xf8, 0xcc},
 431	{0xb8, 0x34, 0x50, 0xcc},
 432	{0xb8, 0x35, 0x00, 0xcc},
 433	{0xb8, 0x36, 0x00, 0xcc},
 434	{0xb8, 0x37, 0x00, 0xcc},
 435	{0xb8, 0x01, 0x79, 0xcc},
 436	{0xb8, 0x08, 0xe0, 0xcc},
 437	{0xb3, 0x01, 0x41, 0xcc},
 438	{0xb8, 0x01, 0x79, 0xcc},
 439	{0xb8, 0x14, 0x18, 0xcc},
 440	{0xb8, 0xb2, 0x0a, 0xcc},
 441	{0xb8, 0xb4, 0x0a, 0xcc},
 442	{0xb8, 0xb5, 0x0a, 0xcc},
 443	{0xb8, 0xfe, 0x00, 0xcc},
 444	{0xb8, 0xff, 0x28, 0xcc},
 445	{0xb9, 0x00, 0x28, 0xcc},
 446	{0xb9, 0x01, 0x28, 0xcc},
 447	{0xb9, 0x02, 0x28, 0xcc},
 448	{0xb9, 0x03, 0x00, 0xcc},
 449	{0xb9, 0x04, 0x00, 0xcc},
 450	{0xb9, 0x05, 0x3c, 0xcc},
 451	{0xb9, 0x06, 0x3c, 0xcc},
 452	{0xb9, 0x07, 0x3c, 0xcc},
 453	{0xb9, 0x08, 0x3c, 0xcc},
 454	{0xb8, 0x8e, 0x00, 0xcc},
 455	{0xb8, 0x8f, 0xff, 0xcc},
 456	{0xb8, 0x81, 0x09, 0xcc},
 457	{0x31, 0x00, 0x00, 0xbb},
 458	{0x09, 0x01, 0xc7, 0xbb},
 459	{0x34, 0x01, 0x00, 0xbb},
 460	{0x2b, 0x00, 0x28, 0xbb},
 461	{0x2c, 0x00, 0x30, 0xbb},
 462	{0x2d, 0x00, 0x30, 0xbb},
 463	{0x2e, 0x00, 0x28, 0xbb},
 464	{0x62, 0x04, 0x11, 0xbb},
 465	{0x03, 0x01, 0xe0, 0xbb},
 466	{0x2c, 0x00, 0x2c, 0xbb},
 467	{0x20, 0xd0, 0x00, 0xbb},
 468	{0x01, 0x00, 0x08, 0xbb},
 469	{0x06, 0x00, 0x10, 0xbb},
 470	{0x05, 0x00, 0x20, 0xbb},
 471	{0x20, 0x00, 0x00, 0xbb},
 472	{0xb6, 0x00, 0x00, 0xcc},
 473	{0xb6, 0x03, 0x01, 0xcc},
 474	{0xb6, 0x02, 0x40, 0xcc},
 475	{0xb6, 0x05, 0x00, 0xcc},
 476	{0xb6, 0x04, 0xf0, 0xcc},
 477	{0xb6, 0x12, 0x78, 0xcc},
 478	{0xb6, 0x18, 0x00, 0xcc},
 479	{0xb6, 0x17, 0x96, 0xcc},
 480	{0xb6, 0x16, 0x00, 0xcc},
 481	{0xb6, 0x22, 0x12, 0xcc},
 482	{0xb6, 0x23, 0x0b, 0xcc},
 483	{0xb3, 0x02, 0x02, 0xcc},
 484	{0xbf, 0xc0, 0x39, 0xcc},
 485	{0xbf, 0xc1, 0x04, 0xcc},
 486	{0xbf, 0xcc, 0x10, 0xcc},
 487	{0xb9, 0x12, 0x00, 0xcc},
 488	{0xb9, 0x13, 0x0a, 0xcc},
 489	{0xb9, 0x14, 0x0a, 0xcc},
 490	{0xb9, 0x15, 0x0a, 0xcc},
 491	{0xb9, 0x16, 0x0a, 0xcc},
 492	{0xb9, 0x18, 0x00, 0xcc},
 493	{0xb9, 0x19, 0x0f, 0xcc},
 494	{0xb9, 0x1a, 0x0f, 0xcc},
 495	{0xb9, 0x1b, 0x0f, 0xcc},
 496	{0xb9, 0x1c, 0x0f, 0xcc},
 497	{0xb8, 0x8e, 0x00, 0xcc},
 498	{0xb8, 0x8f, 0xff, 0xcc},
 499	{0xb6, 0x12, 0xf8, 0xcc},
 500	{0xb6, 0x13, 0x13, 0xcc},
 501	{0xbc, 0x02, 0x18, 0xcc},
 502	{0xbc, 0x03, 0x50, 0xcc},
 503	{0xbc, 0x04, 0x18, 0xcc},
 504	{0xbc, 0x05, 0x00, 0xcc},
 505	{0xbc, 0x06, 0x00, 0xcc},
 506	{0xbc, 0x08, 0x30, 0xcc},
 507	{0xbc, 0x09, 0x40, 0xcc},
 508	{0xbc, 0x0a, 0x10, 0xcc},
 509	{0xb8, 0x0c, 0x20, 0xcc},
 510	{0xb8, 0x0d, 0x70, 0xcc},
 511	{0xbc, 0x0b, 0x00, 0xcc},
 512	{0xbc, 0x0c, 0x00, 0xcc},
 513	{0x35, 0x00, 0xef, 0xbb},
 514	{0xb3, 0x5c, 0x01, 0xcc},
 515	{}
 516};
 517
 518static const u8 mi1310_socinitVGA_JPG[][4] = {
 519	{0xb0, 0x03, 0x19, 0xcc},
 520	{0xb0, 0x04, 0x02, 0xcc},
 521	{0xb3, 0x00, 0x64, 0xcc},
 522	{0xb3, 0x00, 0x65, 0xcc},
 523	{0xb3, 0x05, 0x00, 0xcc},
 524	{0xb3, 0x06, 0x00, 0xcc},
 525	{0xb3, 0x08, 0x01, 0xcc},
 526	{0xb3, 0x09, 0x0c, 0xcc},
 527	{0xb3, 0x34, 0x02, 0xcc},
 528	{0xb3, 0x35, 0xdd, 0xcc},	/* i2c add: 5d */
 529	{0xb3, 0x02, 0x00, 0xcc},
 530	{0xb3, 0x03, 0x0a, 0xcc},
 531	{0xb3, 0x04, 0x05, 0xcc},
 532	{0xb3, 0x20, 0x00, 0xcc},
 533	{0xb3, 0x21, 0x00, 0xcc},
 534	{0xb3, 0x22, 0x03, 0xcc},
 535	{0xb3, 0x23, 0xc0, 0xcc},
 536	{0xb3, 0x14, 0x00, 0xcc},
 537	{0xb3, 0x15, 0x00, 0xcc},
 538	{0xb3, 0x16, 0x04, 0xcc},
 539	{0xb3, 0x17, 0xff, 0xcc},
 540	{0xb3, 0x00, 0x65, 0xcc},
 541	{0xb8, 0x00, 0x00, 0xcc},
 542	{0xbc, 0x00, 0xd0, 0xcc},
 543	{0xbc, 0x01, 0x01, 0xcc},
 544	{0xf0, 0x00, 0x02, 0xbb},
 545	{0xc8, 0x9f, 0x0b, 0xbb},
 546	{0x5b, 0x00, 0x01, 0xbb},
 547	{0x2f, 0xde, 0x20, 0xbb},
 548	{0xf0, 0x00, 0x00, 0xbb},
 549	{0x20, 0x03, 0x02, 0xbb},	/* h/v flip */
 550	{0xf0, 0x00, 0x01, 0xbb},
 551	{0x05, 0x00, 0x07, 0xbb},
 552	{0x34, 0x00, 0x00, 0xbb},
 553	{0x35, 0xff, 0x00, 0xbb},
 554	{0xdc, 0x07, 0x02, 0xbb},
 555	{0xdd, 0x3c, 0x18, 0xbb},
 556	{0xde, 0x92, 0x6d, 0xbb},
 557	{0xdf, 0xcd, 0xb1, 0xbb},
 558	{0xe0, 0xff, 0xe7, 0xbb},
 559	{0x06, 0xf0, 0x0d, 0xbb},
 560	{0x06, 0x70, 0x0e, 0xbb},
 561	{0x4c, 0x00, 0x01, 0xbb},
 562	{0x4d, 0x00, 0x01, 0xbb},
 563	{0xf0, 0x00, 0x02, 0xbb},
 564	{0x2e, 0x0c, 0x55, 0xbb},
 565	{0x21, 0xb6, 0x6e, 0xbb},
 566	{0x36, 0x30, 0x10, 0xbb},
 567	{0x37, 0x00, 0xc1, 0xbb},
 568	{0xf0, 0x00, 0x00, 0xbb},
 569	{0x07, 0x00, 0x84, 0xbb},
 570	{0x08, 0x02, 0x4a, 0xbb},
 571	{0x05, 0x01, 0x10, 0xbb},
 572	{0x06, 0x00, 0x39, 0xbb},
 573	{0xf0, 0x00, 0x02, 0xbb},
 574	{0x58, 0x02, 0x67, 0xbb},
 575	{0x57, 0x02, 0x00, 0xbb},
 576	{0x5a, 0x02, 0x67, 0xbb},
 577	{0x59, 0x02, 0x00, 0xbb},
 578	{0x5c, 0x12, 0x0d, 0xbb},
 579	{0x5d, 0x16, 0x11, 0xbb},
 580	{0x39, 0x06, 0x18, 0xbb},
 581	{0x3a, 0x06, 0x18, 0xbb},
 582	{0x3b, 0x06, 0x18, 0xbb},
 583	{0x3c, 0x06, 0x18, 0xbb},
 584	{0x64, 0x7b, 0x5b, 0xbb},
 585	{0xf0, 0x00, 0x02, 0xbb},
 586	{0x36, 0x30, 0x10, 0xbb},
 587	{0x37, 0x00, 0xc0, 0xbb},
 588	{0xbc, 0x0e, 0x00, 0xcc},
 589	{0xbc, 0x0f, 0x05, 0xcc},
 590	{0xbc, 0x10, 0xc0, 0xcc},
 591	{0xbc, 0x11, 0x03, 0xcc},
 592	{0xb6, 0x00, 0x00, 0xcc},
 593	{0xb6, 0x03, 0x02, 0xcc},
 594	{0xb6, 0x02, 0x80, 0xcc},
 595	{0xb6, 0x05, 0x01, 0xcc},
 596	{0xb6, 0x04, 0xe0, 0xcc},
 597	{0xb6, 0x12, 0xf8, 0xcc},
 598	{0xb6, 0x13, 0x25, 0xcc},
 599	{0xb6, 0x18, 0x02, 0xcc},
 600	{0xb6, 0x17, 0x58, 0xcc},
 601	{0xb6, 0x16, 0x00, 0xcc},
 602	{0xb6, 0x22, 0x12, 0xcc},
 603	{0xb6, 0x23, 0x0b, 0xcc},
 604	{0xbf, 0xc0, 0x39, 0xcc},
 605	{0xbf, 0xc1, 0x04, 0xcc},
 606	{0xbf, 0xcc, 0x00, 0xcc},
 607	{0xbc, 0x02, 0x18, 0xcc},
 608	{0xbc, 0x03, 0x50, 0xcc},
 609	{0xbc, 0x04, 0x18, 0xcc},
 610	{0xbc, 0x05, 0x00, 0xcc},
 611	{0xbc, 0x06, 0x00, 0xcc},
 612	{0xbc, 0x08, 0x30, 0xcc},
 613	{0xbc, 0x09, 0x40, 0xcc},
 614	{0xbc, 0x0a, 0x10, 0xcc},
 615	{0xbc, 0x0b, 0x00, 0xcc},
 616	{0xbc, 0x0c, 0x00, 0xcc},
 617	{0xb3, 0x5c, 0x01, 0xcc},
 618	{0xf0, 0x00, 0x01, 0xbb},
 619	{0x80, 0x00, 0x03, 0xbb},
 620	{0x81, 0xc7, 0x14, 0xbb},
 621	{0x82, 0xeb, 0xe8, 0xbb},
 622	{0x83, 0xfe, 0xf4, 0xbb},
 623	{0x84, 0xcd, 0x10, 0xbb},
 624	{0x85, 0xf3, 0xee, 0xbb},
 625	{0x86, 0xff, 0xf1, 0xbb},
 626	{0x87, 0xcd, 0x10, 0xbb},
 627	{0x88, 0xf3, 0xee, 0xbb},
 628	{0x89, 0x01, 0xf1, 0xbb},
 629	{0x8a, 0xe5, 0x17, 0xbb},
 630	{0x8b, 0xe8, 0xe2, 0xbb},
 631	{0x8c, 0xf7, 0xed, 0xbb},
 632	{0x8d, 0x00, 0xff, 0xbb},
 633	{0x8e, 0xec, 0x10, 0xbb},
 634	{0x8f, 0xf0, 0xed, 0xbb},
 635	{0x90, 0xf9, 0xf2, 0xbb},
 636	{0x91, 0x00, 0x00, 0xbb},
 637	{0x92, 0xe9, 0x0d, 0xbb},
 638	{0x93, 0xf4, 0xf2, 0xbb},
 639	{0x94, 0xfb, 0xf5, 0xbb},
 640	{0x95, 0x00, 0xff, 0xbb},
 641	{0xb6, 0x0f, 0x08, 0xbb},
 642	{0xb7, 0x3d, 0x16, 0xbb},
 643	{0xb8, 0x0c, 0x04, 0xbb},
 644	{0xb9, 0x1c, 0x07, 0xbb},
 645	{0xba, 0x0a, 0x03, 0xbb},
 646	{0xbb, 0x1b, 0x09, 0xbb},
 647	{0xbc, 0x17, 0x0d, 0xbb},
 648	{0xbd, 0x23, 0x1d, 0xbb},
 649	{0xbe, 0x00, 0x28, 0xbb},
 650	{0xbf, 0x11, 0x09, 0xbb},
 651	{0xc0, 0x16, 0x15, 0xbb},
 652	{0xc1, 0x00, 0x1b, 0xbb},
 653	{0xc2, 0x0e, 0x07, 0xbb},
 654	{0xc3, 0x14, 0x10, 0xbb},
 655	{0xc4, 0x00, 0x17, 0xbb},
 656	{0x06, 0x74, 0x8e, 0xbb},
 657	{0xf0, 0x00, 0x01, 0xbb},
 658	{0x06, 0xf4, 0x8e, 0xbb},
 659	{0x00, 0x00, 0x50, 0xdd},
 660	{0x06, 0x74, 0x8e, 0xbb},
 661	{0xf0, 0x00, 0x02, 0xbb},
 662	{0x24, 0x50, 0x20, 0xbb},
 663	{0xf0, 0x00, 0x02, 0xbb},
 664	{0x34, 0x0c, 0x50, 0xbb},
 665	{0xb3, 0x01, 0x41, 0xcc},
 666	{0xf0, 0x00, 0x00, 0xbb},
 667	{0x03, 0x03, 0xc0, 0xbb},
 668	{},
 669};
 670static const u8 mi1310_socinitQVGA_JPG[][4] = {
 671	{0xb0, 0x03, 0x19, 0xcc},	{0xb0, 0x04, 0x02, 0xcc},
 672	{0xb3, 0x00, 0x64, 0xcc},	{0xb3, 0x00, 0x65, 0xcc},
 673	{0xb3, 0x05, 0x00, 0xcc},	{0xb3, 0x06, 0x00, 0xcc},
 674	{0xb3, 0x08, 0x01, 0xcc},	{0xb3, 0x09, 0x0c, 0xcc},
 675	{0xb3, 0x34, 0x02, 0xcc},	{0xb3, 0x35, 0xdd, 0xcc},
 676	{0xb3, 0x02, 0x00, 0xcc},	{0xb3, 0x03, 0x0a, 0xcc},
 677	{0xb3, 0x04, 0x05, 0xcc},	{0xb3, 0x20, 0x00, 0xcc},
 678	{0xb3, 0x21, 0x00, 0xcc},	{0xb3, 0x22, 0x03, 0xcc},
 679	{0xb3, 0x23, 0xc0, 0xcc},	{0xb3, 0x14, 0x00, 0xcc},
 680	{0xb3, 0x15, 0x00, 0xcc},	{0xb3, 0x16, 0x04, 0xcc},
 681	{0xb3, 0x17, 0xff, 0xcc},	{0xb3, 0x00, 0x65, 0xcc},
 682	{0xb8, 0x00, 0x00, 0xcc},	{0xbc, 0x00, 0xf0, 0xcc},
 683	{0xbc, 0x01, 0x01, 0xcc},	{0xf0, 0x00, 0x02, 0xbb},
 684	{0xc8, 0x9f, 0x0b, 0xbb},	{0x5b, 0x00, 0x01, 0xbb},
 685	{0x2f, 0xde, 0x20, 0xbb},	{0xf0, 0x00, 0x00, 0xbb},
 686	{0x20, 0x03, 0x02, 0xbb},	/* h/v flip */
 687	{0xf0, 0x00, 0x01, 0xbb},
 688	{0x05, 0x00, 0x07, 0xbb},	{0x34, 0x00, 0x00, 0xbb},
 689	{0x35, 0xff, 0x00, 0xbb},	{0xdc, 0x07, 0x02, 0xbb},
 690	{0xdd, 0x3c, 0x18, 0xbb},	{0xde, 0x92, 0x6d, 0xbb},
 691	{0xdf, 0xcd, 0xb1, 0xbb},	{0xe0, 0xff, 0xe7, 0xbb},
 692	{0x06, 0xf0, 0x0d, 0xbb},	{0x06, 0x70, 0x0e, 0xbb},
 693	{0x4c, 0x00, 0x01, 0xbb},	{0x4d, 0x00, 0x01, 0xbb},
 694	{0xf0, 0x00, 0x02, 0xbb},	{0x2e, 0x0c, 0x55, 0xbb},
 695	{0x21, 0xb6, 0x6e, 0xbb},	{0x36, 0x30, 0x10, 0xbb},
 696	{0x37, 0x00, 0xc1, 0xbb},	{0xf0, 0x00, 0x00, 0xbb},
 697	{0x07, 0x00, 0x84, 0xbb},	{0x08, 0x02, 0x4a, 0xbb},
 698	{0x05, 0x01, 0x10, 0xbb},	{0x06, 0x00, 0x39, 0xbb},
 699	{0xf0, 0x00, 0x02, 0xbb},	{0x58, 0x02, 0x67, 0xbb},
 700	{0x57, 0x02, 0x00, 0xbb},	{0x5a, 0x02, 0x67, 0xbb},
 701	{0x59, 0x02, 0x00, 0xbb},	{0x5c, 0x12, 0x0d, 0xbb},
 702	{0x5d, 0x16, 0x11, 0xbb},	{0x39, 0x06, 0x18, 0xbb},
 703	{0x3a, 0x06, 0x18, 0xbb},	{0x3b, 0x06, 0x18, 0xbb},
 704	{0x3c, 0x06, 0x18, 0xbb},	{0x64, 0x7b, 0x5b, 0xbb},
 705	{0xf0, 0x00, 0x02, 0xbb},	{0x36, 0x30, 0x10, 0xbb},
 706	{0x37, 0x00, 0xc0, 0xbb},	{0xbc, 0x0e, 0x00, 0xcc},
 707	{0xbc, 0x0f, 0x05, 0xcc},	{0xbc, 0x10, 0xc0, 0xcc},
 708	{0xbc, 0x11, 0x03, 0xcc},	{0xb6, 0x00, 0x00, 0xcc},
 709	{0xb6, 0x03, 0x01, 0xcc},	{0xb6, 0x02, 0x40, 0xcc},
 710	{0xb6, 0x05, 0x00, 0xcc},	{0xb6, 0x04, 0xf0, 0xcc},
 711	{0xb6, 0x12, 0xf8, 0xcc},	{0xb6, 0x13, 0x25, 0xcc},
 712	{0xb6, 0x18, 0x00, 0xcc},	{0xb6, 0x17, 0x96, 0xcc},
 713	{0xb6, 0x16, 0x00, 0xcc},	{0xb6, 0x22, 0x12, 0xcc},
 714	{0xb6, 0x23, 0x0b, 0xcc},	{0xbf, 0xc0, 0x39, 0xcc},
 715	{0xbf, 0xc1, 0x04, 0xcc},	{0xbf, 0xcc, 0x00, 0xcc},
 716	{0xb3, 0x5c, 0x01, 0xcc},	{0xf0, 0x00, 0x01, 0xbb},
 717	{0x80, 0x00, 0x03, 0xbb},	{0x81, 0xc7, 0x14, 0xbb},
 718	{0x82, 0xeb, 0xe8, 0xbb},	{0x83, 0xfe, 0xf4, 0xbb},
 719	{0x84, 0xcd, 0x10, 0xbb},	{0x85, 0xf3, 0xee, 0xbb},
 720	{0x86, 0xff, 0xf1, 0xbb},	{0x87, 0xcd, 0x10, 0xbb},
 721	{0x88, 0xf3, 0xee, 0xbb},	{0x89, 0x01, 0xf1, 0xbb},
 722	{0x8a, 0xe5, 0x17, 0xbb},	{0x8b, 0xe8, 0xe2, 0xbb},
 723	{0x8c, 0xf7, 0xed, 0xbb},	{0x8d, 0x00, 0xff, 0xbb},
 724	{0x8e, 0xec, 0x10, 0xbb},	{0x8f, 0xf0, 0xed, 0xbb},
 725	{0x90, 0xf9, 0xf2, 0xbb},	{0x91, 0x00, 0x00, 0xbb},
 726	{0x92, 0xe9, 0x0d, 0xbb},	{0x93, 0xf4, 0xf2, 0xbb},
 727	{0x94, 0xfb, 0xf5, 0xbb},	{0x95, 0x00, 0xff, 0xbb},
 728	{0xb6, 0x0f, 0x08, 0xbb},	{0xb7, 0x3d, 0x16, 0xbb},
 729	{0xb8, 0x0c, 0x04, 0xbb},	{0xb9, 0x1c, 0x07, 0xbb},
 730	{0xba, 0x0a, 0x03, 0xbb},	{0xbb, 0x1b, 0x09, 0xbb},
 731	{0xbc, 0x17, 0x0d, 0xbb},	{0xbd, 0x23, 0x1d, 0xbb},
 732	{0xbe, 0x00, 0x28, 0xbb},	{0xbf, 0x11, 0x09, 0xbb},
 733	{0xc0, 0x16, 0x15, 0xbb},	{0xc1, 0x00, 0x1b, 0xbb},
 734	{0xc2, 0x0e, 0x07, 0xbb},	{0xc3, 0x14, 0x10, 0xbb},
 735	{0xc4, 0x00, 0x17, 0xbb},	{0x06, 0x74, 0x8e, 0xbb},
 736	{0xf0, 0x00, 0x01, 0xbb},	{0x06, 0xf4, 0x8e, 0xbb},
 737	{0x00, 0x00, 0x50, 0xdd},	{0x06, 0x74, 0x8e, 0xbb},
 738	{0xf0, 0x00, 0x02, 0xbb},	{0x24, 0x50, 0x20, 0xbb},
 739	{0xf0, 0x00, 0x02, 0xbb},	{0x34, 0x0c, 0x50, 0xbb},
 740	{0xb3, 0x01, 0x41, 0xcc},	{0xf0, 0x00, 0x00, 0xbb},
 741	{0x03, 0x03, 0xc0, 0xbb},
 742	{},
 743};
 744static const u8 mi1310_soc_InitSXGA_JPG[][4] = {
 745	{0xb0, 0x03, 0x19, 0xcc},
 746	{0xb0, 0x04, 0x02, 0xcc},
 747	{0xb3, 0x00, 0x64, 0xcc},
 748	{0xb3, 0x00, 0x65, 0xcc},
 749	{0xb3, 0x05, 0x00, 0xcc},
 750	{0xb3, 0x06, 0x00, 0xcc},
 751	{0xb3, 0x08, 0x01, 0xcc},
 752	{0xb3, 0x09, 0x0c, 0xcc},
 753	{0xb3, 0x34, 0x02, 0xcc},
 754	{0xb3, 0x35, 0xdd, 0xcc},
 755	{0xb3, 0x02, 0x00, 0xcc},
 756	{0xb3, 0x03, 0x0a, 0xcc},
 757	{0xb3, 0x04, 0x0d, 0xcc},
 758	{0xb3, 0x20, 0x00, 0xcc},
 759	{0xb3, 0x21, 0x00, 0xcc},
 760	{0xb3, 0x22, 0x03, 0xcc},
 761	{0xb3, 0x23, 0xc0, 0xcc},
 762	{0xb3, 0x14, 0x00, 0xcc},
 763	{0xb3, 0x15, 0x00, 0xcc},
 764	{0xb3, 0x16, 0x04, 0xcc},
 765	{0xb3, 0x17, 0xff, 0xcc},
 766	{0xb3, 0x00, 0x65, 0xcc},
 767	{0xb8, 0x00, 0x00, 0xcc},
 768	{0xbc, 0x00, 0x70, 0xcc},
 769	{0xbc, 0x01, 0x01, 0xcc},
 770	{0xf0, 0x00, 0x02, 0xbb},
 771	{0xc8, 0x9f, 0x0b, 0xbb},
 772	{0x5b, 0x00, 0x01, 0xbb},
 773	{0xf0, 0x00, 0x00, 0xbb},
 774	{0x20, 0x03, 0x02, 0xbb},	/* h/v flip */
 775	{0xf0, 0x00, 0x01, 0xbb},
 776	{0x05, 0x00, 0x07, 0xbb},
 777	{0x34, 0x00, 0x00, 0xbb},
 778	{0x35, 0xff, 0x00, 0xbb},
 779	{0xdc, 0x07, 0x02, 0xbb},
 780	{0xdd, 0x3c, 0x18, 0xbb},
 781	{0xde, 0x92, 0x6d, 0xbb},
 782	{0xdf, 0xcd, 0xb1, 0xbb},
 783	{0xe0, 0xff, 0xe7, 0xbb},
 784	{0x06, 0xf0, 0x0d, 0xbb},
 785	{0x06, 0x70, 0x0e, 0xbb},
 786	{0x4c, 0x00, 0x01, 0xbb},
 787	{0x4d, 0x00, 0x01, 0xbb},
 788	{0xf0, 0x00, 0x02, 0xbb},
 789	{0x2e, 0x0c, 0x60, 0xbb},
 790	{0x21, 0xb6, 0x6e, 0xbb},
 791	{0x37, 0x01, 0x40, 0xbb},
 792	{0xf0, 0x00, 0x00, 0xbb},
 793	{0x07, 0x00, 0x84, 0xbb},
 794	{0x08, 0x02, 0x4a, 0xbb},
 795	{0x05, 0x01, 0x10, 0xbb},
 796	{0x06, 0x00, 0x39, 0xbb},
 797	{0xf0, 0x00, 0x02, 0xbb},
 798	{0x58, 0x02, 0x67, 0xbb},
 799	{0x57, 0x02, 0x00, 0xbb},
 800	{0x5a, 0x02, 0x67, 0xbb},
 801	{0x59, 0x02, 0x00, 0xbb},
 802	{0x5c, 0x12, 0x0d, 0xbb},
 803	{0x5d, 0x16, 0x11, 0xbb},
 804	{0x39, 0x06, 0x18, 0xbb},
 805	{0x3a, 0x06, 0x18, 0xbb},
 806	{0x3b, 0x06, 0x18, 0xbb},
 807	{0x3c, 0x06, 0x18, 0xbb},
 808	{0x64, 0x7b, 0x5b, 0xbb},
 809	{0xb6, 0x00, 0x00, 0xcc},
 810	{0xb6, 0x03, 0x05, 0xcc},
 811	{0xb6, 0x02, 0x00, 0xcc},
 812	{0xb6, 0x05, 0x03, 0xcc},
 813	{0xb6, 0x04, 0xc0, 0xcc},
 814	{0xb6, 0x12, 0xf8, 0xcc},
 815	{0xb6, 0x13, 0x29, 0xcc},
 816	{0xb6, 0x18, 0x09, 0xcc},
 817	{0xb6, 0x17, 0x60, 0xcc},
 818	{0xb6, 0x16, 0x00, 0xcc},
 819	{0xb6, 0x22, 0x12, 0xcc},
 820	{0xb6, 0x23, 0x0b, 0xcc},
 821	{0xbf, 0xc0, 0x39, 0xcc},
 822	{0xbf, 0xc1, 0x04, 0xcc},
 823	{0xbf, 0xcc, 0x00, 0xcc},
 824	{0xb3, 0x01, 0x41, 0xcc},
 825	{0x00, 0x00, 0x80, 0xdd},
 826	{0xf0, 0x00, 0x02, 0xbb},
 827	{0x00, 0x00, 0x10, 0xdd},
 828	{0x22, 0xa0, 0x78, 0xbb},
 829	{0x23, 0xa0, 0x78, 0xbb},
 830	{0x24, 0x7f, 0x00, 0xbb},
 831	{0x28, 0xea, 0x02, 0xbb},
 832	{0x29, 0x86, 0x7a, 0xbb},
 833	{0x5e, 0x52, 0x4c, 0xbb},
 834	{0x5f, 0x20, 0x24, 0xbb},
 835	{0x60, 0x00, 0x02, 0xbb},
 836	{0x02, 0x00, 0xee, 0xbb},
 837	{0x03, 0x39, 0x23, 0xbb},
 838	{0x04, 0x07, 0x24, 0xbb},
 839	{0x09, 0x00, 0xc0, 0xbb},
 840	{0x0a, 0x00, 0x79, 0xbb},
 841	{0x0b, 0x00, 0x04, 0xbb},
 842	{0x0c, 0x00, 0x5c, 0xbb},
 843	{0x0d, 0x00, 0xd9, 0xbb},
 844	{0x0e, 0x00, 0x53, 0xbb},
 845	{0x0f, 0x00, 0x21, 0xbb},
 846	{0x10, 0x00, 0xa4, 0xbb},
 847	{0x11, 0x00, 0xe5, 0xbb},
 848	{0x15, 0x00, 0x00, 0xbb},
 849	{0x16, 0x00, 0x00, 0xbb},
 850	{0x17, 0x00, 0x00, 0xbb},
 851	{0x18, 0x00, 0x00, 0xbb},
 852	{0x19, 0x00, 0x00, 0xbb},
 853	{0x1a, 0x00, 0x00, 0xbb},
 854	{0x1b, 0x00, 0x00, 0xbb},
 855	{0x1c, 0x00, 0x00, 0xbb},
 856	{0x1d, 0x00, 0x00, 0xbb},
 857	{0x1e, 0x00, 0x00, 0xbb},
 858	{0xf0, 0x00, 0x01, 0xbb},
 859	{0x00, 0x00, 0x20, 0xdd},
 860	{0x06, 0xf0, 0x8e, 0xbb},
 861	{0x00, 0x00, 0x80, 0xdd},
 862	{0x06, 0x70, 0x8e, 0xbb},
 863	{0xf0, 0x00, 0x02, 0xbb},
 864	{0x00, 0x00, 0x20, 0xdd},
 865	{0x5e, 0x6a, 0x53, 0xbb},
 866	{0x5f, 0x40, 0x2c, 0xbb},
 867	{0xf0, 0x00, 0x01, 0xbb},
 868	{0x00, 0x00, 0x20, 0xdd},
 869	{0x58, 0x00, 0x00, 0xbb},
 870	{0x53, 0x09, 0x03, 0xbb},
 871	{0x54, 0x31, 0x18, 0xbb},
 872	{0x55, 0x8b, 0x5f, 0xbb},
 873	{0x56, 0xc0, 0xa9, 0xbb},
 874	{0x57, 0xe0, 0xd2, 0xbb},
 875	{0xe1, 0x00, 0x00, 0xbb},
 876	{0xdc, 0x09, 0x03, 0xbb},
 877	{0xdd, 0x31, 0x18, 0xbb},
 878	{0xde, 0x8b, 0x5f, 0xbb},
 879	{0xdf, 0xc0, 0xa9, 0xbb},
 880	{0xe0, 0xe0, 0xd2, 0xbb},
 881	{0xb3, 0x5c, 0x01, 0xcc},
 882	{0xf0, 0x00, 0x01, 0xbb},
 883	{0x06, 0xf0, 0x8e, 0xbb},
 884	{0xf0, 0x00, 0x02, 0xbb},
 885	{0x2f, 0xde, 0x20, 0xbb},
 886	{0xf0, 0x00, 0x02, 0xbb},
 887	{0x24, 0x50, 0x20, 0xbb},
 888	{0xbc, 0x0e, 0x00, 0xcc},
 889	{0xbc, 0x0f, 0x05, 0xcc},
 890	{0xbc, 0x10, 0xc0, 0xcc},
 891	{0xf0, 0x00, 0x02, 0xbb},
 892	{0x34, 0x0c, 0x50, 0xbb},
 893	{0xbc, 0x11, 0x03, 0xcc},
 894	{0xf0, 0x00, 0x01, 0xbb},
 895	{0x80, 0x00, 0x03, 0xbb},
 896	{0x81, 0xc7, 0x14, 0xbb},
 897	{0x82, 0xeb, 0xe8, 0xbb},
 898	{0x83, 0xfe, 0xf4, 0xbb},
 899	{0x84, 0xcd, 0x10, 0xbb},
 900	{0x85, 0xf3, 0xee, 0xbb},
 901	{0x86, 0xff, 0xf1, 0xbb},
 902	{0x87, 0xcd, 0x10, 0xbb},
 903	{0x88, 0xf3, 0xee, 0xbb},
 904	{0x89, 0x01, 0xf1, 0xbb},
 905	{0x8a, 0xe5, 0x17, 0xbb},
 906	{0x8b, 0xe8, 0xe2, 0xbb},
 907	{0x8c, 0xf7, 0xed, 0xbb},
 908	{0x8d, 0x00, 0xff, 0xbb},
 909	{0x8e, 0xec, 0x10, 0xbb},
 910	{0x8f, 0xf0, 0xed, 0xbb},
 911	{0x90, 0xf9, 0xf2, 0xbb},
 912	{0x91, 0x00, 0x00, 0xbb},
 913	{0x92, 0xe9, 0x0d, 0xbb},
 914	{0x93, 0xf4, 0xf2, 0xbb},
 915	{0x94, 0xfb, 0xf5, 0xbb},
 916	{0x95, 0x00, 0xff, 0xbb},
 917	{0xb6, 0x0f, 0x08, 0xbb},
 918	{0xb7, 0x3d, 0x16, 0xbb},
 919	{0xb8, 0x0c, 0x04, 0xbb},
 920	{0xb9, 0x1c, 0x07, 0xbb},
 921	{0xba, 0x0a, 0x03, 0xbb},
 922	{0xbb, 0x1b, 0x09, 0xbb},
 923	{0xbc, 0x17, 0x0d, 0xbb},
 924	{0xbd, 0x23, 0x1d, 0xbb},
 925	{0xbe, 0x00, 0x28, 0xbb},
 926	{0xbf, 0x11, 0x09, 0xbb},
 927	{0xc0, 0x16, 0x15, 0xbb},
 928	{0xc1, 0x00, 0x1b, 0xbb},
 929	{0xc2, 0x0e, 0x07, 0xbb},
 930	{0xc3, 0x14, 0x10, 0xbb},
 931	{0xc4, 0x00, 0x17, 0xbb},
 932	{0x06, 0x74, 0x8e, 0xbb},
 933	{0xf0, 0x00, 0x00, 0xbb},
 934	{0x03, 0x03, 0xc0, 0xbb},
 935	{}
 936};
 937
 938static const u8 mi1320_gamma[17] = {
 939	0x00, 0x13, 0x38, 0x59, 0x79, 0x92, 0xa7, 0xb9, 0xc8,
 940	0xd4, 0xdf, 0xe7, 0xee, 0xf4, 0xf9, 0xfc, 0xff
 941};
 942static const u8 mi1320_matrix[9] = {
 943	0x54, 0xda, 0x06, 0xf1, 0x50, 0xf4, 0xf7, 0xea, 0x52
 944};
 945static const u8 mi1320_initVGA_data[][4] = {
 946	{0xb3, 0x01, 0x01, 0xcc},	{0x00, 0x00, 0x33, 0xdd},
 947	{0xb0, 0x03, 0x19, 0xcc},	{0x00, 0x00, 0x33, 0xdd},
 948	{0xb0, 0x04, 0x02, 0xcc},	{0x00, 0x00, 0x33, 0xdd},
 949	{0xb3, 0x00, 0x64, 0xcc},	{0xb3, 0x00, 0x65, 0xcc},
 950	{0xb0, 0x16, 0x03, 0xcc},	{0xb3, 0x05, 0x00, 0xcc},
 951	{0xb3, 0x06, 0x00, 0xcc},	{0xb3, 0x08, 0x01, 0xcc},
 952	{0xb3, 0x09, 0x0c, 0xcc},	{0xb3, 0x34, 0x02, 0xcc},
 953	{0xb3, 0x35, 0xc8, 0xcc},	/* i2c add: 48 */
 954	{0xb3, 0x02, 0x00, 0xcc},
 955	{0xb3, 0x03, 0x0a, 0xcc},	{0xb3, 0x04, 0x05, 0xcc},
 956	{0xb3, 0x20, 0x00, 0xcc},	{0xb3, 0x21, 0x00, 0xcc},
 957	{0xb3, 0x22, 0x03, 0xcc},	{0xb3, 0x23, 0xc0, 0xcc},
 958	{0xb3, 0x14, 0x00, 0xcc},	{0xb3, 0x15, 0x00, 0xcc},
 959	{0xb3, 0x16, 0x04, 0xcc},	{0xb3, 0x17, 0xff, 0xcc},
 960	{0xb3, 0x00, 0x67, 0xcc},	{0xbc, 0x00, 0xd0, 0xcc},
 961	{0xbc, 0x01, 0x01, 0xcc},	{0xf0, 0x00, 0x00, 0xbb},
 962	{0x0d, 0x00, 0x09, 0xbb},	{0x00, 0x01, 0x00, 0xdd},
 963	{0x0d, 0x00, 0x08, 0xbb},	{0xf0, 0x00, 0x01, 0xbb},
 964	{0xa1, 0x05, 0x00, 0xbb},	{0xa4, 0x03, 0xc0, 0xbb},
 965	{0xf0, 0x00, 0x02, 0xbb},	{0x00, 0x00, 0x10, 0xdd},
 966	{0xc8, 0x9f, 0x0b, 0xbb},	{0x00, 0x00, 0x10, 0xdd},
 967	{0xf0, 0x00, 0x00, 0xbb},	{0x00, 0x00, 0x10, 0xdd},
 968	{0x20, 0x01, 0x00, 0xbb},	{0x00, 0x00, 0x10, 0xdd},
 969	{0xf0, 0x00, 0x01, 0xbb},	{0x9d, 0x3c, 0xa0, 0xbb},
 970	{0x47, 0x30, 0x30, 0xbb},	{0xf0, 0x00, 0x00, 0xbb},
 971	{0x0a, 0x80, 0x11, 0xbb},	{0x35, 0x00, 0x22, 0xbb},
 972	{0xf0, 0x00, 0x02, 0xbb},	{0x9d, 0xc5, 0x05, 0xbb},
 973	{0xdc, 0x0f, 0xfc, 0xbb},	{0xf0, 0x00, 0x01, 0xbb},
 974	{0x06, 0x74, 0x0e, 0xbb},	{0x80, 0x00, 0x06, 0xbb},
 975	{0x81, 0x04, 0x00, 0xbb},	{0x82, 0x01, 0x02, 0xbb},
 976	{0x83, 0x03, 0x02, 0xbb},	{0x84, 0x05, 0x00, 0xbb},
 977	{0x85, 0x01, 0x00, 0xbb},	{0x86, 0x03, 0x02, 0xbb},
 978	{0x87, 0x05, 0x00, 0xbb},	{0x88, 0x01, 0x00, 0xbb},
 979	{0x89, 0x02, 0x02, 0xbb},	{0x8a, 0xfd, 0x04, 0xbb},
 980	{0x8b, 0xfc, 0xfd, 0xbb},	{0x8c, 0xff, 0xfd, 0xbb},
 981	{0x8d, 0x00, 0x00, 0xbb},	{0x8e, 0xfe, 0x05, 0xbb},
 982	{0x8f, 0xfc, 0xfd, 0xbb},	{0x90, 0xfe, 0xfd, 0xbb},
 983	{0x91, 0x00, 0x00, 0xbb},	{0x92, 0xfe, 0x03, 0xbb},
 984	{0x93, 0xfd, 0xfe, 0xbb},	{0x94, 0xff, 0xfd, 0xbb},
 985	{0x95, 0x00, 0x00, 0xbb},	{0xb6, 0x07, 0x05, 0xbb},
 986	{0xb7, 0x13, 0x06, 0xbb},	{0xb8, 0x08, 0x06, 0xbb},
 987	{0xb9, 0x14, 0x08, 0xbb},	{0xba, 0x06, 0x05, 0xbb},
 988	{0xbb, 0x13, 0x06, 0xbb},	{0xbc, 0x03, 0x01, 0xbb},
 989	{0xbd, 0x03, 0x04, 0xbb},	{0xbe, 0x00, 0x02, 0xbb},
 990	{0xbf, 0x03, 0x01, 0xbb},	{0xc0, 0x02, 0x04, 0xbb},
 991	{0xc1, 0x00, 0x04, 0xbb},	{0xc2, 0x02, 0x01, 0xbb},
 992	{0xc3, 0x01, 0x03, 0xbb},	{0xc4, 0x00, 0x04, 0xbb},
 993	{0xf0, 0x00, 0x00, 0xbb},	{0x05, 0x01, 0x13, 0xbb},
 994	{0x06, 0x00, 0x11, 0xbb},	{0x07, 0x00, 0x85, 0xbb},
 995	{0x08, 0x00, 0x27, 0xbb},
 996	{0x20, 0x01, 0x00, 0xbb},	/* h/v flips - was 03 */
 997	{0x21, 0x80, 0x00, 0xbb},	{0x22, 0x0d, 0x0f, 0xbb},
 998	{0x24, 0x80, 0x00, 0xbb},	{0x59, 0x00, 0xff, 0xbb},
 999	{0xf0, 0x00, 0x02, 0xbb},	{0x39, 0x03, 0x0d, 0xbb},
1000	{0x3a, 0x06, 0x1b, 0xbb},	{0x3b, 0x00, 0x95, 0xbb},
1001	{0x3c, 0x04, 0xdb, 0xbb},	{0x57, 0x02, 0x00, 0xbb},
1002	{0x58, 0x02, 0x66, 0xbb},	{0x59, 0x00, 0xff, 0xbb},
1003	{0x5a, 0x01, 0x33, 0xbb},	{0x5c, 0x12, 0x0d, 0xbb},
1004	{0x5d, 0x16, 0x11, 0xbb},	{0x64, 0x5e, 0x1c, 0xbb},
1005	{0xf0, 0x00, 0x02, 0xbb},	{0x2f, 0xd1, 0x00, 0xbb},
1006	{0x5b, 0x00, 0x01, 0xbb},	{0xf0, 0x00, 0x02, 0xbb},
1007	{0x36, 0x68, 0x10, 0xbb},	{0x00, 0x00, 0x30, 0xdd},
1008	{0x37, 0x82, 0x00, 0xbb},	{0xbc, 0x0e, 0x00, 0xcc},
1009	{0xbc, 0x0f, 0x05, 0xcc},	{0xbc, 0x10, 0xc0, 0xcc},
1010	{0xbc, 0x11, 0x03, 0xcc},	{0xb6, 0x00, 0x00, 0xcc},
1011	{0xb6, 0x03, 0x05, 0xcc},	{0xb6, 0x02, 0x00, 0xcc},
1012	{0xb6, 0x05, 0x04, 0xcc},	{0xb6, 0x04, 0x00, 0xcc},
1013	{0xb6, 0x12, 0xf8, 0xcc},	{0xb6, 0x13, 0x29, 0xcc},
1014	{0xb6, 0x18, 0x0a, 0xcc},	{0xb6, 0x17, 0x00, 0xcc},
1015	{0xb6, 0x16, 0x00, 0xcc},	{0xb6, 0x22, 0x12, 0xcc},
1016	{0xb6, 0x23, 0x0b, 0xcc},	{0xbf, 0xc0, 0x26, 0xcc},
1017	{0xbf, 0xc1, 0x02, 0xcc},	{0xbf, 0xcc, 0x04, 0xcc},
1018	{0xbc, 0x02, 0x18, 0xcc},	{0xbc, 0x03, 0x50, 0xcc},
1019	{0xbc, 0x04, 0x18, 0xcc},	{0xbc, 0x05, 0x00, 0xcc},
1020	{0xbc, 0x06, 0x00, 0xcc},	{0xbc, 0x08, 0x30, 0xcc},
1021	{0xbc, 0x09, 0x40, 0xcc},	{0xbc, 0x0a, 0x10, 0xcc},
1022	{0xbc, 0x0b, 0x00, 0xcc},	{0xbc, 0x0c, 0x00, 0xcc},
1023	{0xb3, 0x5c, 0x01, 0xcc},	{0xb3, 0x01, 0x41, 0xcc},
1024	{}
1025};
1026static const u8 mi1320_initQVGA_data[][4] = {
1027	{0xb3, 0x01, 0x01, 0xcc},	{0x00, 0x00, 0x33, 0xdd},
1028	{0xb0, 0x03, 0x19, 0xcc},	{0x00, 0x00, 0x33, 0xdd},
1029	{0xb0, 0x04, 0x02, 0xcc},	{0x00, 0x00, 0x33, 0xdd},
1030	{0xb3, 0x00, 0x64, 0xcc},	{0xb3, 0x00, 0x65, 0xcc},
1031	{0xb0, 0x16, 0x03, 0xcc},	{0xb3, 0x05, 0x01, 0xcc},
1032	{0xb3, 0x06, 0x01, 0xcc},	{0xb3, 0x08, 0x01, 0xcc},
1033	{0xb3, 0x09, 0x0c, 0xcc},	{0xb3, 0x34, 0x02, 0xcc},
1034	{0xb3, 0x35, 0xc8, 0xcc},	{0xb3, 0x02, 0x00, 0xcc},
1035	{0xb3, 0x03, 0x0a, 0xcc},	{0xb3, 0x04, 0x05, 0xcc},
1036	{0xb3, 0x20, 0x00, 0xcc},	{0xb3, 0x21, 0x00, 0xcc},
1037	{0xb3, 0x22, 0x01, 0xcc},	{0xb3, 0x23, 0xe0, 0xcc},
1038	{0xb3, 0x14, 0x00, 0xcc},	{0xb3, 0x15, 0x00, 0xcc},
1039	{0xb3, 0x16, 0x02, 0xcc},	{0xb3, 0x17, 0x7f, 0xcc},
1040	{0xb3, 0x00, 0x65, 0xcc},	{0xb8, 0x00, 0x00, 0xcc},
1041	{0xbc, 0x00, 0xd0, 0xcc},	{0xbc, 0x01, 0x01, 0xcc},
1042	{0xf0, 0x00, 0x00, 0xbb},	{0x0d, 0x00, 0x09, 0xbb},
1043	{0x00, 0x01, 0x00, 0xdd},	{0x0d, 0x00, 0x08, 0xbb},
1044	{0xf0, 0x00, 0x00, 0xbb},	{0x02, 0x00, 0x64, 0xbb},
1045	{0x05, 0x01, 0x78, 0xbb},	{0x06, 0x00, 0x11, 0xbb},
1046	{0x07, 0x01, 0x42, 0xbb},	{0x08, 0x00, 0x11, 0xbb},
1047	{0x20, 0x01, 0x00, 0xbb},	{0x21, 0x80, 0x00, 0xbb},
1048	{0x22, 0x0d, 0x0f, 0xbb},	{0x24, 0x80, 0x00, 0xbb},
1049	{0x59, 0x00, 0xff, 0xbb},	{0xf0, 0x00, 0x01, 0xbb},
1050	{0x9d, 0x3c, 0xa0, 0xbb},	{0x47, 0x30, 0x30, 0xbb},
1051	{0xf0, 0x00, 0x00, 0xbb},	{0x0a, 0x80, 0x11, 0xbb},
1052	{0x35, 0x00, 0x22, 0xbb},	{0xf0, 0x00, 0x02, 0xbb},
1053	{0x9d, 0xc5, 0x05, 0xbb},	{0xdc, 0x0f, 0xfc, 0xbb},
1054	{0xf0, 0x00, 0x01, 0xbb},	{0x06, 0x74, 0x0e, 0xbb},
1055	{0x80, 0x00, 0x06, 0xbb},	{0x81, 0x04, 0x00, 0xbb},
1056	{0x82, 0x01, 0x02, 0xbb},	{0x83, 0x03, 0x02, 0xbb},
1057	{0x84, 0x05, 0x00, 0xbb},	{0x85, 0x01, 0x00, 0xbb},
1058	{0x86, 0x03, 0x02, 0xbb},	{0x87, 0x05, 0x00, 0xbb},
1059	{0x88, 0x01, 0x00, 0xbb},	{0x89, 0x02, 0x02, 0xbb},
1060	{0x8a, 0xfd, 0x04, 0xbb},	{0x8b, 0xfc, 0xfd, 0xbb},
1061	{0x8c, 0xff, 0xfd, 0xbb},	{0x8d, 0x00, 0x00, 0xbb},
1062	{0x8e, 0xfe, 0x05, 0xbb},	{0x8f, 0xfc, 0xfd, 0xbb},
1063	{0x90, 0xfe, 0xfd, 0xbb},	{0x91, 0x00, 0x00, 0xbb},
1064	{0x92, 0xfe, 0x03, 0xbb},	{0x93, 0xfd, 0xfe, 0xbb},
1065	{0x94, 0xff, 0xfd, 0xbb},	{0x95, 0x00, 0x00, 0xbb},
1066	{0xb6, 0x07, 0x05, 0xbb},	{0xb7, 0x13, 0x06, 0xbb},
1067	{0xb8, 0x08, 0x06, 0xbb},	{0xb9, 0x14, 0x08, 0xbb},
1068	{0xba, 0x06, 0x05, 0xbb},	{0xbb, 0x13, 0x06, 0xbb},
1069	{0xbc, 0x03, 0x01, 0xbb},	{0xbd, 0x03, 0x04, 0xbb},
1070	{0xbe, 0x00, 0x02, 0xbb},	{0xbf, 0x03, 0x01, 0xbb},
1071	{0xc0, 0x02, 0x04, 0xbb},	{0xc1, 0x00, 0x04, 0xbb},
1072	{0xc2, 0x02, 0x01, 0xbb},	{0xc3, 0x01, 0x03, 0xbb},
1073	{0xc4, 0x00, 0x04, 0xbb},	{0xf0, 0x00, 0x02, 0xbb},
1074	{0xc8, 0x00, 0x00, 0xbb},	{0x2e, 0x00, 0x00, 0xbb},
1075	{0x2e, 0x0c, 0x5b, 0xbb},	{0x2f, 0xd1, 0x00, 0xbb},
1076	{0x39, 0x03, 0xca, 0xbb},	{0x3a, 0x06, 0x80, 0xbb},
1077	{0x3b, 0x01, 0x52, 0xbb},	{0x3c, 0x05, 0x40, 0xbb},
1078	{0x57, 0x01, 0x9c, 0xbb},	{0x58, 0x01, 0xee, 0xbb},
1079	{0x59, 0x00, 0xf0, 0xbb},	{0x5a, 0x01, 0x20, 0xbb},
1080	{0x5c, 0x1d, 0x17, 0xbb},	{0x5d, 0x22, 0x1c, 0xbb},
1081	{0x64, 0x1e, 0x1c, 0xbb},	{0x5b, 0x00, 0x01, 0xbb},
1082	{0xf0, 0x00, 0x02, 0xbb},	{0x36, 0x68, 0x10, 0xbb},
1083	{0x00, 0x00, 0x30, 0xdd},	{0x37, 0x81, 0x00, 0xbb},
1084	{0xbc, 0x02, 0x18, 0xcc},	{0xbc, 0x03, 0x50, 0xcc},
1085	{0xbc, 0x04, 0x18, 0xcc},	{0xbc, 0x05, 0x00, 0xcc},
1086	{0xbc, 0x06, 0x00, 0xcc},	{0xbc, 0x08, 0x30, 0xcc},
1087	{0xbc, 0x09, 0x40, 0xcc},	{0xbc, 0x0a, 0x10, 0xcc},
1088	{0xbc, 0x0b, 0x00, 0xcc},	{0xbc, 0x0c, 0x00, 0xcc},
1089	{0xbf, 0xc0, 0x26, 0xcc},	{0xbf, 0xc1, 0x02, 0xcc},
1090	{0xbf, 0xcc, 0x04, 0xcc},	{0xb3, 0x5c, 0x01, 0xcc},
1091	{0xb3, 0x01, 0x41, 0xcc},
1092	{}
1093};
1094
1095static const u8 mi1320_soc_InitVGA[][4] = {
1096	{0xb3, 0x01, 0x01, 0xcc},
1097	{0xb0, 0x03, 0x19, 0xcc},
1098	{0xb0, 0x04, 0x02, 0xcc},
1099	{0x00, 0x00, 0x30, 0xdd},
1100	{0xb3, 0x00, 0x64, 0xcc},
1101	{0xb3, 0x00, 0x67, 0xcc},
1102	{0xb3, 0x05, 0x01, 0xcc},
1103	{0xb3, 0x06, 0x01, 0xcc},
1104	{0xb3, 0x08, 0x01, 0xcc},
1105	{0xb3, 0x09, 0x0c, 0xcc},
1106	{0xb3, 0x34, 0x02, 0xcc},
1107	{0xb3, 0x35, 0xc8, 0xcc},	/* i2c add: 48 */
1108	{0xb3, 0x02, 0x00, 0xcc},
1109	{0xb3, 0x03, 0x0a, 0xcc},
1110	{0xb3, 0x04, 0x05, 0xcc},
1111	{0xb3, 0x20, 0x00, 0xcc},
1112	{0xb3, 0x21, 0x00, 0xcc},
1113	{0xb3, 0x22, 0x01, 0xcc},
1114	{0xb3, 0x23, 0xe0, 0xcc},
1115	{0xb3, 0x14, 0x00, 0xcc},
1116	{0xb3, 0x15, 0x00, 0xcc},
1117	{0xb3, 0x16, 0x02, 0xcc},
1118	{0xb3, 0x17, 0x7f, 0xcc},
1119	{0xb3, 0x00, 0x67, 0xcc},
1120	{0xb8, 0x00, 0x00, 0xcc},
1121	{0xbc, 0x00, 0x71, 0xcc},
1122	{0xbc, 0x01, 0x01, 0xcc},
1123	{0xb3, 0x5c, 0x01, 0xcc},
1124	{0xf0, 0x00, 0x02, 0xbb},
1125	{0x00, 0x00, 0x10, 0xdd},
1126	{0xc8, 0x00, 0x00, 0xbb},
1127	{0x00, 0x00, 0x30, 0xdd},
1128	{0xf0, 0x00, 0x00, 0xbb},
1129	{0x00, 0x00, 0x10, 0xdd},
1130	{0x07, 0x00, 0xe0, 0xbb},
1131	{0x08, 0x00, 0x0b, 0xbb},
1132	{0x21, 0x00, 0x0c, 0xbb},
1133	{0x20, 0x01, 0x03, 0xbb},	/* h/v flip */
1134	{0xbf, 0xc0, 0x26, 0xcc},
1135	{0xbf, 0xc1, 0x02, 0xcc},
1136	{0xbf, 0xcc, 0x04, 0xcc},
1137	{0xb3, 0x01, 0x41, 0xcc},
1138	{0xf0, 0x00, 0x00, 0xbb},
1139	{0x05, 0x01, 0x78, 0xbb},
1140	{0x06, 0x00, 0x11, 0xbb},
1141	{0x07, 0x01, 0x42, 0xbb},
1142	{0x08, 0x00, 0x11, 0xbb},
1143	{0x20, 0x01, 0x03, 0xbb},	/* h/v flip */
1144	{0x21, 0x80, 0x00, 0xbb},
1145	{0x22, 0x0d, 0x0f, 0xbb},
1146	{0x24, 0x80, 0x00, 0xbb},
1147	{0x59, 0x00, 0xff, 0xbb},
1148	{0xf0, 0x00, 0x02, 0xbb},
1149	{0x39, 0x03, 0xca, 0xbb},
1150	{0x3a, 0x06, 0x80, 0xbb},
1151	{0x3b, 0x01, 0x52, 0xbb},
1152	{0x3c, 0x05, 0x40, 0xbb},
1153	{0x57, 0x01, 0x9c, 0xbb},
1154	{0x58, 0x01, 0xee, 0xbb},
1155	{0x59, 0x00, 0xf0, 0xbb},
1156	{0x5a, 0x01, 0x20, 0xbb},
1157	{0x5c, 0x1d, 0x17, 0xbb},
1158	{0x5d, 0x22, 0x1c, 0xbb},
1159	{0x64, 0x1e, 0x1c, 0xbb},
1160	{0x5b, 0x00, 0x00, 0xbb},
1161	{0xf0, 0x00, 0x02, 0xbb},
1162	{0x22, 0xa0, 0x78, 0xbb},
1163	{0x23, 0xa0, 0x78, 0xbb},
1164	{0x24, 0x7f, 0x00, 0xbb},
1165	{0x28, 0xea, 0x02, 0xbb},
1166	{0x29, 0x86, 0x7a, 0xbb},
1167	{0x5e, 0x52, 0x4c, 0xbb},
1168	{0x5f, 0x20, 0x24, 0xbb},
1169	{0x60, 0x00, 0x02, 0xbb},
1170	{0x02, 0x00, 0xee, 0xbb},
1171	{0x03, 0x39, 0x23, 0xbb},
1172	{0x04, 0x07, 0x24, 0xbb},
1173	{0x09, 0x00, 0xc0, 0xbb},
1174	{0x0a, 0x00, 0x79, 0xbb},
1175	{0x0b, 0x00, 0x04, 0xbb},
1176	{0x0c, 0x00, 0x5c, 0xbb},
1177	{0x0d, 0x00, 0xd9, 0xbb},
1178	{0x0e, 0x00, 0x53, 0xbb},
1179	{0x0f, 0x00, 0x21, 0xbb},
1180	{0x10, 0x00, 0xa4, 0xbb},
1181	{0x11, 0x00, 0xe5, 0xbb},
1182	{0x15, 0x00, 0x00, 0xbb},
1183	{0x16, 0x00, 0x00, 0xbb},
1184	{0x17, 0x00, 0x00, 0xbb},
1185	{0x18, 0x00, 0x00, 0xbb},
1186	{0x19, 0x00, 0x00, 0xbb},
1187	{0x1a, 0x00, 0x00, 0xbb},
1188	{0x1b, 0x00, 0x00, 0xbb},
1189	{0x1c, 0x00, 0x00, 0xbb},
1190	{0x1d, 0x00, 0x00, 0xbb},
1191	{0x1e, 0x00, 0x00, 0xbb},
1192	{0xf0, 0x00, 0x01, 0xbb},
1193	{0x06, 0xe0, 0x0e, 0xbb},
1194	{0x06, 0x60, 0x0e, 0xbb},
1195	{0xb3, 0x5c, 0x01, 0xcc},
1196	{}
1197};
1198static const u8 mi1320_soc_InitQVGA[][4] = {
1199	{0xb3, 0x01, 0x01, 0xcc},
1200	{0xb0, 0x03, 0x19, 0xcc},
1201	{0xb0, 0x04, 0x02, 0xcc},
1202	{0x00, 0x00, 0x30, 0xdd},
1203	{0xb3, 0x00, 0x64, 0xcc},
1204	{0xb3, 0x00, 0x67, 0xcc},
1205	{0xb3, 0x05, 0x01, 0xcc},
1206	{0xb3, 0x06, 0x01, 0xcc},
1207	{0xb3, 0x08, 0x01, 0xcc},
1208	{0xb3, 0x09, 0x0c, 0xcc},
1209	{0xb3, 0x34, 0x02, 0xcc},
1210	{0xb3, 0x35, 0xc8, 0xcc},
1211	{0xb3, 0x02, 0x00, 0xcc},
1212	{0xb3, 0x03, 0x0a, 0xcc},
1213	{0xb3, 0x04, 0x05, 0xcc},
1214	{0xb3, 0x20, 0x00, 0xcc},
1215	{0xb3, 0x21, 0x00, 0xcc},
1216	{0xb3, 0x22, 0x01, 0xcc},
1217	{0xb3, 0x23, 0xe0, 0xcc},
1218	{0xb3, 0x14, 0x00, 0xcc},
1219	{0xb3, 0x15, 0x00, 0xcc},
1220	{0xb3, 0x16, 0x02, 0xcc},
1221	{0xb3, 0x17, 0x7f, 0xcc},
1222	{0xb3, 0x00, 0x67, 0xcc},
1223	{0xb8, 0x00, 0x00, 0xcc},
1224	{0xbc, 0x00, 0xd1, 0xcc},
1225	{0xbc, 0x01, 0x01, 0xcc},
1226	{0xb3, 0x5c, 0x01, 0xcc},
1227	{0xf0, 0x00, 0x02, 0xbb},
1228	{0x00, 0x00, 0x10, 0xdd},
1229	{0xc8, 0x00, 0x00, 0xbb},
1230	{0x00, 0x00, 0x30, 0xdd},
1231	{0xf0, 0x00, 0x00, 0xbb},
1232	{0x00, 0x00, 0x10, 0xdd},
1233	{0x07, 0x00, 0xe0, 0xbb},
1234	{0x08, 0x00, 0x0b, 0xbb},
1235	{0x21, 0x00, 0x0c, 0xbb},
1236	{0x20, 0x01, 0x03, 0xbb},	/* h/v flip */
1237	{0xbf, 0xc0, 0x26, 0xcc},
1238	{0xbf, 0xc1, 0x02, 0xcc},
1239	{0xbf, 0xcc, 0x04, 0xcc},
1240	{0xbc, 0x02, 0x18, 0xcc},
1241	{0xbc, 0x03, 0x50, 0xcc},
1242	{0xbc, 0x04, 0x18, 0xcc},
1243	{0xbc, 0x05, 0x00, 0xcc},
1244	{0xbc, 0x06, 0x00, 0xcc},
1245	{0xbc, 0x08, 0x30, 0xcc},
1246	{0xbc, 0x09, 0x40, 0xcc},
1247	{0xbc, 0x0a, 0x10, 0xcc},
1248	{0xbc, 0x0b, 0x00, 0xcc},
1249	{0xbc, 0x0c, 0x00, 0xcc},
1250	{0xb3, 0x01, 0x41, 0xcc},
1251	{0xf0, 0x00, 0x00, 0xbb},
1252	{0x05, 0x01, 0x78, 0xbb},
1253	{0x06, 0x00, 0x11, 0xbb},
1254	{0x07, 0x01, 0x42, 0xbb},
1255	{0x08, 0x00, 0x11, 0xbb},
1256	{0x20, 0x01, 0x03, 0xbb},	/* h/v flip */
1257	{0x21, 0x80, 0x00, 0xbb},
1258	{0x22, 0x0d, 0x0f, 0xbb},
1259	{0x24, 0x80, 0x00, 0xbb},
1260	{0x59, 0x00, 0xff, 0xbb},
1261	{0xf0, 0x00, 0x02, 0xbb},
1262	{0x39, 0x03, 0xca, 0xbb},
1263	{0x3a, 0x06, 0x80, 0xbb},
1264	{0x3b, 0x01, 0x52, 0xbb},
1265	{0x3c, 0x05, 0x40, 0xbb},
1266	{0x57, 0x01, 0x9c, 0xbb},
1267	{0x58, 0x01, 0xee, 0xbb},
1268	{0x59, 0x00, 0xf0, 0xbb},
1269	{0x5a, 0x01, 0x20, 0xbb},
1270	{0x5c, 0x1d, 0x17, 0xbb},
1271	{0x5d, 0x22, 0x1c, 0xbb},
1272	{0x64, 0x1e, 0x1c, 0xbb},
1273	{0x5b, 0x00, 0x00, 0xbb},
1274	{0xf0, 0x00, 0x02, 0xbb},
1275	{0x22, 0xa0, 0x78, 0xbb},
1276	{0x23, 0xa0, 0x78, 0xbb},
1277	{0x24, 0x7f, 0x00, 0xbb},
1278	{0x28, 0xea, 0x02, 0xbb},
1279	{0x29, 0x86, 0x7a, 0xbb},
1280	{0x5e, 0x52, 0x4c, 0xbb},
1281	{0x5f, 0x20, 0x24, 0xbb},
1282	{0x60, 0x00, 0x02, 0xbb},
1283	{0x02, 0x00, 0xee, 0xbb},
1284	{0x03, 0x39, 0x23, 0xbb},
1285	{0x04, 0x07, 0x24, 0xbb},
1286	{0x09, 0x00, 0xc0, 0xbb},
1287	{0x0a, 0x00, 0x79, 0xbb},
1288	{0x0b, 0x00, 0x04, 0xbb},
1289	{0x0c, 0x00, 0x5c, 0xbb},
1290	{0x0d, 0x00, 0xd9, 0xbb},
1291	{0x0e, 0x00, 0x53, 0xbb},
1292	{0x0f, 0x00, 0x21, 0xbb},
1293	{0x10, 0x00, 0xa4, 0xbb},
1294	{0x11, 0x00, 0xe5, 0xbb},
1295	{0x15, 0x00, 0x00, 0xbb},
1296	{0x16, 0x00, 0x00, 0xbb},
1297	{0x17, 0x00, 0x00, 0xbb},
1298	{0x18, 0x00, 0x00, 0xbb},
1299	{0x19, 0x00, 0x00, 0xbb},
1300	{0x1a, 0x00, 0x00, 0xbb},
1301	{0x1b, 0x00, 0x00, 0xbb},
1302	{0x1c, 0x00, 0x00, 0xbb},
1303	{0x1d, 0x00, 0x00, 0xbb},
1304	{0x1e, 0x00, 0x00, 0xbb},
1305	{0xf0, 0x00, 0x01, 0xbb},
1306	{0x06, 0xe0, 0x0e, 0xbb},
1307	{0x06, 0x60, 0x0e, 0xbb},
1308	{0xb3, 0x5c, 0x01, 0xcc},
1309	{}
1310};
1311static const u8 mi1320_soc_InitSXGA[][4] = {
1312	{0xb3, 0x01, 0x01, 0xcc},
1313	{0xb0, 0x03, 0x19, 0xcc},
1314	{0x00, 0x00, 0x30, 0xdd},
1315	{0xb3, 0x00, 0x64, 0xcc},
1316	{0xb3, 0x00, 0x67, 0xcc},
1317	{0xb3, 0x05, 0x01, 0xcc},
1318	{0xb3, 0x06, 0x01, 0xcc},
1319	{0xb3, 0x08, 0x01, 0xcc},
1320	{0xb3, 0x09, 0x0c, 0xcc},
1321	{0xb3, 0x34, 0x02, 0xcc},
1322	{0xb3, 0x35, 0xc8, 0xcc},
1323	{0xb3, 0x02, 0x00, 0xcc},
1324	{0xb3, 0x03, 0x0a, 0xcc},
1325	{0xb3, 0x04, 0x05, 0xcc},
1326	{0xb3, 0x20, 0x00, 0xcc},
1327	{0xb3, 0x21, 0x00, 0xcc},
1328	{0xb3, 0x22, 0x04, 0xcc},
1329	{0xb3, 0x23, 0x00, 0xcc},
1330	{0xb3, 0x14, 0x00, 0xcc},
1331	{0xb3, 0x15, 0x00, 0xcc},
1332	{0xb3, 0x16, 0x04, 0xcc},
1333	{0xb3, 0x17, 0xff, 0xcc},
1334	{0xb3, 0x00, 0x67, 0xcc},
1335	{0xbc, 0x00, 0x71, 0xcc},
1336	{0xbc, 0x01, 0x01, 0xcc},
1337	{0xb3, 0x5c, 0x01, 0xcc},
1338	{0xf0, 0x00, 0x02, 0xbb},
1339	{0x00, 0x00, 0x30, 0xdd},
1340	{0xc8, 0x9f, 0x0b, 0xbb},
1341	{0x00, 0x00, 0x20, 0xdd},
1342	{0x5b, 0x00, 0x01, 0xbb},
1343	{0x00, 0x00, 0x20, 0xdd},
1344	{0xf0, 0x00, 0x00, 0xbb},
1345	{0x00, 0x00, 0x30, 0xdd},
1346	{0x20, 0x01, 0x03, 0xbb},	/* h/v flip */
1347	{0x00, 0x00, 0x20, 0xdd},
1348	{0xbf, 0xc0, 0x26, 0xcc},
1349	{0xbf, 0xc1, 0x02, 0xcc},
1350	{0xbf, 0xcc, 0x04, 0xcc},
1351	{0xb3, 0x01, 0x41, 0xcc},
1352	{0xf0, 0x00, 0x00, 0xbb},
1353	{0x05, 0x01, 0x78, 0xbb},
1354	{0x06, 0x00, 0x11, 0xbb},
1355	{0x07, 0x01, 0x42, 0xbb},
1356	{0x08, 0x00, 0x11, 0xbb},
1357	{0x20, 0x01, 0x03, 0xbb},	/* h/v flip */
1358	{0x21, 0x80, 0x00, 0xbb},
1359	{0x22, 0x0d, 0x0f, 0xbb},
1360	{0x24, 0x80, 0x00, 0xbb},
1361	{0x59, 0x00, 0xff, 0xbb},
1362	{0xf0, 0x00, 0x02, 0xbb},
1363	{0x39, 0x03, 0xca, 0xbb},
1364	{0x3a, 0x06, 0x80, 0xbb},
1365	{0x3b, 0x01, 0x52, 0xbb},
1366	{0x3c, 0x05, 0x40, 0xbb},
1367	{0x57, 0x01, 0x9c, 0xbb},
1368	{0x58, 0x01, 0xee, 0xbb},
1369	{0x59, 0x00, 0xf0, 0xbb},
1370	{0x5a, 0x01, 0x20, 0xbb},
1371	{0x5c, 0x1d, 0x17, 0xbb},
1372	{0x5d, 0x22, 0x1c, 0xbb},
1373	{0x64, 0x1e, 0x1c, 0xbb},
1374	{0x5b, 0x00, 0x00, 0xbb},
1375	{0xf0, 0x00, 0x02, 0xbb},
1376	{0x22, 0xa0, 0x78, 0xbb},
1377	{0x23, 0xa0, 0x78, 0xbb},
1378	{0x24, 0x7f, 0x00, 0xbb},
1379	{0x28, 0xea, 0x02, 0xbb},
1380	{0x29, 0x86, 0x7a, 0xbb},
1381	{0x5e, 0x52, 0x4c, 0xbb},
1382	{0x5f, 0x20, 0x24, 0xbb},
1383	{0x60, 0x00, 0x02, 0xbb},
1384	{0x02, 0x00, 0xee, 0xbb},
1385	{0x03, 0x39, 0x23, 0xbb},
1386	{0x04, 0x07, 0x24, 0xbb},
1387	{0x09, 0x00, 0xc0, 0xbb},
1388	{0x0a, 0x00, 0x79, 0xbb},
1389	{0x0b, 0x00, 0x04, 0xbb},
1390	{0x0c, 0x00, 0x5c, 0xbb},
1391	{0x0d, 0x00, 0xd9, 0xbb},
1392	{0x0e, 0x00, 0x53, 0xbb},
1393	{0x0f, 0x00, 0x21, 0xbb},
1394	{0x10, 0x00, 0xa4, 0xbb},
1395	{0x11, 0x00, 0xe5, 0xbb},
1396	{0x15, 0x00, 0x00, 0xbb},
1397	{0x16, 0x00, 0x00, 0xbb},
1398	{0x17, 0x00, 0x00, 0xbb},
1399	{0x18, 0x00, 0x00, 0xbb},
1400	{0x19, 0x00, 0x00, 0xbb},
1401	{0x1a, 0x00, 0x00, 0xbb},
1402	{0x1b, 0x00, 0x00, 0xbb},
1403	{0x1c, 0x00, 0x00, 0xbb},
1404	{0x1d, 0x00, 0x00, 0xbb},
1405	{0x1e, 0x00, 0x00, 0xbb},
1406	{0xf0, 0x00, 0x01, 0xbb},
1407	{0x06, 0xe0, 0x0e, 0xbb},
1408	{0x06, 0x60, 0x0e, 0xbb},
1409	{0xb3, 0x5c, 0x01, 0xcc},
1410	{0xf0, 0x00, 0x00, 0xbb},
1411	{0x05, 0x01, 0x13, 0xbb},
1412	{0x06, 0x00, 0x11, 0xbb},
1413	{0x07, 0x00, 0x85, 0xbb},
1414	{0x08, 0x00, 0x27, 0xbb},
1415	{0x20, 0x01, 0x03, 0xbb},	/* h/v flip */
1416	{0x21, 0x80, 0x00, 0xbb},
1417	{0x22, 0x0d, 0x0f, 0xbb},
1418	{0x24, 0x80, 0x00, 0xbb},
1419	{0x59, 0x00, 0xff, 0xbb},
1420	{0xf0, 0x00, 0x02, 0xbb},
1421	{0x39, 0x03, 0x0d, 0xbb},
1422	{0x3a, 0x06, 0x1b, 0xbb},
1423	{0x3b, 0x00, 0x95, 0xbb},
1424	{0x3c, 0x04, 0xdb, 0xbb},
1425	{0x57, 0x02, 0x00, 0xbb},
1426	{0x58, 0x02, 0x66, 0xbb},
1427	{0x59, 0x00, 0xff, 0xbb},
1428	{0x5a, 0x01, 0x33, 0xbb},
1429	{0x5c, 0x12, 0x0d, 0xbb},
1430	{0x5d, 0x16, 0x11, 0xbb},
1431	{0x64, 0x5e, 0x1c, 0xbb},
1432	{}
1433};
1434static const u8 po3130_gamma[17] = {
1435	0x00, 0x13, 0x38, 0x59, 0x79, 0x92, 0xa7, 0xb9, 0xc8,
1436	0xd4, 0xdf, 0xe7, 0xee, 0xf4, 0xf9, 0xfc, 0xff
1437};
1438static const u8 po3130_matrix[9] = {
1439	0x5f, 0xec, 0xf5, 0xf1, 0x5a, 0xf5, 0xf1, 0xec, 0x63
1440};
1441
1442static const u8 po3130_initVGA_data[][4] = {
1443	{0xb0, 0x4d, 0x00, 0xcc},	{0xb3, 0x01, 0x01, 0xcc},
1444	{0x00, 0x00, 0x50, 0xdd},	{0xb0, 0x03, 0x01, 0xcc},
1445	{0xb3, 0x00, 0x04, 0xcc},	{0xb3, 0x00, 0x24, 0xcc},
1446	{0xb3, 0x00, 0x25, 0xcc},	{0xb3, 0x08, 0x01, 0xcc},
1447	{0xb3, 0x09, 0x0c, 0xcc},	{0xb3, 0x05, 0x00, 0xcc},
1448	{0xb3, 0x06, 0x01, 0xcc},	{0xb3, 0x03, 0x1a, 0xcc},
1449	{0xb3, 0x04, 0x15, 0xcc},	{0xb3, 0x20, 0x00, 0xcc},
1450	{0xb3, 0x21, 0x00, 0xcc},	{0xb3, 0x22, 0x01, 0xcc},
1451	{0xb3, 0x23, 0xe8, 0xcc},	{0xb8, 0x08, 0xe8, 0xcc},
1452	{0xb3, 0x14, 0x00, 0xcc},	{0xb3, 0x15, 0x00, 0xcc},
1453	{0xb3, 0x16, 0x02, 0xcc},	{0xb3, 0x17, 0x7f, 0xcc},
1454	{0xb3, 0x34, 0x01, 0xcc},
1455	{0xb3, 0x35, 0xf6, 0xcc},	/* i2c add: 76 */
1456	{0xb3, 0x00, 0x27, 0xcc},	{0xbc, 0x00, 0x71, 0xcc},
1457	{0xb8, 0x00, 0x21, 0xcc},	{0xb8, 0x27, 0x20, 0xcc},
1458	{0xb8, 0x01, 0x79, 0xcc},	{0xb8, 0x81, 0x09, 0xcc},
1459	{0xb8, 0x2c, 0x50, 0xcc},	{0xb8, 0x2d, 0xf8, 0xcc},
1460	{0xb8, 0x2e, 0xf8, 0xcc},	{0xb8, 0x2f, 0xf8, 0xcc},
1461	{0xb8, 0x30, 0x50, 0xcc},	{0xb8, 0x31, 0xf8, 0xcc},
1462	{0xb8, 0x32, 0xf8, 0xcc},	{0xb8, 0x33, 0xf8, 0xcc},
1463	{0xb8, 0x34, 0x50, 0xcc},	{0xb8, 0x35, 0x00, 0xcc},
1464	{0xb8, 0x36, 0x00, 0xcc},	{0xb8, 0x37, 0x00, 0xcc},
1465	{0x00, 0x1e, 0xc6, 0xaa},	{0x00, 0x20, 0x44, 0xaa},
1466	{0x00, 0xad, 0x02, 0xaa},	{0x00, 0xae, 0x2c, 0xaa},
1467	{0x00, 0x12, 0x08, 0xaa},	{0x00, 0x17, 0x41, 0xaa},
1468	{0x00, 0x19, 0x41, 0xaa},	{0x00, 0x1e, 0x06, 0xaa},
1469	{0x00, 0x21, 0x00, 0xaa},	{0x00, 0x36, 0xc0, 0xaa},
1470	{0x00, 0x37, 0xc8, 0xaa},	{0x00, 0x3b, 0x36, 0xaa},
1471	{0x00, 0x4b, 0xfe, 0xaa},	{0x00, 0x51, 0x1c, 0xaa},
1472	{0x00, 0x52, 0x01, 0xaa},	{0x00, 0x55, 0x0a, 0xaa},
1473	{0x00, 0x59, 0x02, 0xaa},	{0x00, 0x5a, 0x04, 0xaa},
1474	{0x00, 0x5c, 0x10, 0xaa},	{0x00, 0x5d, 0x10, 0xaa},
1475	{0x00, 0x5e, 0x10, 0xaa},	{0x00, 0x5f, 0x10, 0xaa},
1476	{0x00, 0x61, 0x00, 0xaa},	{0x00, 0x62, 0x18, 0xaa},
1477	{0x00, 0x63, 0x30, 0xaa},	{0x00, 0x70, 0x68, 0xaa},
1478	{0x00, 0x80, 0x71, 0xaa},	{0x00, 0x81, 0x08, 0xaa},
1479	{0x00, 0x82, 0x00, 0xaa},	{0x00, 0x83, 0x55, 0xaa},
1480	{0x00, 0x84, 0x06, 0xaa},	{0x00, 0x85, 0x06, 0xaa},
1481	{0x00, 0x86, 0x13, 0xaa},	{0x00, 0x87, 0x18, 0xaa},
1482	{0x00, 0xaa, 0x3f, 0xaa},	{0x00, 0xab, 0x44, 0xaa},
1483	{0x00, 0xb0, 0x68, 0xaa},	{0x00, 0xb5, 0x10, 0xaa},
1484	{0x00, 0xb8, 0x20, 0xaa},	{0x00, 0xb9, 0xa0, 0xaa},
1485	{0x00, 0xbc, 0x04, 0xaa},	{0x00, 0x8b, 0x40, 0xaa},
1486	{0x00, 0x8c, 0x91, 0xaa},	{0x00, 0x8d, 0x8f, 0xaa},
1487	{0x00, 0x8e, 0x91, 0xaa},	{0x00, 0x8f, 0x43, 0xaa},
1488	{0x00, 0x90, 0x92, 0xaa},	{0x00, 0x91, 0x89, 0xaa},
1489	{0x00, 0x92, 0x9d, 0xaa},	{0x00, 0x93, 0x46, 0xaa},
1490	{0x00, 0xd6, 0x22, 0xaa},	{0x00, 0x73, 0x00, 0xaa},
1491	{0x00, 0x74, 0x10, 0xaa},	{0x00, 0x75, 0x20, 0xaa},
1492	{0x00, 0x76, 0x2b, 0xaa},	{0x00, 0x77, 0x36, 0xaa},
1493	{0x00, 0x78, 0x49, 0xaa},	{0x00, 0x79, 0x5a, 0xaa},
1494	{0x00, 0x7a, 0x7f, 0xaa},	{0x00, 0x7b, 0x9b, 0xaa},
1495	{0x00, 0x7c, 0xba, 0xaa},	{0x00, 0x7d, 0xd4, 0xaa},
1496	{0x00, 0x7e, 0xea, 0xaa},	{0x00, 0xd6, 0x62, 0xaa},
1497	{0x00, 0x73, 0x00, 0xaa},	{0x00, 0x74, 0x10, 0xaa},
1498	{0x00, 0x75, 0x20, 0xaa},	{0x00, 0x76, 0x2b, 0xaa},
1499	{0x00, 0x77, 0x36, 0xaa},	{0x00, 0x78, 0x49, 0xaa},
1500	{0x00, 0x79, 0x5a, 0xaa},	{0x00, 0x7a, 0x7f, 0xaa},
1501	{0x00, 0x7b, 0x9b, 0xaa},	{0x00, 0x7c, 0xba, 0xaa},
1502	{0x00, 0x7d, 0xd4, 0xaa},	{0x00, 0x7e, 0xea, 0xaa},
1503	{0x00, 0xd6, 0xa2, 0xaa},	{0x00, 0x73, 0x00, 0xaa},
1504	{0x00, 0x74, 0x10, 0xaa},	{0x00, 0x75, 0x20, 0xaa},
1505	{0x00, 0x76, 0x2b, 0xaa},	{0x00, 0x77, 0x36, 0xaa},
1506	{0x00, 0x78, 0x49, 0xaa},	{0x00, 0x79, 0x5a, 0xaa},
1507	{0x00, 0x7a, 0x7f, 0xaa},	{0x00, 0x7b, 0x9b, 0xaa},
1508	{0x00, 0x7c, 0xba, 0xaa},	{0x00, 0x7d, 0xd4, 0xaa},
1509	{0x00, 0x7e, 0xea, 0xaa},
1510	{0x00, 0x4c, 0x07, 0xaa},
1511	{0x00, 0x4b, 0xe0, 0xaa},	{0x00, 0x4e, 0x77, 0xaa},
1512	{0x00, 0x59, 0x02, 0xaa},	{0x00, 0x4d, 0x0a, 0xaa},
1513/*	{0x00, 0xd1, 0x00, 0xaa},	{0x00, 0x20, 0xc4, 0xaa},
1514	{0xb8, 0x8e, 0x00, 0xcc},	{0xb8, 0x8f, 0xff, 0xcc}, */
1515	{0x00, 0xd1, 0x3c, 0xaa},	{0x00, 0x20, 0xc4, 0xaa},
1516	{0xb8, 0x8e, 0x00, 0xcc},	{0xb8, 0x8f, 0xff, 0xcc},
1517	{0xb8, 0xfe, 0x00, 0xcc},	{0xb8, 0xff, 0x28, 0xcc},
1518	{0xb9, 0x00, 0x28, 0xcc},	{0xb9, 0x01, 0x28, 0xcc},
1519	{0xb9, 0x02, 0x28, 0xcc},	{0xb9, 0x03, 0x00, 0xcc},
1520	{0xb9, 0x04, 0x00, 0xcc},	{0xb9, 0x05, 0x3c, 0xcc},
1521	{0xb9, 0x06, 0x3c, 0xcc},	{0xb9, 0x07, 0x3c, 0xcc},
1522	{0xb9, 0x08, 0x3c, 0xcc},	{0x00, 0x05, 0x00, 0xaa},
1523	{0xb3, 0x5c, 0x00, 0xcc},	{0xb3, 0x01, 0x41, 0xcc},
1524	{}
1525};
1526static const u8 po3130_rundata[][4] = {
1527	{0x00, 0x47, 0x45, 0xaa},	{0x00, 0x48, 0x9b, 0xaa},
1528	{0x00, 0x49, 0x3a, 0xaa},	{0x00, 0x4a, 0x01, 0xaa},
1529	{0x00, 0x44, 0x40, 0xaa},
1530/*	{0x00, 0xd5, 0x7c, 0xaa}, */
1531	{0x00, 0xad, 0x04, 0xaa},	{0x00, 0xae, 0x00, 0xaa},
1532	{0x00, 0xb0, 0x78, 0xaa},	{0x00, 0x98, 0x02, 0xaa},
1533	{0x00, 0x94, 0x25, 0xaa},	{0x00, 0x95, 0x25, 0xaa},
1534	{0x00, 0x59, 0x68, 0xaa},	{0x00, 0x44, 0x20, 0xaa},
1535	{0x00, 0x17, 0x50, 0xaa},	{0x00, 0x19, 0x50, 0xaa},
1536	{0x00, 0xd1, 0x3c, 0xaa},	{0x00, 0xd1, 0x3c, 0xaa},
1537	{0x00, 0x1e, 0x06, 0xaa},	{0x00, 0x1e, 0x06, 0xaa},
1538	{}
1539};
1540
1541static const u8 po3130_initQVGA_data[][4] = {
1542	{0xb0, 0x4d, 0x00, 0xcc},	{0xb3, 0x01, 0x01, 0xcc},
1543	{0x00, 0x00, 0x50, 0xdd},	{0xb0, 0x03, 0x09, 0xcc},
1544	{0xb3, 0x00, 0x04, 0xcc},	{0xb3, 0x00, 0x24, 0xcc},
1545	{0xb3, 0x00, 0x25, 0xcc},	{0xb3, 0x08, 0x01, 0xcc},
1546	{0xb3, 0x09, 0x0c, 0xcc},	{0xb3, 0x05, 0x00, 0xcc},
1547	{0xb3, 0x06, 0x01, 0xcc},	{0xb3, 0x03, 0x1a, 0xcc},
1548	{0xb3, 0x04, 0x15, 0xcc},	{0xb3, 0x20, 0x00, 0

Large files files are truncated, but you can click here to view the full file