NAND: Make page, erase, oob size available via cmd_nand
authorMarek Vasut <marek.vasut@gmail.com>
Thu, 22 Sep 2011 01:57:26 +0000 (03:57 +0200)
committerScott Wood <scottwood@freescale.com>
Mon, 3 Oct 2011 23:35:12 +0000 (18:35 -0500)
commitce80ddc1809193bc450b4d1e104d1ab2f9ee8dd2
tree5480eff5e27a0fd7a905a71aed2234c06a3d9e06
parent17d261df18acfab96dcb5e0e078d2fe81a7d70ad
NAND: Make page, erase, oob size available via cmd_nand

The "nand info" and "nand device" now set shell/environment variables:
nand_writesize ... nand page size
nand_oobsize ..... nand oob area size
nand_erasesize ... nand erase block size

Also, the "nand info" command now displays this info.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
[scottwood@freescale.com: removed unnecessary memsets]
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/cmd_nand.c