]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
disk: support devices with HW partitions
authorStephen Warren <swarren@nvidia.com>
Wed, 7 May 2014 18:19:01 +0000 (12:19 -0600)
committerPantelis Antoniou <panto@antoniou-consulting.com>
Fri, 23 May 2014 09:11:31 +0000 (12:11 +0300)
commit336b6f90482f23b149323b698c05c2713fe55701
tree3fb2369003616cde71b794e7f395f0449c78a86b
parent8210a343cd1eb586b72ff396563db15bffed25c5
disk: support devices with HW partitions

Some device types (e.g. eMMC) have hardware-level partitions (for eMMC,
separate boot and user data partitions). This change allows the user to
specify the HW partition they wish to access when passing a device ID to
U-Boot Commands such as part, ls, load, ums, etc.

The syntax allows an optional ".$hwpartid" to be appended to the device
name string for those commands.

Existing syntax, for MMC device 0, default HW partition ID, SW partition
ID 1:

ls mmc 0:1 /

New syntax, for MMC device 0, HW partition ID 1 (boot0), SW partition
ID 2:

ls mmc 0.1:2 /

For my purposes, this is most useful for the ums (USB mass storage
gadget) command, but there's no reason not to allow the new syntax
globally.

This patch adds the core support infra-structure. The next patch will
provide the implementation for MMC.

Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
disk/part.c