summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/atmel.c
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-08-15 18:44:25 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2012-09-17 18:50:47 +0200
commit053a4d1f5d6be74288460b8fceaa09ba3e35768c (patch)
treee28796fde0520ccf6a723d3892b0fce0a9d1739e /drivers/mtd/spi/atmel.c
parentb9c83c68151636656c15d069397a716932872bd7 (diff)
downloadu-boot-imx-053a4d1f5d6be74288460b8fceaa09ba3e35768c.zip
u-boot-imx-053a4d1f5d6be74288460b8fceaa09ba3e35768c.tar.gz
u-boot-imx-053a4d1f5d6be74288460b8fceaa09ba3e35768c.tar.bz2
spi: add atmel at25df321 serial flash support
Add atmel at25df321 serial flash support Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'drivers/mtd/spi/atmel.c')
-rw-r--r--drivers/mtd/spi/atmel.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mtd/spi/atmel.c b/drivers/mtd/spi/atmel.c
index 1ecece0..89ebe9d 100644
--- a/drivers/mtd/spi/atmel.c
+++ b/drivers/mtd/spi/atmel.c
@@ -109,6 +109,14 @@ static const struct atmel_spi_flash_params atmel_spi_flash_table[] = {
.nr_sectors = 32,
.name = "AT45DB642D",
},
+ {
+ .idcode1 = 0x47,
+ .l2_page_size = 8,
+ .pages_per_block = 16,
+ .blocks_per_sector = 16,
+ .nr_sectors = 64,
+ .name = "AT25DF321",
+ },
};
static int at45_wait_ready(struct spi_flash *flash, unsigned long timeout)
@@ -515,6 +523,8 @@ struct spi_flash *spi_flash_probe_atmel(struct spi_slave *spi, u8 *idcode)
case DF_FAMILY_AT26F:
case DF_FAMILY_AT26DF:
asf->flash.read = spi_flash_cmd_read_fast;
+ asf->flash.write = dataflash_write_p2;
+ asf->flash.erase = dataflash_erase_p2;
break;
default: