mmc: core: Extend sysfs to ext_csd parameters for RPMB support

Extend current sysfs access to ext_csd rpmb parameters (RPMB partition
size) and rel_sector information.

Signed-off-by: Loic Pallardy <[email protected]>
Reviewed-by: Namjae Jeon <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Acked-by: Johan Rudholm <[email protected]>
Acked-by: Krishna Konda <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
Loic Pallardy 2012-08-06 17:12:29 +02:00 • committed by Chris Ball
commit 188cc0424e
2 changed files with 11 additions and 0 deletions

View file

@ -25,6 +25,8 @@ All attributes are read-only.
serial Product Serial Number (from CID Register)
erase_size Erase group size
preferred_erase_size Preferred erase size
raw_rpmb_size_mult RPMB partition size
rel_sectors Reliable write sector count
Note on Erase Size and Preferred Erase Size:
@ -65,6 +67,11 @@ Note on Erase Size and Preferred Erase Size:
"preferred_erase_size" is in bytes.
Note on raw_rpmb_size_mult:
"raw_rpmb_size_mult" is a mutliple of 128kB block.
RPMB size in byte is calculated by using the following equation:
RPMB partition size = 128kB x raw_rpmb_size_mult
SD/MMC/SDIO Clock Gating Attribute
==================================