Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
2ca21075
Commit
2ca21075
authored
Apr 09, 2022
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Was debugging, commented new debug out
parent
bf06826b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
mt9x001.c
src/drivers/elphel/mt9x001.c
+1
-0
pgm_functions.c
src/drivers/elphel/pgm_functions.c
+3
-1
No files found.
src/drivers/elphel/mt9x001.c
View file @
2ca21075
...
...
@@ -883,6 +883,7 @@ int mt9x001_pgm_detectsensor (int sensor_port, ///< sensor port
sensio_ctl
.
mmcm_rst
=
0
;
x393_sensio_ctrl
(
sensio_ctl
,
sensor_port
);
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
);
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);
...
...
src/drivers/elphel/pgm_functions.c
View file @
2ca21075
...
...
@@ -350,11 +350,12 @@ int pgm_detectsensor (int sensor_port, ///< sensor port number (
if
(
check_senspgmin_state
(
sensor_port
)
==
1
){
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
// temporary disabling next two lines
sensor
->
sensorType
=
SENSOR_NONE
;
// to prevent from initializing again
return
0
;
}
}
// dev_info(g_dev_ptr,"+Got sensor on port %d \n",sensor_port);
//if ((thispars->pars[P_SENSOR]==0) || // multisensor not detected
// ((thispars->pars[P_SENSOR] & SENSOR_MASK) == SENSOR_MT9X001)) { // or is (from DT) SENSOR_MT9X001
if
((
fpga_interface
==
FPGA_PAR12
)
&&
...
...
@@ -370,6 +371,7 @@ int pgm_detectsensor (int sensor_port, ///< sensor port number (
// ********************************* MT9x00x SENSOR (5MP) *****************************************
// ************************************************************************************************
mt9x001_pgm_detectsensor
(
sensor_port
,
sensor
,
thispars
,
prevpars
,
frame16
);
// dev_info(g_dev_ptr,"Sensor on port %d -> %ld \n",sensor_port, sensor->sensorType);
// ************************************************************************************************
// ************************************************************************************************
// ************************************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment