summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2010-05-12 22:49:24 +0800
committerTerry Lv <r65388@freescale.com>2010-06-24 16:54:31 +0800
commit90bfe6af18c84a7e3ba424cba0c2602d883bd286 (patch)
tree815e35b0cefc847806cef9a8df09bdad1c3955ad /drivers/mtd/spi
parent6fa1a0ea0c589b327e8106d13ffff115d2553284 (diff)
downloadu-boot-imx-90bfe6af18c84a7e3ba424cba0c2602d883bd286.zip
u-boot-imx-90bfe6af18c84a7e3ba424cba0c2602d883bd286.tar.gz
u-boot-imx-90bfe6af18c84a7e3ba424cba0c2602d883bd286.tar.bz2
ENGR00122651: Add dwc_ahsata support
Add dwc_ahsata support. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'drivers/mtd/spi')
-rw-r--r--drivers/mtd/spi/imx_spi_nor_atmel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/spi/imx_spi_nor_atmel.c b/drivers/mtd/spi/imx_spi_nor_atmel.c
index 19a5197..5575498 100644
--- a/drivers/mtd/spi/imx_spi_nor_atmel.c
+++ b/drivers/mtd/spi/imx_spi_nor_atmel.c
@@ -100,13 +100,13 @@ static s32 spi_nor_status(struct spi_flash *flash)
return g_rx_buf[0];
}
+#if 0
/*!
* Erase a block_size data from block_addr offset in the flash
*/
static int spi_nor_erase_page(struct spi_flash *flash,
void *page_addr)
{
- u32 *cmd = (u32 *)g_tx_buf;
u32 addr = (u32)page_addr;
if ((addr & 512) != 0) {
@@ -127,6 +127,7 @@ static int spi_nor_erase_page(struct spi_flash *flash,
return 0;
}
+#endif
static int spi_nor_flash_read(struct spi_flash *flash, u32 offset,
size_t len, void *buf)