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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
4b9d8552
Commit
4b9d8552
authored
4 years ago
by
minute
Browse files
Options
Downloads
Patches
Plain Diff
reform2: hack to force sd/emmc to 4 bits and non-removable
parent
32913755
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/mmc/fsl_esdhc_imx.c
+15
-5
15 additions, 5 deletions
drivers/mmc/fsl_esdhc_imx.c
with
15 additions
and
5 deletions
drivers/mmc/fsl_esdhc_imx.c
+
15
−
5
View file @
4b9d8552
...
...
@@ -1389,6 +1389,8 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
struct
mmc
*
mmc
;
int
ret
;
printf
(
"(imx) fsl_esdhc_initialize: %p
\n
"
,
cfg
);
if
(
!
cfg
)
return
-
EINVAL
;
...
...
@@ -1438,6 +1440,8 @@ int fsl_esdhc_mmc_init(bd_t *bis)
{
struct
fsl_esdhc_cfg
*
cfg
;
printf
(
"fsl_esdhc_mmc_init
\n
"
);
cfg
=
calloc
(
sizeof
(
struct
fsl_esdhc_cfg
),
1
);
cfg
->
esdhc_base
=
CONFIG_SYS_FSL_ESDHC_ADDR
;
cfg
->
sdhc_clk
=
gd
->
arch
.
sdhc_clk
;
...
...
@@ -1501,6 +1505,8 @@ static int fsl_esdhc_probe(struct udevice *dev)
#endif
int
ret
;
printf
(
"(imx) fsl_esdhc_probe
\n
"
);
addr
=
dev_read_addr
(
dev
);
if
(
addr
==
FDT_ADDR_T_NONE
)
return
-
EINVAL
;
...
...
@@ -1526,22 +1532,26 @@ static int fsl_esdhc_probe(struct udevice *dev)
else
priv
->
c
.
bus_width
=
1
;
// FIXME hack
priv
->
c
.
bus_width
=
4
;
val
=
fdtdec_get_int
(
fdt
,
node
,
"fsl,tuning-step"
,
1
);
priv
->
tuning_step
=
val
;
val
=
fdtdec_get_int
(
fdt
,
node
,
"fsl,tuning-start-tap"
,
ESDHC_TUNING_START_TAP_DEFAULT
);
ESDHC_TUNING_START_TAP_DEFAULT
);
priv
->
tuning_start_tap
=
val
;
val
=
fdtdec_get_int
(
fdt
,
node
,
"fsl,strobe-dll-delay-target"
,
ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_DEFAULT
);
ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_DEFAULT
);
priv
->
strobe_dll_delay_target
=
val
;
if
(
dev_read_bool
(
dev
,
"non-removable"
))
{
// FIXME hack
if
(
1
||
dev_read_bool
(
dev
,
"non-removable"
))
{
priv
->
non_removable
=
1
;
}
else
{
}
else
{
priv
->
non_removable
=
0
;
#ifdef CONFIG_DM_GPIO
gpio_request_by_name
(
dev
,
"cd-gpios"
,
0
,
&
priv
->
cd_gpio
,
GPIOD_IS_IN
);
GPIOD_IS_IN
);
#endif
}
...
...
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