"...git@web.lueluesay.top:root/aufs5-standalone.git" did not exist on "d52a61daefbdfb38282554ee361cd70121fdfa8a"
Commit 82bd9504 authored by Ben Gardiner's avatar Ben Gardiner Committed by Chris Ball
Browse files

extract definitions for EXT_CSD register EXT_CSD_PARTITIONING_SUPPORT


Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 61177553
...@@ -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)
......
...@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment