diff options
author | Guillaume LECERF <glecerf@gmail.com> | 2010-10-26 05:55:29 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-10-26 06:00:18 -0400 |
commit | b5d194ceaeffce637e88be153794d1c963738ea9 (patch) | |
tree | 8c0647a4e5c91ab35e3e5d720d4ec66ac0b86eef /drivers | |
parent | 89a82280a8e632b7a5b0ce70dd5bccfa2d3bc2c5 (diff) |
mtd: cfi_cmdset_0001: use defined value of P_ID_INTEL_PERFORMANCE instead of hardcoded one
Signed-off-by: Guillaume LECERF <glecerf@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0001.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c index 9e2b7e9e0ad9..ad9268b44416 100644 --- a/drivers/mtd/chips/cfi_cmdset_0001.c +++ b/drivers/mtd/chips/cfi_cmdset_0001.c | |||
@@ -1496,7 +1496,7 @@ static int __xipram do_write_oneword(struct map_info *map, struct flchip *chip, | |||
1496 | 1496 | ||
1497 | switch (mode) { | 1497 | switch (mode) { |
1498 | case FL_WRITING: | 1498 | case FL_WRITING: |
1499 | write_cmd = (cfi->cfiq->P_ID != 0x0200) ? CMD(0x40) : CMD(0x41); | 1499 | write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0x40) : CMD(0x41); |
1500 | break; | 1500 | break; |
1501 | case FL_OTP_WRITE: | 1501 | case FL_OTP_WRITE: |
1502 | write_cmd = CMD(0xc0); | 1502 | write_cmd = CMD(0xc0); |
@@ -1661,7 +1661,7 @@ static int __xipram do_write_buffer(struct map_info *map, struct flchip *chip, | |||
1661 | cmd_adr = adr & ~(wbufsize-1); | 1661 | cmd_adr = adr & ~(wbufsize-1); |
1662 | 1662 | ||
1663 | /* Let's determine this according to the interleave only once */ | 1663 | /* Let's determine this according to the interleave only once */ |
1664 | write_cmd = (cfi->cfiq->P_ID != 0x0200) ? CMD(0xe8) : CMD(0xe9); | 1664 | write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0xe8) : CMD(0xe9); |
1665 | 1665 | ||
1666 | mutex_lock(&chip->mutex); | 1666 | mutex_lock(&chip->mutex); |
1667 | ret = get_chip(map, chip, cmd_adr, FL_WRITING); | 1667 | ret = get_chip(map, chip, cmd_adr, FL_WRITING); |