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
187a94c8
Commit
187a94c8
authored
Sep 29, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
merged with master
parents
7d533e3a
1275e922
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
elphel393_1_mt9p006.dts
src/arch/arm/boot/dts/elphel393_1_mt9p006.dts
+2
-0
elphel393_4_mt9p006.dts
src/arch/arm/boot/dts/elphel393_4_mt9p006.dts
+2
-0
elphel393_eyesis.dts
src/arch/arm/boot/dts/elphel393_eyesis.dts
+2
-0
elphel393-pwr.c
src/drivers/elphel/elphel393-pwr.c
+17
-5
No files found.
src/arch/arm/boot/dts/elphel393_1_mt9p006.dts
View file @
187a94c8
...
...
@@ -181,6 +181,8 @@
elphel393_pwr,pinstrapped_oven= <1>;
elphel393_pwr,vcc_sens01_mv= <2800>; /* set sensor intreface voltage to 2.8V */
elphel393_pwr,channels_enable= "vp5";
/* high byte - enable bits, low byte - value */
elphel393_pwr,10389-init-value= <0x100>;
/* elphel393_pwr,channels_enable= "vcc_sens01 vp33sens01"; */
} ;
...
...
src/arch/arm/boot/dts/elphel393_4_mt9p006.dts
View file @
187a94c8
...
...
@@ -181,6 +181,8 @@
elphel393_pwr,pinstrapped_oven= <1>;
elphel393_pwr,vcc_sens01_mv= <2800>; /* set sensor intreface voltage to 2.8V */
elphel393_pwr,channels_enable= "vp5";
/* high byte - enable bits, low byte - value */
elphel393_pwr,10389-init-value= <0x100>;
/* elphel393_pwr,channels_enable= "vcc_sens01 vp33sens01"; */
} ;
...
...
src/arch/arm/boot/dts/elphel393_eyesis.dts
View file @
187a94c8
...
...
@@ -181,6 +181,8 @@
elphel393_pwr,pinstrapped_oven= <1>;
elphel393_pwr,vcc_sens01_mv= <2800>; /* set sensor intreface voltage to 2.8V */
elphel393_pwr,channels_enable= "vp5";
/* high byte - enable bits, low byte - value */
elphel393_pwr,10389-init-value= <0x100>;
/* elphel393_pwr,channels_enable= "vcc_sens01 vp33sens01"; */
} ;
...
...
src/drivers/elphel/elphel393-pwr.c
View file @
187a94c8
...
...
@@ -1172,6 +1172,22 @@ static void elphel393_pwr_init_of(struct platform_device *pdev)
dev_info
(
&
pdev
->
dev
,
"elphel393_pwr configuration done
\n
"
);
}
static
void
gpio_10389_initialize
(
struct
platform_device
*
pdev
){
const
__be32
*
config_data
;
int
len
,
init_value
;
struct
device_node
*
node
=
pdev
->
dev
.
of_node
;
config_data
=
of_get_property
(
node
,
"elphel393_pwr,10389-init-value"
,
&
len
);
if
(
config_data
&&
(
len
>
0
)){
init_value
=
be32_to_cpup
(
&
config_data
[
0
]);
pr_debug
(
"Found elphel393_pwr,10389-init-value=<%d>
\n
"
,
init_value
);
//reset for the gpios that are 1's on power on but 0's in the driver which cannot read them
gpio_10389_ctrl
(
&
pdev
->
dev
,
(
init_value
&
0xf00
)
|
0xff
);
gpio_10389_ctrl
(
&
pdev
->
dev
,
init_value
);
}
}
static
int
device_by_i2c_addr_match
(
struct
device
*
dev
,
void
*
data
)
{
struct
i2c_client
*
client
=
to_i2c_client
(
dev
);
...
...
@@ -1306,13 +1322,9 @@ static int elphel393_pwr_probe(struct platform_device *pdev)
*/
pm_power_off
=
shutdown
;
/*
if
(
base
[
2
]
!=
NULL
){
//turn off PCA9571
gpio_10389_ctrl(&pdev->dev, 0xf0f);
gpio_10389_ctrl(&pdev->dev, 0xf00);
gpio_10389_initialize
(
pdev
);
}
*/
return
0
;
}
...
...
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