]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd_nand: some infrastructure fixes and refactoring
authorScott Wood <scottwood@freescale.com>
Mon, 2 Aug 2010 18:04:24 +0000 (13:04 -0500)
committerScott Wood <scottwood@freescale.com>
Mon, 11 Oct 2010 20:09:54 +0000 (15:09 -0500)
commitea533c260a801c4e51f92f75165cebe6d7b01e35
treea445ddd13f93806631e2305ec62a5aa8149edcdf
parentf9a5254111a6be2a39464f65a96f4fc2305e3c76
cmd_nand: some infrastructure fixes and refactoring

- If the current device is overridden by a named partition,
  - update the caller's pointer/index, rather than copy over the
    nand_info struct, and
  - be sure to call board_nand_select_device even when the device
    is overridden by a named partition.
- Support 64-bit offsets/sizes in a few more places.
- Refactor arg_off_size for added readability and flexibility,
  and some added checks such as partition size.
- Remove redundant check for bad subcommands -- if there's no match
  it'll print usage when it gets to the end anyway.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
common/cmd_nand.c