summaryrefslogtreecommitdiff
path: root/include/mci.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-05-18 14:01:15 +0200
committerLucas Stach <l.stach@pengutronix.de>2017-07-06 14:43:00 +0200
commit154154bce5b1b18382e57920a399f2c54d1fa19f (patch)
treee0276871e5cbc87fe18104790e48c82494343ac1 /include/mci.h
parent5d4aa5383240cc90c109445dc45b617b1023e4f7 (diff)
downloadbarebox-154154bce5b1b18382e57920a399f2c54d1fa19f.tar.gz
mmc_extcsd command: rework
This patch is a rework of the mmc_extcsd command: - Always print registers. Previously we never printed registers that were already present in an older version of the spec - Put register names, access type and width into an array indexed by the register number - Print multibyte registers only once with the resulting value, and not bytewise. There's still more to cleanup, like for example we want to write multibyte registers once with the complete value, not bytewise. Anyway, this is a start. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'include/mci.h')
-rw-r--r--include/mci.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/mci.h b/include/mci.h
index bc7d9c95b2..d3115e8cc6 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -160,7 +160,7 @@
#define EXT_CSD_POWER_OFF_NOTIFICATION 34 /* R/W */
#define EXT_CSD_PACKED_FAILURE_INDEX 35 /* RO */
#define EXT_CSD_PACKED_COMMAND_STATUS 36 /* RO */
-#define EXT_CSD_CONTEXT_CONF 37 /* R/W, 15 bytes */
+#define EXT_CSD_CONTEXT_CONF(index) (37 + (index) - 1) /* R/W, 15 bytes */
#define EXT_CSD_EXT_PARTITIONS_ATTRIBUTE 52 /* R/W, 2 bytes */
#define EXT_CSD_EXCEPTION_EVENTS_STATUS 54 /* RO, 2 bytes */
#define EXT_CSD_EXCEPTION_EVENTS_CTRL 56 /* R/W, 2 bytes */
@@ -176,7 +176,10 @@
#define EXT_CSD_SEC_BAD_BLK_MGMNT 134 /* R/W */
#define EXT_CSD_ENH_START_ADDR 136 /* R/W, 4 bytes */
#define EXT_CSD_ENH_SIZE_MULT 140 /* R/W, 3 bytes */
-#define EXT_CSD_GP_SIZE_MULT 143 /* R/W */
+#define EXT_CSD_GP_SIZE_MULT0 143 /* R/W */
+#define EXT_CSD_GP_SIZE_MULT1 146 /* R/W */
+#define EXT_CSD_GP_SIZE_MULT2 149 /* R/W */
+#define EXT_CSD_GP_SIZE_MULT3 152 /* R/W */
#define EXT_CSD_PARTITION_SETTING_COMPLETED 155 /* R/W */
#define EXT_CSD_PARTITIONS_ATTRIBUTE 156 /* R/W */
#define EXT_CSD_MAX_ENH_SIZE_MULT 157 /* RO, 3 bytes */