mtd: OneNAND: S5PC100: Only S5PC110 use the command map method

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Oct 24 20:59:08 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=aa6d1c0e15948894978b342da45d91f5a2af9933
Commit:     aa6d1c0e15948894978b342da45d91f5a2af9933
Parent:     c76268021e04e4313cd3a32242826f6a93388e2d
Author:     Kyungmin Park <kyungmin.park at samsung.com>
AuthorDate: Tue Sep 28 19:27:00 2010 +0900
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Oct 25 00:51:01 2010 +0100

    mtd: OneNAND: S5PC100: Only S5PC110 use the command map method
    
    After S5PC110 use the generic method for OneNAND.
    
    Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/onenand/samsung.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index b801280..285085a 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -58,7 +58,7 @@ enum soc_type {
 #define MAP_11				(0x3)
 
 #define S3C64XX_CMD_MAP_SHIFT		24
-#define S5PC1XX_CMD_MAP_SHIFT		26
+#define S5PC100_CMD_MAP_SHIFT		26
 
 #define S3C6400_FBA_SHIFT		10
 #define S3C6400_FPA_SHIFT		4
@@ -191,7 +191,7 @@ static unsigned int s3c64xx_cmd_map(unsigned type, unsigned val)
 
 static unsigned int s5pc1xx_cmd_map(unsigned type, unsigned val)
 {
-	return (type << S5PC1XX_CMD_MAP_SHIFT) | val;
+	return (type << S5PC100_CMD_MAP_SHIFT) | val;
 }
 
 static unsigned int s3c6400_mem_addr(int fba, int fpa, int fsa)



More information about the linux-mtd-cvs mailing list