Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
u-boot-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
u-boot-seco-imx
Commits
a6776876
Project 'edgehog/bsp/nxp/u-boot-seco-imx' was moved to 'clea-os/bsp/nxp/u-boot-seco-imx'. Please update any links and bookmarks that may still have the old path.
Commit
a6776876
authored
1 year ago
by
Nicola Sparnacci
Browse files
Options
Downloads
Patches
Plain Diff
[SANTINO] Fix usdhc index in the board file
parent
413e18fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/seco/imx6dl_santino/imx6dl_santino.c
+7
-6
7 additions, 6 deletions
board/seco/imx6dl_santino/imx6dl_santino.c
with
7 additions
and
6 deletions
board/seco/imx6dl_santino/imx6dl_santino.c
+
7
−
6
View file @
a6776876
...
...
@@ -170,7 +170,6 @@ int board_mmc_getcd(struct mmc *mmc)
{
struct
fsl_esdhc_cfg
*
cfg
=
(
struct
fsl_esdhc_cfg
*
)
mmc
->
priv
;
int
ret
=
0
;
switch
(
cfg
->
esdhc_base
)
{
case
USDHC2_BASE_ADDR
:
ret
=
!
gpio_get_value
(
USDHC2_CD_GPIO
);
...
...
@@ -184,26 +183,28 @@ int board_mmc_getcd(struct mmc *mmc)
int
board_mmc_init
(
struct
bd_info
*
bis
)
{
struct
src
*
psrc
=
(
struct
src
*
)
SRC_BASE_ADDR
;
unsigned
reg_noshift
=
readl
(
&
psrc
->
sbmr1
);
unsigned
reg
=
readl
(
&
psrc
->
sbmr1
)
>>
11
;
/*
* Upon reading BOOT_CFG register the following map is done:
* Bit 11 and 12 of BOOT_CFG register can determine the current
* mmc port
* 0x
2
SD
3
* 0x
1
SD
2
* 0x3 SD4
*/
int
ret
=
0
;
int
index
=
0
;
switch
(
reg
&
0x3
)
{
case
2
:
case
0x1
:
index
=
0
;
break
;
case
0x3
:
index
=
1
;
break
;
case
3
:
index
=
0
;
default:
break
;
}
printf
(
"%s: %d
\n
"
,
__func__
,
__LINE__
);
print_boot_device
(
);
imx_iomux_v3_setup_multiple_pads
(
usdhc_list_spl
[
index
].
pad
,
...
...
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