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
ea763119
Commit
ea763119
authored
May 04, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init for 10389's PCA9571
parent
6cecbe52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
elphel393-pwr.c
src/drivers/elphel/elphel393-pwr.c
+6
-0
No files found.
src/drivers/elphel/elphel393-pwr.c
View file @
ea763119
...
...
@@ -1226,8 +1226,10 @@ static int elphel393_pwr_probe(struct platform_device *pdev)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
pwr_gpio
);
i
++
)
if
(
pwr_gpio
[
i
].
label
){
clientdata
->
pwr_gpio
[
i
].
label
=
pwr_gpio
[
i
].
label
;
clientdata
->
pwr_gpio
[
i
].
pin
=
base
[
i
>>
3
]
+
(
i
&
7
);
if
(
i
<
16
)
clientdata
->
pwr_gpio
[
i
].
dir
=
0
;
/* input */
else
clientdata
->
pwr_gpio
[
i
].
dir
=
1
;
/* output */
//if (i<16) clientdata->pwr_gpio[i].out_val=0;
//else clientdata->pwr_gpio[i].out_val=1;
...
...
@@ -1260,6 +1262,10 @@ static int elphel393_pwr_probe(struct platform_device *pdev)
*/
pm_power_off
=
shutdown
;
//turn off PCA9571
gpio_10389_ctrl
(
&
pdev
->
dev
,
0xf0f
);
gpio_10389_ctrl
(
&
pdev
->
dev
,
0xf00
);
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