Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Eric Kuzmenko
uboot-imx
Commits
d1441b95
Commit
d1441b95
authored
Mar 14, 2019
by
Eric Kuzmenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 0x6b for the charge controller's slave address isntead of 0x68 (RTC's slave address)
parent
52cf86c8
Pipeline
#5033
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
board/emcraft/imx8m_som/spl.c
board/emcraft/imx8m_som/spl.c
+3
-3
No files found.
board/emcraft/imx8m_som/spl.c
View file @
d1441b95
...
...
@@ -213,12 +213,12 @@ void init_charger_bq25896(void)
u8
val
;
/* limit the charge current to 1.6A */
i2c_reg_write
(
0x6
8
,
0x12
,
0x20
);
i2c_reg_write
(
0x6
b
,
0x12
,
0x20
);
/* set the max voltage to 4.912V */
val
=
i2c_reg_read
(
0x6
8
,
0x6
);
val
=
i2c_reg_read
(
0x6
b
,
0x6
);
val
=
(
val
&
0xFC
)
|
0x16
<<
2
;
i2c_reg_write
(
0x6
8
,
0x6
,
val
);
i2c_reg_write
(
0x6
b
,
0x6
,
val
);
}
#define LDO_VOLT_EN (1 << 6)
...
...
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