]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nand: consolidate duplicated constants
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 22 Aug 2012 21:49:44 +0000 (16:49 -0500)
committerScott Wood <scottwood@freescale.com>
Mon, 17 Sep 2012 22:33:42 +0000 (17:33 -0500)
NAND_CMD_ constants for lock/unlock should be in the header

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/nand_util.c
include/linux/mtd/nand.h

index 5ef7df74010bde3251416d2ca7b08c0fa1848efc..ffcb4f6ab9a78a5fe4b155faede6e81fad77db1f 100644 (file)
@@ -207,12 +207,6 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
  * Support for locking / unlocking operations of some NAND devices
  *****************************************************************************/
 
-#define NAND_CMD_LOCK          0x2a
-#define NAND_CMD_LOCK_TIGHT    0x2c
-#define NAND_CMD_UNLOCK1       0x23
-#define NAND_CMD_UNLOCK2       0x24
-#define NAND_CMD_LOCK_STATUS   0x7a
-
 /**
  * nand_lock: Set all pages of NAND flash chip to the LOCK or LOCK-TIGHT
  *           state
index 82704de0835561907e5d77467c7c27458890f2e4..6c4053151e87144696ba00428a99bf933e685c56 100644 (file)
@@ -85,8 +85,10 @@ extern void nand_wait_ready(struct mtd_info *mtd);
 #define NAND_CMD_RESET         0xff
 
 #define NAND_CMD_LOCK          0x2a
+#define NAND_CMD_LOCK_TIGHT    0x2c
 #define NAND_CMD_UNLOCK1       0x23
 #define NAND_CMD_UNLOCK2       0x24
+#define NAND_CMD_LOCK_STATUS   0x7a
 
 /* Extended commands for large page devices */
 #define NAND_CMD_READSTART     0x30