Commit 2ca21075 authored by Andrey Filippov's avatar Andrey Filippov

Was debugging, commented new debug out

parent bf06826b
...@@ -883,6 +883,7 @@ int mt9x001_pgm_detectsensor (int sensor_port, ///< sensor port ...@@ -883,6 +883,7 @@ int mt9x001_pgm_detectsensor (int sensor_port, ///< sensor port
sensio_ctl.mmcm_rst = 0; sensio_ctl.mmcm_rst = 0;
x393_sensio_ctrl(sensio_ctl,sensor_port); x393_sensio_ctrl(sensio_ctl,sensor_port);
udelay(50); // is it needed? udelay(50); // is it needed?
// udelay(500); // is it needed? // trying 04/07/2022
X3X3_I2C_RCV2(sensor_port, psensor->i2c_addr, P_MT9X001_CHIPVER, &i2c_read_dataw); X3X3_I2C_RCV2(sensor_port, psensor->i2c_addr, P_MT9X001_CHIPVER, &i2c_read_dataw);
dev_dbg(g_dev_ptr,"Read i2c (port = %d, sa7=0x%lx, reg=0x%x) chip ID=%x\n",sensor_port, psensor->i2c_addr, P_MT9X001_CHIPVER, i2c_read_dataw); dev_dbg(g_dev_ptr,"Read i2c (port = %d, sa7=0x%lx, reg=0x%x) chip ID=%x\n",sensor_port, psensor->i2c_addr, P_MT9X001_CHIPVER, i2c_read_dataw);
//pr_info("Read i2c (port = %d, sa7=0x%lx, reg=0x%x) chip ID=%x\n",sensor_port, psensor->i2c_addr, P_MT9X001_CHIPVER, i2c_read_dataw); //pr_info("Read i2c (port = %d, sa7=0x%lx, reg=0x%x) chip ID=%x\n",sensor_port, psensor->i2c_addr, P_MT9X001_CHIPVER, i2c_read_dataw);
......
...@@ -350,11 +350,12 @@ int pgm_detectsensor (int sensor_port, ///< sensor port number ( ...@@ -350,11 +350,12 @@ int pgm_detectsensor (int sensor_port, ///< sensor port number (
if (check_senspgmin_state(sensor_port)==1){ if (check_senspgmin_state(sensor_port)==1){
dev_info(g_dev_ptr,"No sensors connected to port %d \n",sensor_port); dev_info(g_dev_ptr,"No sensors connected to port %d \n",sensor_port);
// added new line to distinguish no sensor from not yet detected for Boson, avoiding triggerin on change for P_SENSOR // added new line to distinguish no sensor from not yet detected for Boson, avoiding triggerin on change for P_SENSOR
// temporary disabling next two lines
sensor->sensorType=SENSOR_NONE; // to prevent from initializing again sensor->sensorType=SENSOR_NONE; // to prevent from initializing again
return 0; return 0;
} }
} }
// dev_info(g_dev_ptr,"+Got sensor on port %d \n",sensor_port);
//if ((thispars->pars[P_SENSOR]==0) || // multisensor not detected //if ((thispars->pars[P_SENSOR]==0) || // multisensor not detected
// ((thispars->pars[P_SENSOR] & SENSOR_MASK) == SENSOR_MT9X001)) { // or is (from DT) SENSOR_MT9X001 // ((thispars->pars[P_SENSOR] & SENSOR_MASK) == SENSOR_MT9X001)) { // or is (from DT) SENSOR_MT9X001
if ((fpga_interface == FPGA_PAR12) && if ((fpga_interface == FPGA_PAR12) &&
...@@ -370,6 +371,7 @@ int pgm_detectsensor (int sensor_port, ///< sensor port number ( ...@@ -370,6 +371,7 @@ int pgm_detectsensor (int sensor_port, ///< sensor port number (
// ********************************* MT9x00x SENSOR (5MP) ***************************************** // ********************************* MT9x00x SENSOR (5MP) *****************************************
// ************************************************************************************************ // ************************************************************************************************
mt9x001_pgm_detectsensor(sensor_port, sensor, thispars, prevpars, frame16); mt9x001_pgm_detectsensor(sensor_port, sensor, thispars, prevpars, frame16);
// dev_info(g_dev_ptr,"Sensor on port %d -> %ld \n",sensor_port, sensor->sensorType);
// ************************************************************************************************ // ************************************************************************************************
// ************************************************************************************************ // ************************************************************************************************
// ************************************************************************************************ // ************************************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment