Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
7e83e972
Commit
7e83e972
authored
5 years ago
by
Troy Kisky
Browse files
Options
Downloads
Patches
Plain Diff
son: spl change soc voltage to .9V
Signed-off-by:
Troy Kisky
<
troy.kisky@boundarydevices.com
>
parent
4748acaf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/boundary/son/spl.c
+16
-2
16 additions, 2 deletions
board/boundary/son/spl.c
with
16 additions
and
2 deletions
board/boundary/son/spl.c
+
16
−
2
View file @
7e83e972
...
@@ -146,21 +146,30 @@ int power_init_boundary(void)
...
@@ -146,21 +146,30 @@ int power_init_boundary(void)
i2c_set_bus_num
(
0
);
i2c_set_bus_num
(
0
);
#define PF8100 0x08
#define PF8100 0x08
#define SW1_VOLT 0x51
#define SW2_VOLT 0x59
#define SW2_VOLT 0x59
#define SW3_CONFIG2 0x5e
#define SW3_CONFIG2 0x5e
#define SW3_VOLT 0x61
#define SW3_VOLT 0x61
#define SW4_CONFIG2 0x66
#define SW4_CONFIG2 0x66
#define SW4_VOLT 0x69
#define SW4_VOLT 0x69
#define SW5_VOLT 0x71
#define SW5_VOLT 0x71
#define SW6_VOLT 0x79
buf
[
0
]
=
0x50
;
/* (.90-.4)*160=.50*160=80=0x50 80/160+.4=.90 dram/arm */
buf
[
0
]
=
0x50
;
/* (.90-.4)*160=.50*160=80=0x50 80/160+.4=.90 */
/* dram */
ret
=
i2c_write
(
PF8100
,
SW2_VOLT
,
1
,
buf
,
1
);
ret
=
i2c_write
(
PF8100
,
SW2_VOLT
,
1
,
buf
,
1
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
/* aux_0p9 */
ret
=
i2c_write
(
PF8100
,
SW4_VOLT
,
1
,
buf
,
1
);
ret
=
i2c_write
(
PF8100
,
SW4_VOLT
,
1
,
buf
,
1
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
/* arm */
ret
=
i2c_write
(
PF8100
,
SW3_VOLT
,
1
,
buf
,
1
);
ret
=
i2c_write
(
PF8100
,
SW3_VOLT
,
1
,
buf
,
1
);
if
(
ret
)
return
ret
;
/* soc */
ret
=
i2c_write
(
PF8100
,
SW1_VOLT
,
1
,
buf
,
1
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
/*
/*
...
@@ -173,9 +182,14 @@ int power_init_boundary(void)
...
@@ -173,9 +182,14 @@ int power_init_boundary(void)
ret
=
i2c_write
(
PF8100
,
SW3_CONFIG2
,
1
,
buf
,
1
);
ret
=
i2c_write
(
PF8100
,
SW3_CONFIG2
,
1
,
buf
,
1
);
}
}
buf
[
0
]
=
0x50
;
/* (.90-.4)*160=.50*160=80=0x50 80/160+.4=.90 vpu/gpu */
/* vpu/gpu */
buf
[
0
]
=
0x50
;
/* (.90-.4)*160=.50*160=80=0x50 80/160+.4=.90 */
ret
=
i2c_write
(
PF8100
,
SW5_VOLT
,
1
,
buf
,
1
);
ret
=
i2c_write
(
PF8100
,
SW5_VOLT
,
1
,
buf
,
1
);
/* DRAM_1P1V */
buf
[
0
]
=
0x70
;
/* (1.10-.4)*160=.70*160=112=0x70 112/160+.4=1.10 */
ret
=
i2c_write
(
PF8100
,
SW6_VOLT
,
1
,
buf
,
1
);
gpio_request
(
GP_USDHC2_VSEL
,
"usdhc2_vsel"
);
gpio_request
(
GP_USDHC2_VSEL
,
"usdhc2_vsel"
);
gpio_direction_output
(
GP_USDHC2_VSEL
,
0
);
gpio_direction_output
(
GP_USDHC2_VSEL
,
0
);
return
ret
;
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment