#include "drv/sensor/cmos_sensor.h"
#include "sys/sys.h"
SENSOR_INIT_SECTION const unsigned char GC1054InitTable[]=
{
/////////////////////////////////////////////////////
////////////////////// SYS //////////////////////
/////////////////////////////////////////////////////
0xf2,0x00,
0xf6,0x00,
0xfc,0x04,
0xf7,0x01,
0xf8,0x0c,
0xf9,0x00,
0xfa,0x80,
0xfc,0x0e,
/////////////////////////////////////////////////
//////////// ANALOG & CISCTL ////////////////
/////////////////////////////////////////////////
0xfe,0x00,
0x03,0x02,
0x04,0xa6,
0x05,0x02, //HB
0x06,0x07,
0x07,0x00, //VB
0x08,0x0a,
0x09,0x00,
0x0a,0x04, //row start
0x0b,0x00,
0x0c,0x00, //col start
0x0d,0x02,
0x0e,0xd4, //height 724
0x0f,0x05,
0x10,0x08, //width 1288
0x17,0xc0,
0x18,0x02,
0x19,0x08,
0x1a,0x18,
0x1d,0x12,
0x1e,0x50,
0x1f,0x80,
0x21,0x30,
0x23,0xf8,
0x25,0x10,
0x28,0x20,
0x34,0x08, //data low
0x3c,0x10,
0x3d,0x0e,
0xcc,0x8e,
0xcd,0x9a,
0xcf,0x70,
0xd0,0xa9,
0xd1,0xc5,
0xd2,0xed, //data high
0xd8,0x3c, //dacin offset
0xd9,0x7a,
0xda,0x12,
0xdb,0x50,
0xde,0x0c,
0xe3,0x60,
0xe4,0x78,
0xfe,0x01,
0xe3,0x01,
0xe6,0x10, //ramps offset
////////////////////////////////////////////
///////////// ISP //////////////////////
////////////////////////////////////////////
0xfe,0x01,
0x80,0x50,
0x88,0x23,
0x89,0x03,
0x90,0x01,
0x92,0x02, //crop win 2<=y<=4
0x94,0x03, //crop win 2<=x<=5
0x95,0x02, //crop win height
0x96,0xd0,
0x97,0x05, //crop win width
0x98,0x00,
////////////////////////////////////////////
///////////// BLK //////////////////////
////////////////////////////////////////////
0xfe,0x01,
0x40,0x22,
0x43,0x03,
0x4e,0x3c,
0x4f,0x00,
0x60,0x00,
0x61,0x80,
////////////////////////////////////////////
///////////// GAIN /////////////////////
////////////////////////////////////////////
0xfe,0x01,
0xb0,0x48,
0xb1,0x01,
0xb2,0x00,
0xb6,0x00,
0xfe,0x02,
0x01,0x00,
0x02,0x01,
0x03,0x02,
0x04,0x03,
0x05,0x04,
0x06,0x05,
0x07,0x06,
0x08,0x0e,
0x09,0x16,
0x0a,0x1e,
0x0b,0x36,
0x0c,0x3e,
0x0d,0x56,
0xfe,0x02,
0xb0,0x00, //col_gain[11:8]
0xb1,0x00,
0xb2,0x00,
0xb3,0x11,
0xb4,0x22,
0xb5,0x54,
0xb6,0xb8,
0xb7,0x60,
0xb9,0x00, //col_gain[12]
0xba,0xc0,
0xc0,0x20, //col_gain[7:0]
0xc1,0x2d,
0xc2,0x40,
0xc3,0x5b,
0xc4,0x80,
0xc5,0xb5,
0xc6,0x00,
0xc7,0x6a,
0xc8,0x00,
0xc9,0xd4,
0xca,0x00,
0xcb,0xa8,
0xcc,0x00,
0xcd,0x50,
0xce,0x00,
0xcf,0xa1,
////////////////////////////////////////////
/////////// DARKSUN ////////////////////
////////////////////////////////////////////
0xfe,0x02,
0x54,0xf7,
0x55,0xf0,
0x56,0x00,
0x57,0x00,
0x58,0x00,
0x5a,0x04,
////////////////////////////////////////////
////////////// DD //////////////////////
////////////////////////////////////////////
0xfe,0x04,
0x81,0x8a,
//0x40,0x30,//30
////////////////////////////////////////////
///////////// MIPI /////////////////////
////////////////////////////////////////////
0xfe,0x03,
0x01,0x00,
0x02,0x00,
0x03,0x00,
0x10,0x11,
0x15,0x00,
0x40,0x01,
0x41,0x00,
/////////////////////////////////////////////////
////////////////// pad enable ///////////////
/////////////////////////////////////////////////
0xfe,0x00,
0xf2,0x0f,
0xff,0xff,
};
_SEN_YGAMA_TABLE_ const u16 gc1054_ygama[_SEN_YGAMA_CLASSES_][256]={
#if 0
{25,67,99,132,155,179,203,224,246,267,289,304,319,334,350,365,381,391,402,413,424,
435,446,457,468,479,490,497,504,511,518,526,533,540,547,555,562,569,576,584,589,
594,600,605,610,616,621,627,632,637,643,648,653,659,664,670,674,678,682,686,690,
694,698,702,706,710,714,718,722,726,730,735,737,740,743,746,749,752,755,758,760,
763,766,769,772,775,778,781,783,785,788,790,793,795,798,800,802,805,807,810,812,
815,817,820,821,823,825,827,829,830,832,834,836,838,839,841,843,845,847,849,850,
852,853,855,856,858,859,861,862,864,865,867,868,870,871,873,874,875,876,877,878,
879,880,882,883,884,885,886,887,888,889,891,892,893,894,895,896,898,899,900,901,
902,904,905,906,907,908,910,910,911,912,913,914,915,916,917,918,919,920,921,922,
923,924,925,926,927,928,929,930,931,932,933,933,934,935,936,936,937,938,939,940,
940,941,942,943,943,944,945,946,947,947,948,949,950,950,951,952,953,954,954,955,
956,957,958,958,959,960,960,961,962,962,963,964,964,965,966,966,967,968,969,969,
970,970,971,971,972,972,973,974,974,975,975,976,976,977,978},
{25,67,99,132,155,179,203,224,246,267,289,304,319,334,350,365,381,391,402,413,424,
435,446,457,468,479,490,497,504,511,518,526,533,540,547,555,562,569,576,584,589,
594,600,605,610,616,621,627,632,637,643,648,653,659,664,670,674,678,682,686,690,
694,698,702,706,710,714,718,722,726,730,735,737,740,743,746,749,752,755,758,760,
763,766,769,772,775,778,781,783,785,788,790,793,795,798,800,802,805,807,810,812,
815,817,820,821,823,825,827,829,830,832,834,836,838,839,841,843,845,847,849,850,
852,853,855,856,858,859,861,862,864,865,867,868,870,871,873,874,875,876,877,878,
879,880,882,883,884,885,886,887,888,889,891,892,893,894,895,896,898,899,900,901,
902,904,905,906,907,908,910,910,911,912,913,914,915,916,917,918,919,920,921,922,
923,924,925,926,927,928,929,930,931,932,933,933,934,935,936,936,937,938,939,940,
940,941,942,943,943,944,945,946,947,947,948,949,950,950,951,952,953,954,954,955,
956,957,958,958,959,960,960,961,962,962,963,964,964,965,966,966,967,968,969,969,
970,970,971,971,972,972,973,974,974,975,975,976,976,977,978},
{19,64,93,122,146,171,196,219,243,266,290,304,319,334,348,363,378,388,398,408,418,
428,438,448,458,468,478,485,492,499,506,513,520,527,534,541,548,555,562,569,574,
579,584,589,594,599,604,609,614,619,624,629,634,639,644,649,652,655,658,662,665,
668,672,675,678,682,685,688,692,695,698,702,704,706,708,710,712,714,716,718,720,
722,724,726,728,730,732,735,736,738,739,741,742,744,745,747,748,750,751,753,754,
756,757,759,760,762,764,766,768,770,772,774,775,777,779,781,783,785,787,789,790,
792,793,795,796,798,799,801,803,804,806,807,809,810,812,814,815,817,818,820,822,
823,825,827,828,830,831,833,835,836,838,840,841,843,845,847,848,850,852,854,855,
857,859,861,862,864,866,868,869,871,872,874,876,877,879,881,882,884,885,887,889,
890,892,894,895,897,898,900,902,903,905,907,908,909,911,912,914,915,917,918,919,
921,922,924,925,927,928,930,931,932,934,935,937,938,940,941,942,944,945,947,948,
950,951,953,954,956,957,959,960,962,963,965,966,968,969,971,972,974,975,977,978,
979,981,982,984,985,987,988,989,991,992,994,995,997,998,1000},
{20,62,88,114,133,152,172,185,199,212,226,237,248,259,270,281,292,300,308,316,324,
332,341,349,357,365,374,380,386,393,399,405,412,418,425,431,437,444,450,457,462,
467,472,478,483,488,493,499,504,509,514,520,525,530,535,541,544,548,552,556,559,
563,567,571,574,578,582,586,589,593,597,601,604,607,610,613,616,619,622,625,628,
631,634,637,640,643,646,650,652,654,656,659,661,663,665,668,670,672,674,677,679,
681,683,686,687,689,691,692,694,696,697,699,701,702,704,706,707,709,711,713,714,
716,718,719,721,723,724,726,728,729,731,733,734,736,738,740,741,743,744,746,748,
749,751,753,754,756,757,759,761,762,764,766,767,769,770,772,773,775,776,778,779,
781,782,784,785,787,788,790,791,792,793,795,796,797,798,800,801,802,803,805,806,
807,808,810,811,812,813,815,816,817,818,820,820,821,822,823,823,824,825,826,827,
827,828,829,830,830,831,832,833,834,834,835,836,837,837,838,839,840,841,841,842,
843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,861,
862,863,864,865,866,867,868,869,870,871,872,873,874,875,876},
{20,62,88,114,133,152,172,185,199,212,226,237,248,259,270,281,292,300,308,316,324,
332,341,349,357,365,374,380,386,393,399,405,412,418,425,431,437,444,450,457,462,
467,472,478,483,488,493,499,504,509,514,520,
评论1