Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
U
uboot-imx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Librem5
uboot-imx
Commits
351c708c
Commit
351c708c
authored
Nov 09, 2020
by
Angus Ainslie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'move_fuses' into 'librem5'
Move the board rev to the MAC address fuses See merge request
!37
parents
9a62f4df
7f491876
Pipeline
#60720
passed with stage
in 5 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
board/purism/librem5/librem5.c
board/purism/librem5/librem5.c
+3
-5
No files found.
board/purism/librem5/librem5.c
View file @
351c708c
...
...
@@ -568,15 +568,13 @@ int fastboot_key_pressed(void)
int
board_late_init
(
void
)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
u32
vid
,
rev
;
u32
rev
;
char
rev_str
[
3
];
env_set
(
"board_name"
,
"librem5"
);
if
(
fuse_read
(
8
,
2
,
&
vid
)
||
fuse_read
(
14
,
0
,
&
rev
))
if
(
fuse_read
(
9
,
0
,
&
rev
))
{
env_set
(
"board_rev"
,
BOARD_REV_ERROR
);
else
if
(
vid
==
0
)
{
env_set
(
"board_rev"
,
BOARD_REV_UNKNOWN
);
}
else
if
(
vid
==
(
PURISM_PID
<<
16
|
PURISM_VID
))
{
}
else
{
sprintf
(
rev_str
,
"%u"
,
rev
);
env_set
(
"board_rev"
,
rev_str
);
}
...
...
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