Skip to content

Commit

Permalink
mtd: OneNAND: S5PC100: Only S5PC110 use the command map method
Browse files Browse the repository at this point in the history
After S5PC110 use the generic method for OneNAND.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Kyungmin Park authored and David Woodhouse committed Oct 24, 2010
1 parent c762680 commit aa6d1c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/onenand/samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit aa6d1c0

Please sign in to comment.