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
Mmc Utils
Commits
34a954b8
Commit
34a954b8
authored
Mar 14, 2017
by
Boris Schmidt
Committed by
Chris Ball
Mar 16, 2017
Browse files
mmc-utils: feature spec 5.0+, device life time estimation for MLC and pSLC mode
Signed-off-by:
Boris Schmidt
<
boris.schmidt@siemens.com
>
parent
2cb6695e
Changes
2
Show whitespace changes
Inline
Side-by-side
mmc.h
View file @
34a954b8
...
@@ -61,6 +61,8 @@
...
@@ -61,6 +61,8 @@
#define EXT_CSD_NUM_OF_FW_SEC_PROG_2 304
/* RO */
#define EXT_CSD_NUM_OF_FW_SEC_PROG_2 304
/* RO */
#define EXT_CSD_NUM_OF_FW_SEC_PROG_1 303
/* RO */
#define EXT_CSD_NUM_OF_FW_SEC_PROG_1 303
/* RO */
#define EXT_CSD_NUM_OF_FW_SEC_PROG_0 302
/* RO */
#define EXT_CSD_NUM_OF_FW_SEC_PROG_0 302
/* RO */
#define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B 269
/* RO */
#define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A 268
/* RO */
#define EXT_CSD_FIRMWARE_VERSION 254
/* RO */
#define EXT_CSD_FIRMWARE_VERSION 254
/* RO */
#define EXT_CSD_CACHE_SIZE_3 252
#define EXT_CSD_CACHE_SIZE_3 252
#define EXT_CSD_CACHE_SIZE_2 251
#define EXT_CSD_CACHE_SIZE_2 251
...
...
mmc_cmds.c
View file @
34a954b8
...
@@ -1738,6 +1738,16 @@ int do_read_extcsd(int nargs, char **argv)
...
@@ -1738,6 +1738,16 @@ int do_read_extcsd(int nargs, char **argv)
(
char
*
)
&
ext_csd
[
EXT_CSD_FIRMWARE_VERSION
]);
(
char
*
)
&
ext_csd
[
EXT_CSD_FIRMWARE_VERSION
]);
}
}
if
(
ext_csd_rev
>=
7
)
{
printf
(
"eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x%02x
\n
"
,
ext_csd
[
EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A
]);
}
if
(
ext_csd_rev
>=
7
)
{
printf
(
"eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x%02x
\n
"
,
ext_csd
[
EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B
]);
}
if
(
ext_csd_rev
>=
8
)
{
if
(
ext_csd_rev
>=
8
)
{
printf
(
"Command Queue Support [CMDQ_SUPPORT]: 0x%02x
\n
"
,
printf
(
"Command Queue Support [CMDQ_SUPPORT]: 0x%02x
\n
"
,
ext_csd
[
EXT_CSD_CMDQ_SUPPORT
]);
ext_csd
[
EXT_CSD_CMDQ_SUPPORT
]);
...
...
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