Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
imx
u-boot-imx
Commits
6548a326
Commit
6548a326
authored
Nov 20, 2020
by
Thomas Schäfer
Browse files
pitx-imx8m: spl: show detected memory variant
Signed-off-by:
Thomas Schaefer
<
thomas.schaefer@kontron.com
>
parent
aaef53f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
board/kontron/pitx-imx8m/spl.c
View file @
6548a326
...
...
@@ -42,6 +42,8 @@ static phys_size_t get_memory_variant(void)
variant
=
(
gpio_get_value
(
IMX_GPIO_NR
(
5
,
0
))
|
gpio_get_value
(
IMX_GPIO_NR
(
5
,
1
))
<<
1
)
&
0x3
;
printf
(
"Memory variant %d (%s) detected
\n
"
,
variant
,
variant
==
2
?
"2 GiB"
:
"4 GiB"
);
switch
(
variant
)
{
case
3
:
return
SZ_4G
;
...
...
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