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
82bd9504
Commit
82bd9504
authored
Jun 27, 2013
by
Ben Gardiner
Committed by
Chris Ball
Jun 27, 2013
Browse files
extract definitions for EXT_CSD register EXT_CSD_PARTITIONING_SUPPORT
Signed-off-by:
Chris Ball
<
cjb@laptop.org
>
parent
61177553
Changes
2
Show whitespace changes
Inline
Side-by-side
mmc.h
View file @
82bd9504
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
#define EXT_CSD_SANITIZE_START 165
#define EXT_CSD_SANITIZE_START 165
#define EXT_CSD_BKOPS_EN 163
/* R/W */
#define EXT_CSD_BKOPS_EN 163
/* R/W */
#define EXT_CSD_RST_N_FUNCTION 162
/* R/W */
#define EXT_CSD_RST_N_FUNCTION 162
/* R/W */
#define EXT_CSD_PARTITIONING_SUPPORT 160
/* RO */
#define EXT_CSD_NATIVE_SECTOR_SIZE 63
/* R */
#define EXT_CSD_NATIVE_SECTOR_SIZE 63
/* R */
#define EXT_CSD_USE_NATIVE_SECTOR 62
/* R/W */
#define EXT_CSD_USE_NATIVE_SECTOR 62
/* R/W */
#define EXT_CSD_DATA_SECTOR_SIZE 61
/* R */
#define EXT_CSD_DATA_SECTOR_SIZE 61
/* R */
...
@@ -82,6 +83,8 @@
...
@@ -82,6 +83,8 @@
#define EXT_CSD_PART_CONFIG_ACC_BOOT1 (0x2)
#define EXT_CSD_PART_CONFIG_ACC_BOOT1 (0x2)
#define EXT_CSD_PART_CONFIG_ACC_USER_AREA (0x7)
#define EXT_CSD_PART_CONFIG_ACC_USER_AREA (0x7)
#define EXT_CSD_PART_CONFIG_ACC_ACK (0x40)
#define EXT_CSD_PART_CONFIG_ACC_ACK (0x40)
#define EXT_CSD_PARTITIONING_EN (1<<0)
#define EXT_CSD_ENH_ATTRIBUTE_EN (1<<1)
/* From kernel linux/mmc/core.h */
/* From kernel linux/mmc/core.h */
#define MMC_RSP_PRESENT (1 << 0)
#define MMC_RSP_PRESENT (1 << 0)
...
...
mmc_cmds.c
View file @
82bd9504
...
@@ -660,14 +660,14 @@ int do_read_extcsd(int nargs, char **argv)
...
@@ -660,14 +660,14 @@ int do_read_extcsd(int nargs, char **argv)
printf
(
"H/W reset function"
printf
(
"H/W reset function"
" [RST_N_FUNCTION]: 0x%02x
\n
"
,
ext_csd
[
162
]);
" [RST_N_FUNCTION]: 0x%02x
\n
"
,
ext_csd
[
162
]);
printf
(
"HPI management [HPI_MGMT]: 0x%02x
\n
"
,
ext_csd
[
161
]);
printf
(
"HPI management [HPI_MGMT]: 0x%02x
\n
"
,
ext_csd
[
161
]);
reg
=
ext_csd
[
160
];
reg
=
ext_csd
[
EXT_CSD_PARTITIONING_SUPPORT
];
printf
(
"Partitioning Support [PARTITIONING_SUPPORT]: 0x%02x
\n
"
,
printf
(
"Partitioning Support [PARTITIONING_SUPPORT]: 0x%02x
\n
"
,
reg
);
reg
);
if
(
reg
&
0x1
)
if
(
reg
&
EXT_CSD_PARTITIONING_EN
)
printf
(
" Device support partitioning feature
\n
"
);
printf
(
" Device support partitioning feature
\n
"
);
else
else
printf
(
" Device NOT support partitioning feature
\n
"
);
printf
(
" Device NOT support partitioning feature
\n
"
);
if
(
reg
&
0x2
)
if
(
reg
&
EXT_CSD_ENH_ATTRIBUTE_EN
)
printf
(
" Device can have enhanced tech.
\n
"
);
printf
(
" Device can have enhanced tech.
\n
"
);
else
else
printf
(
" Device cannot have enhanced tech.
\n
"
);
printf
(
" Device cannot have enhanced tech.
\n
"
);
...
...
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