summaryrefslogtreecommitdiff
path: root/drivers/staging/sm7xx/smtcfb.h
blob: ab95af2b9c0793233c5cbc4fc56cfd29cac90532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
/*
 * Silicon Motion SM712 frame buffer device
 *
 * Copyright (C) 2006 Silicon Motion Technology Corp.
 * Authors:	Ge Wang, gewang@siliconmotion.com
 *		Boyod boyod.yang@siliconmotion.com.cn
 *
 * Copyright (C) 2009 Lemote, Inc.
 * Author: Wu Zhangjin, wuzhangjin@gmail.com
 *
 *  This file is subject to the terms and conditions of the GNU General Public
 *  License. See the file COPYING in the main directory of this archive for
 *  more details.
 */

#define SMTC_LINUX_FB_VERSION	"version 0.11.2619.21.01 July 27, 2008"

#define NR_PALETTE        256
#define NR_RGB            2

#define FB_ACCEL_SMI_LYNX 88

#ifdef __BIG_ENDIAN
#define PC_VGA            0
#else
#define PC_VGA            1
#endif

#define SCREEN_X_RES      1024
#define SCREEN_Y_RES      600
#define SCREEN_BPP        16

/*Assume SM712 graphics chip has 4MB VRAM */
#define SM712_VIDEOMEMORYSIZE	  0x00400000
/*Assume SM722 graphics chip has 8MB VRAM */
#define SM722_VIDEOMEMORYSIZE	  0x00800000

#define dac_reg	(0x3c8)
#define dac_val	(0x3c9)

extern char __iomem *smtc_RegBaseAddress;
#define smtc_mmiowb(dat, reg)	writeb(dat, smtc_RegBaseAddress + reg)
#define smtc_mmioww(dat, reg)	writew(dat, smtc_RegBaseAddress + reg)
#define smtc_mmiowl(dat, reg)	writel(dat, smtc_RegBaseAddress + reg)

#define smtc_mmiorb(reg)	readb(smtc_RegBaseAddress + reg)
#define smtc_mmiorw(reg)	readw(smtc_RegBaseAddress + reg)
#define smtc_mmiorl(reg)	readl(smtc_RegBaseAddress + reg)

#define SIZE_SR00_SR04      (0x04 - 0x00 + 1)
#define SIZE_SR10_SR24      (0x24 - 0x10 + 1)
#define SIZE_SR30_SR75      (0x75 - 0x30 + 1)
#define SIZE_SR80_SR93      (0x93 - 0x80 + 1)
#define SIZE_SRA0_SRAF      (0xAF - 0xA0 + 1)
#define SIZE_GR00_GR08      (0x08 - 0x00 + 1)
#define SIZE_AR00_AR14      (0x14 - 0x00 + 1)
#define SIZE_CR00_CR18      (0x18 - 0x00 + 1)
#define SIZE_CR30_CR4D      (0x4D - 0x30 + 1)
#define SIZE_CR90_CRA7      (0xA7 - 0x90 + 1)
#define SIZE_VPR		(0x6C + 1)
#define SIZE_DPR		(0x44 + 1)

static inline void smtc_crtcw(int reg, int val)
{
	smtc_mmiowb(reg, 0x3d4);
	smtc_mmiowb(val, 0x3d5);
}

static inline unsigned int smtc_crtcr(int reg)
{
	smtc_mmiowb(reg, 0x3d4);
	return smtc_mmiorb(0x3d5);
}

static inline void smtc_grphw(int reg, int val)
{
	smtc_mmiowb(reg, 0x3ce);
	smtc_mmiowb(val, 0x3cf);
}

static inline unsigned int smtc_grphr(int reg)
{
	smtc_mmiowb(reg, 0x3ce);
	return smtc_mmiorb(0x3cf);
}

static inline void smtc_attrw(int reg, int val)
{
	smtc_mmiorb(0x3da);
	smtc_mmiowb(reg, 0x3c0);
	smtc_mmiorb(0x3c1);
	smtc_mmiowb(val, 0x3c0);
}

static inline void smtc_seqw(int reg, int val)
{
	smtc_mmiowb(reg, 0x3c4);
	smtc_mmiowb(val, 0x3c5);
}

static inline unsigned int smtc_seqr(int reg)
{
	smtc_mmiowb(reg, 0x3c4);
	return smtc_mmiorb(0x3c5);
}

/* The next structure holds all information relevant for a specific video mode.
 */

struct ModeInit {
	int mmSizeX;
	int mmSizeY;
	int bpp;
	int hz;
	unsigned char Init_MISC;
	unsigned char Init_SR00_SR04[SIZE_SR00_SR04];
	unsigned char Init_SR10_SR24[SIZE_SR10_SR24];
	unsigned char Init_SR30_SR75[SIZE_SR30_SR75];
	unsigned char Init_SR80_SR93[SIZE_SR80_SR93];
	unsigned char Init_SRA0_SRAF[SIZE_SRA0_SRAF];
	unsigned char Init_GR00_GR08[SIZE_GR00_GR08];
	unsigned char Init_AR00_AR14[SIZE_AR00_AR14];
	unsigned char Init_CR00_CR18[SIZE_CR00_CR18];
	unsigned char Init_CR30_CR4D[SIZE_CR30_CR4D];
	unsigned char Init_CR90_CRA7[SIZE_CR90_CRA7];
};

/**********************************************************************
			 SM712 Mode table.
 **********************************************************************/
struct ModeInit VGAMode[] = {
	{
	 /*  mode#0: 640 x 480  16Bpp  60Hz */
	 640, 480, 16, 60,
	 /*  Init_MISC */
	 0xE3,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x00, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xFF, 0xBE, 0xEF, 0xFF, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x30, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x32, 0x03, 0xA0, 0x09, 0xC0, 0x32, 0x32, 0x32,
	  0x32, 0x32, 0x32, 0x32, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x18, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x32, 0x32, 0x32,
	  0x04, 0x24, 0x63, 0x4F, 0x52, 0x0B, 0xDF, 0xEA,
	  0x04, 0x50, 0x19, 0x32, 0x32, 0x00, 0x00, 0x32,
	  0x01, 0x80, 0x7E, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x07, 0x82, 0x07, 0x04,
	  0x00, 0x45, 0x30, 0x30, 0x40, 0x30,
	  },
	 {			/*  Init_SR80_SR93 */
	  0xFF, 0x07, 0x00, 0x6F, 0x7F, 0x7F, 0xFF, 0x32,
	  0xF7, 0x00, 0x00, 0x00, 0xEF, 0xFF, 0x32, 0x32,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFF, 0xBF, 0xFF, 0xFF, 0xED, 0xED, 0xED,
	  0x7B, 0xFF, 0xFF, 0xFF, 0xBF, 0xEF, 0xFF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0x5F, 0x4F, 0x4F, 0x00, 0x53, 0x1F, 0x0B, 0x3E,
	  0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xEA, 0x0C, 0xDF, 0x50, 0x40, 0xDF, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x03, 0x20,
	  0x00, 0x00, 0x00, 0x40, 0x00, 0xE7, 0xFF, 0xFD,
	  0x5F, 0x4F, 0x00, 0x54, 0x00, 0x0B, 0xDF, 0x00,
	  0xEA, 0x0C, 0x2E, 0x00, 0x4F, 0xDF,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x56, 0xDD, 0x5E, 0xEA, 0x87, 0x44, 0x8F, 0x55,
	  0x0A, 0x8F, 0x55, 0x0A, 0x00, 0x00, 0x18, 0x00,
	  0x11, 0x10, 0x0B, 0x0A, 0x0A, 0x0A, 0x0A, 0x00,
	  },
	 },
	{
	 /*  mode#1: 640 x 480  24Bpp  60Hz */
	 640, 480, 24, 60,
	 /*  Init_MISC */
	 0xE3,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x00, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xFF, 0xBE, 0xEF, 0xFF, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x30, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x32, 0x03, 0xA0, 0x09, 0xC0, 0x32, 0x32, 0x32,
	  0x32, 0x32, 0x32, 0x32, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x18, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x32, 0x32, 0x32,
	  0x04, 0x24, 0x63, 0x4F, 0x52, 0x0B, 0xDF, 0xEA,
	  0x04, 0x50, 0x19, 0x32, 0x32, 0x00, 0x00, 0x32,
	  0x01, 0x80, 0x7E, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x07, 0x82, 0x07, 0x04,
	  0x00, 0x45, 0x30, 0x30, 0x40, 0x30,
	  },
	 {			/*  Init_SR80_SR93 */
	  0xFF, 0x07, 0x00, 0x6F, 0x7F, 0x7F, 0xFF, 0x32,
	  0xF7, 0x00, 0x00, 0x00, 0xEF, 0xFF, 0x32, 0x32,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFF, 0xBF, 0xFF, 0xFF, 0xED, 0xED, 0xED,
	  0x7B, 0xFF, 0xFF, 0xFF, 0xBF, 0xEF, 0xFF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0x5F, 0x4F, 0x4F, 0x00, 0x53, 0x1F, 0x0B, 0x3E,
	  0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xEA, 0x0C, 0xDF, 0x50, 0x40, 0xDF, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x03, 0x20,
	  0x00, 0x00, 0x00, 0x40, 0x00, 0xE7, 0xFF, 0xFD,
	  0x5F, 0x4F, 0x00, 0x54, 0x00, 0x0B, 0xDF, 0x00,
	  0xEA, 0x0C, 0x2E, 0x00, 0x4F, 0xDF,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x56, 0xDD, 0x5E, 0xEA, 0x87, 0x44, 0x8F, 0x55,
	  0x0A, 0x8F, 0x55, 0x0A, 0x00, 0x00, 0x18, 0x00,
	  0x11, 0x10, 0x0B, 0x0A, 0x0A, 0x0A, 0x0A, 0x00,
	  },
	 },
	{
	 /*  mode#0: 640 x 480  32Bpp  60Hz */
	 640, 480, 32, 60,
	 /*  Init_MISC */
	 0xE3,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x00, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xFF, 0xBE, 0xEF, 0xFF, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x30, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x32, 0x03, 0xA0, 0x09, 0xC0, 0x32, 0x32, 0x32,
	  0x32, 0x32, 0x32, 0x32, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x18, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x32, 0x32, 0x32,
	  0x04, 0x24, 0x63, 0x4F, 0x52, 0x0B, 0xDF, 0xEA,
	  0x04, 0x50, 0x19, 0x32, 0x32, 0x00, 0x00, 0x32,
	  0x01, 0x80, 0x7E, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x07, 0x82, 0x07, 0x04,
	  0x00, 0x45, 0x30, 0x30, 0x40, 0x30,
	  },
	 {			/*  Init_SR80_SR93 */
	  0xFF, 0x07, 0x00, 0x6F, 0x7F, 0x7F, 0xFF, 0x32,
	  0xF7, 0x00, 0x00, 0x00, 0xEF, 0xFF, 0x32, 0x32,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFF, 0xBF, 0xFF, 0xFF, 0xED, 0xED, 0xED,
	  0x7B, 0xFF, 0xFF, 0xFF, 0xBF, 0xEF, 0xFF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0x5F, 0x4F, 0x4F, 0x00, 0x53, 0x1F, 0x0B, 0x3E,
	  0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xEA, 0x0C, 0xDF, 0x50, 0x40, 0xDF, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x03, 0x20,
	  0x00, 0x00, 0x00, 0x40, 0x00, 0xE7, 0xFF, 0xFD,
	  0x5F, 0x4F, 0x00, 0x54, 0x00, 0x0B, 0xDF, 0x00,
	  0xEA, 0x0C, 0x2E, 0x00, 0x4F, 0xDF,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x56, 0xDD, 0x5E, 0xEA, 0x87, 0x44, 0x8F, 0x55,
	  0x0A, 0x8F, 0x55, 0x0A, 0x00, 0x00, 0x18, 0x00,
	  0x11, 0x10, 0x0B, 0x0A, 0x0A, 0x0A, 0x0A, 0x00,
	  },
	 },

	{			/*  mode#2: 800 x 600  16Bpp  60Hz */
	 800, 600, 16, 60,
	 /*  Init_MISC */
	 0x2B,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x03, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xFF, 0xBE, 0xEE, 0xFF, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x30, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x34, 0x03, 0x20, 0x09, 0xC0, 0x24, 0x24, 0x24,
	  0x24, 0x24, 0x24, 0x24, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x38, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x24, 0x24, 0x24,
	  0x04, 0x48, 0x83, 0x63, 0x68, 0x72, 0x57, 0x58,
	  0x04, 0x55, 0x59, 0x24, 0x24, 0x00, 0x00, 0x24,
	  0x01, 0x80, 0x7A, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x1C, 0x85, 0x35, 0x13,
	  0x02, 0x45, 0x30, 0x35, 0x40, 0x20,
	  },
	 {			/*  Init_SR80_SR93 */
	  0x00, 0x00, 0x00, 0x6F, 0x7F, 0x7F, 0xFF, 0x24,
	  0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x24, 0x24,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFF, 0xBF, 0xFF, 0xFF, 0xED, 0xED, 0xED,
	  0x7B, 0xFF, 0xFF, 0xFF, 0xBF, 0xEF, 0xBF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0x7F, 0x63, 0x63, 0x00, 0x68, 0x18, 0x72, 0xF0,
	  0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0x58, 0x0C, 0x57, 0x64, 0x40, 0x57, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x03, 0x20,
	  0x00, 0x00, 0x00, 0x40, 0x00, 0xE7, 0xBF, 0xFD,
	  0x7F, 0x63, 0x00, 0x69, 0x18, 0x72, 0x57, 0x00,
	  0x58, 0x0C, 0xE0, 0x20, 0x63, 0x57,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x56, 0x4B, 0x5E, 0x55, 0x86, 0x9D, 0x8E, 0xAA,
	  0xDB, 0x2A, 0xDF, 0x33, 0x00, 0x00, 0x18, 0x00,
	  0x20, 0x1F, 0x1A, 0x19, 0x0F, 0x0F, 0x0F, 0x00,
	  },
	 },
	{			/*  mode#3: 800 x 600  24Bpp  60Hz */
	 800, 600, 24, 60,
	 0x2B,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x03, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xFF, 0xBE, 0xEE, 0xFF, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x30, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x36, 0x03, 0x20, 0x09, 0xC0, 0x36, 0x36, 0x36,
	  0x36, 0x36, 0x36, 0x36, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x18, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x36, 0x36, 0x36,
	  0x04, 0x48, 0x83, 0x63, 0x68, 0x72, 0x57, 0x58,
	  0x04, 0x55, 0x59, 0x36, 0x36, 0x00, 0x00, 0x36,
	  0x01, 0x80, 0x7E, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x1C, 0x85, 0x35, 0x13,
	  0x02, 0x45, 0x30, 0x30, 0x40, 0x20,
	  },
	 {			/*  Init_SR80_SR93 */
	  0xFF, 0x07, 0x00, 0x6F, 0x7F, 0x7F, 0xFF, 0x36,
	  0xF7, 0x00, 0x00, 0x00, 0xEF, 0xFF, 0x36, 0x36,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFF, 0xBF, 0xFF, 0xFF, 0xED, 0xED, 0xED,
	  0x7B, 0xFF, 0xFF, 0xFF, 0xBF, 0xEF, 0xBF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0x7F, 0x63, 0x63, 0x00, 0x68, 0x18, 0x72, 0xF0,
	  0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0x58, 0x0C, 0x57, 0x64, 0x40, 0x57, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x03, 0x20,
	  0x00, 0x00, 0x00, 0x40, 0x00, 0xE7, 0xBF, 0xFD,
	  0x7F, 0x63, 0x00, 0x69, 0x18, 0x72, 0x57, 0x00,
	  0x58, 0x0C, 0xE0, 0x20, 0x63, 0x57,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x56, 0x4B, 0x5E, 0x55, 0x86, 0x9D, 0x8E, 0xAA,
	  0xDB, 0x2A, 0xDF, 0x33, 0x00, 0x00, 0x18, 0x00,
	  0x20, 0x1F, 0x1A, 0x19, 0x0F, 0x0F, 0x0F, 0x00,
	  },
	 },
	{			/*  mode#7: 800 x 600  32Bpp  60Hz */
	 800, 600, 32, 60,
	 /*  Init_MISC */
	 0x2B,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x03, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xFF, 0xBE, 0xEE, 0xFF, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x30, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x34, 0x03, 0x20, 0x09, 0xC0, 0x24, 0x24, 0x24,
	  0x24, 0x24, 0x24, 0x24, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x38, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x24, 0x24, 0x24,
	  0x04, 0x48, 0x83, 0x63, 0x68, 0x72, 0x57, 0x58,
	  0x04, 0x55, 0x59, 0x24, 0x24, 0x00, 0x00, 0x24,
	  0x01, 0x80, 0x7A, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x1C, 0x85, 0x35, 0x13,
	  0x02, 0x45, 0x30, 0x35, 0x40, 0x20,
	  },
	 {			/*  Init_SR80_SR93 */
	  0x00, 0x00, 0x00, 0x6F, 0x7F, 0x7F, 0xFF, 0x24,
	  0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x24, 0x24,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFF, 0xBF, 0xFF, 0xFF, 0xED, 0xED, 0xED,
	  0x7B, 0xFF, 0xFF, 0xFF, 0xBF, 0xEF, 0xBF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0x7F, 0x63, 0x63, 0x00, 0x68, 0x18, 0x72, 0xF0,
	  0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0x58, 0x0C, 0x57, 0x64, 0x40, 0x57, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x03, 0x20,
	  0x00, 0x00, 0x00, 0x40, 0x00, 0xE7, 0xBF, 0xFD,
	  0x7F, 0x63, 0x00, 0x69, 0x18, 0x72, 0x57, 0x00,
	  0x58, 0x0C, 0xE0, 0x20, 0x63, 0x57,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x56, 0x4B, 0x5E, 0x55, 0x86, 0x9D, 0x8E, 0xAA,
	  0xDB, 0x2A, 0xDF, 0x33, 0x00, 0x00, 0x18, 0x00,
	  0x20, 0x1F, 0x1A, 0x19, 0x0F, 0x0F, 0x0F, 0x00,
	  },
	 },
	/* We use 1024x768 table to light 1024x600 panel for lemote */
	{			/*  mode#4: 1024 x 600  16Bpp  60Hz  */
	 1024, 600, 16, 60,
	 /*  Init_MISC */
	 0xEB,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x00, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xC8, 0x40, 0x14, 0x60, 0x00, 0x0A, 0x17, 0x20,
	  0x51, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x30, 0x02, 0x00, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x22, 0x03, 0x24, 0x09, 0xC0, 0x22, 0x22, 0x22,
	  0x22, 0x22, 0x22, 0x22, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x18, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x22, 0x22, 0x22,
	  0x06, 0x68, 0xA7, 0x7F, 0x83, 0x24, 0xFF, 0x03,
	  0x00, 0x60, 0x59, 0x22, 0x22, 0x00, 0x00, 0x22,
	  0x01, 0x80, 0x7A, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x16, 0x02, 0x0D, 0x82, 0x09, 0x02,
	  0x04, 0x45, 0x3F, 0x30, 0x40, 0x20,
	  },
	 {			/*  Init_SR80_SR93 */
	  0xFF, 0x07, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x3A,
	  0xF7, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x3A, 0x3A,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFB, 0x9F, 0x01, 0x00, 0xED, 0xED, 0xED,
	  0x7B, 0xFB, 0xFF, 0xFF, 0x97, 0xEF, 0xBF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0xA3, 0x7F, 0x7F, 0x00, 0x85, 0x16, 0x24, 0xF5,
	  0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0x03, 0x09, 0xFF, 0x80, 0x40, 0xFF, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x20,
	  0x00, 0x00, 0x00, 0x40, 0x00, 0xFF, 0xBF, 0xFF,
	  0xA3, 0x7F, 0x00, 0x82, 0x0b, 0x6f, 0x57, 0x00,
	  0x5c, 0x0f, 0xE0, 0xe0, 0x7F, 0x57,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x55, 0xD9, 0x5D, 0xE1, 0x86, 0x1B, 0x8E, 0x26,
	  0xDA, 0x8D, 0xDE, 0x94, 0x00, 0x00, 0x18, 0x00,
	  0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x15, 0x03,
	  },
	 },
	{			/*  mode#5: 1024 x 768  24Bpp  60Hz */
	 1024, 768, 24, 60,
	 /*  Init_MISC */
	 0xEB,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x03, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xF3, 0xB6, 0xC0, 0xDD, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x30, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x38, 0x03, 0x20, 0x09, 0xC0, 0x3A, 0x3A, 0x3A,
	  0x3A, 0x3A, 0x3A, 0x3A, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x18, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x00, 0x00, 0x3A,
	  0x06, 0x68, 0xA7, 0x7F, 0x83, 0x24, 0xFF, 0x03,
	  0x00, 0x60, 0x59, 0x3A, 0x3A, 0x00, 0x00, 0x3A,
	  0x01, 0x80, 0x7E, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x3B, 0x0D, 0x09, 0x02,
	  0x04, 0x45, 0x30, 0x30, 0x40, 0x20,
	  },
	 {			/*  Init_SR80_SR93 */
	  0xFF, 0x07, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x3A,
	  0xF7, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x3A, 0x3A,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFB, 0x9F, 0x01, 0x00, 0xED, 0xED, 0xED,
	  0x7B, 0xFB, 0xFF, 0xFF, 0x97, 0xEF, 0xBF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0xA3, 0x7F, 0x7F, 0x00, 0x85, 0x16, 0x24, 0xF5,
	  0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0x03, 0x09, 0xFF, 0x80, 0x40, 0xFF, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x20,
	  0x00, 0x00, 0x00, 0x40, 0x00, 0xFF, 0xBF, 0xFF,
	  0xA3, 0x7F, 0x00, 0x86, 0x15, 0x24, 0xFF, 0x00,
	  0x01, 0x07, 0xE5, 0x20, 0x7F, 0xFF,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x55, 0xD9, 0x5D, 0xE1, 0x86, 0x1B, 0x8E, 0x26,
	  0xDA, 0x8D, 0xDE, 0x94, 0x00, 0x00, 0x18, 0x00,
	  0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x15, 0x03,
	  },
	 },
	{			/*  mode#4: 1024 x 768  32Bpp  60Hz */
	 1024, 768, 32, 60,
	 /*  Init_MISC */
	 0xEB,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x03, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xF3, 0xB6, 0xC0, 0xDD, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x32, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x38, 0x03, 0x20, 0x09, 0xC0, 0x3A, 0x3A, 0x3A,
	  0x3A, 0x3A, 0x3A, 0x3A, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x18, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x00, 0x00, 0x3A,
	  0x06, 0x68, 0xA7, 0x7F, 0x83, 0x24, 0xFF, 0x03,
	  0x00, 0x60, 0x59, 0x3A, 0x3A, 0x00, 0x00, 0x3A,
	  0x01, 0x80, 0x7E, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x3B, 0x0D, 0x09, 0x02,
	  0x04, 0x45, 0x30, 0x30, 0x40, 0x20,
	  },
	 {			/*  Init_SR80_SR93 */
	  0xFF, 0x07, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x3A,
	  0xF7, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x3A, 0x3A,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFB, 0x9F, 0x01, 0x00, 0xED, 0xED, 0xED,
	  0x7B, 0xFB, 0xFF, 0xFF, 0x97, 0xEF, 0xBF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0xA3, 0x7F, 0x7F, 0x00, 0x85, 0x16, 0x24, 0xF5,
	  0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0x03, 0x09, 0xFF, 0x80, 0x40, 0xFF, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x20,
	  0x00, 0x00, 0x00, 0x40, 0x00, 0xFF, 0xBF, 0xFF,
	  0xA3, 0x7F, 0x00, 0x86, 0x15, 0x24, 0xFF, 0x00,
	  0x01, 0x07, 0xE5, 0x20, 0x7F, 0xFF,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x55, 0xD9, 0x5D, 0xE1, 0x86, 0x1B, 0x8E, 0x26,
	  0xDA, 0x8D, 0xDE, 0x94, 0x00, 0x00, 0x18, 0x00,
	  0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x15, 0x03,
	  },
	 },
	{			/*  mode#6: 320 x 240  16Bpp  60Hz */
	 320, 240, 16, 60,
	 /*  Init_MISC */
	 0xEB,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x03, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xF3, 0xB6, 0xC0, 0xDD, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x32, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x38, 0x03, 0x20, 0x09, 0xC0, 0x3A, 0x3A, 0x3A,
	  0x3A, 0x3A, 0x3A, 0x3A, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x18, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x00, 0x00, 0x3A,
	  0x06, 0x68, 0xA7, 0x7F, 0x83, 0x24, 0xFF, 0x03,
	  0x00, 0x60, 0x59, 0x3A, 0x3A, 0x00, 0x00, 0x3A,
	  0x01, 0x80, 0x7E, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x08, 0x43, 0x08, 0x43,
	  0x04, 0x45, 0x30, 0x30, 0x40, 0x20,
	  },
	 {			/*  Init_SR80_SR93 */
	  0xFF, 0x07, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x3A,
	  0xF7, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x3A, 0x3A,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFB, 0x9F, 0x01, 0x00, 0xED, 0xED, 0xED,
	  0x7B, 0xFB, 0xFF, 0xFF, 0x97, 0xEF, 0xBF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0xA3, 0x7F, 0x7F, 0x00, 0x85, 0x16, 0x24, 0xF5,
	  0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0x03, 0x09, 0xFF, 0x80, 0x40, 0xFF, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x20,
	  0x00, 0x00, 0x30, 0x40, 0x00, 0xFF, 0xBF, 0xFF,
	  0x2E, 0x27, 0x00, 0x2b, 0x0c, 0x0F, 0xEF, 0x00,
	  0xFe, 0x0f, 0x01, 0xC0, 0x27, 0xEF,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x55, 0xD9, 0x5D, 0xE1, 0x86, 0x1B, 0x8E, 0x26,
	  0xDA, 0x8D, 0xDE, 0x94, 0x00, 0x00, 0x18, 0x00,
	  0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x15, 0x03,
	  },
	 },

	{			/*  mode#8: 320 x 240  32Bpp  60Hz */
	 320, 240, 32, 60,
	 /*  Init_MISC */
	 0xEB,
	 {			/*  Init_SR0_SR4 */
	  0x03, 0x01, 0x0F, 0x03, 0x0E,
	  },
	 {			/*  Init_SR10_SR24 */
	  0xF3, 0xB6, 0xC0, 0xDD, 0x00, 0x0E, 0x17, 0x2C,
	  0x99, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0xC4, 0x32, 0x02, 0x01, 0x01,
	  },
	 {			/*  Init_SR30_SR75 */
	  0x38, 0x03, 0x20, 0x09, 0xC0, 0x3A, 0x3A, 0x3A,
	  0x3A, 0x3A, 0x3A, 0x3A, 0x00, 0x00, 0x03, 0xFF,
	  0x00, 0xFC, 0x00, 0x00, 0x20, 0x18, 0x00, 0xFC,
	  0x20, 0x0C, 0x44, 0x20, 0x00, 0x00, 0x00, 0x3A,
	  0x06, 0x68, 0xA7, 0x7F, 0x83, 0x24, 0xFF, 0x03,
	  0x00, 0x60, 0x59, 0x3A, 0x3A, 0x00, 0x00, 0x3A,
	  0x01, 0x80, 0x7E, 0x1A, 0x1A, 0x00, 0x00, 0x00,
	  0x50, 0x03, 0x74, 0x14, 0x08, 0x43, 0x08, 0x43,
	  0x04, 0x45, 0x30, 0x30, 0x40, 0x20,
	  },
	 {			/*  Init_SR80_SR93 */
	  0xFF, 0x07, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x3A,
	  0xF7, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x3A, 0x3A,
	  0x00, 0x00, 0x00, 0x00,
	  },
	 {			/*  Init_SRA0_SRAF */
	  0x00, 0xFB, 0x9F, 0x01, 0x00, 0xED, 0xED, 0xED,
	  0x7B, 0xFB, 0xFF, 0xFF, 0x97, 0xEF, 0xBF, 0xDF,
	  },
	 {			/*  Init_GR00_GR08 */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F,
	  0xFF,
	  },
	 {			/*  Init_AR00_AR14 */
	  0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	  0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
	  0x41, 0x00, 0x0F, 0x00, 0x00,
	  },
	 {			/*  Init_CR00_CR18 */
	  0xA3, 0x7F, 0x7F, 0x00, 0x85, 0x16, 0x24, 0xF5,
	  0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	  0x03, 0x09, 0xFF, 0x80, 0x40, 0xFF, 0x00, 0xE3,
	  0xFF,
	  },
	 {			/*  Init_CR30_CR4D */
	  0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x20,
	  0x00, 0x00, 0x30, 0x40, 0x00, 0xFF, 0xBF, 0xFF,
	  0x2E, 0x27, 0x00, 0x2b, 0x0c, 0x0F, 0xEF, 0x00,
	  0xFe, 0x0f, 0x01, 0xC0, 0x27, 0xEF,
	  },
	 {			/*  Init_CR90_CRA7 */
	  0x55, 0xD9, 0x5D, 0xE1, 0x86, 0x1B, 0x8E, 0x26,
	  0xDA, 0x8D, 0xDE, 0x94, 0x00, 0x00, 0x18, 0x00,
	  0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x15, 0x03,
	  },
	 },
};

#define numVGAModes		ARRAY_SIZE(VGAMode)