Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
3af48da7
Unverified
Commit
3af48da7
authored
Nov 29, 2018
by
Antonio Niño Díaz
Committed by
GitHub
Nov 29, 2018
Browse files
Merge pull request #1698 from hzhuang1/rm_emmc_delay
Rm emmc delay
parents
051cf889
b79de2dc
Changes
2
Show whitespace changes
Inline
Side-by-side
drivers/mmc/mmc.c
View file @
3af48da7
...
@@ -246,6 +246,13 @@ static int mmc_fill_device_info(void)
...
@@ -246,6 +246,13 @@ static int mmc_fill_device_info(void)
return
ret
;
return
ret
;
}
}
do
{
ret
=
mmc_device_state
();
if
(
ret
<
0
)
{
return
ret
;
}
}
while
(
ret
!=
MMC_STATE_TRAN
);
nb_blocks
=
(
mmc_ext_csd
[
CMD_EXTCSD_SEC_CNT
]
<<
0
)
|
nb_blocks
=
(
mmc_ext_csd
[
CMD_EXTCSD_SEC_CNT
]
<<
0
)
|
(
mmc_ext_csd
[
CMD_EXTCSD_SEC_CNT
+
1
]
<<
8
)
|
(
mmc_ext_csd
[
CMD_EXTCSD_SEC_CNT
+
1
]
<<
8
)
|
(
mmc_ext_csd
[
CMD_EXTCSD_SEC_CNT
+
2
]
<<
16
)
|
(
mmc_ext_csd
[
CMD_EXTCSD_SEC_CNT
+
2
]
<<
16
)
|
...
...
plat/hisilicon/hikey/hikey_bl2_setup.c
View file @
3af48da7
...
@@ -336,7 +336,6 @@ void bl2_platform_setup(void)
...
@@ -336,7 +336,6 @@ void bl2_platform_setup(void)
params
.
flags
=
MMC_FLAG_CMD23
;
params
.
flags
=
MMC_FLAG_CMD23
;
info
.
mmc_dev_type
=
MMC_IS_EMMC
;
info
.
mmc_dev_type
=
MMC_IS_EMMC
;
dw_mmc_init
(
&
params
,
&
info
);
dw_mmc_init
(
&
params
,
&
info
);
mdelay
(
20
);
hikey_io_setup
();
hikey_io_setup
();
}
}
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