summaryrefslogtreecommitdiff
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-02 19:38:49 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-07 17:55:49 +0530
commita5e8199a13a61eab0a0da9217e74dacd190fcaba (patch)
tree43fedf767c70b835afd219ec0144eedf9604d173 /include/spi_flash.h
parent30b0ca631895b1bcaa19dfe605f347564e56d1b7 (diff)
downloadu-boot-imx-a5e8199a13a61eab0a0da9217e74dacd190fcaba.zip
u-boot-imx-a5e8199a13a61eab0a0da9217e74dacd190fcaba.tar.gz
u-boot-imx-a5e8199a13a61eab0a0da9217e74dacd190fcaba.tar.bz2
sf: spi_flash cleanups
More cleanups on spi_flash side: - Removed unneeded comments. - Rearranged macros in proper location. - Rearranged func declerations - Renamed few function names. - Added License headers. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r--include/spi_flash.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index a539516..b7cce12 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -1,7 +1,8 @@
/*
- * Interface to SPI flash
+ * Common SPI flash Interface
*
* Copyright (C) 2008 Atmel Corporation
+ * Copyright (C) 2013 Jagannadha Sutradharudu Teki, Xilinx Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -10,6 +11,7 @@
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*/
+
#ifndef _SPI_FLASH_H_
#define _SPI_FLASH_H_
@@ -17,18 +19,6 @@
#include <linux/types.h>
#include <linux/compiler.h>
-/* SECT flags */
-#define SECT_4K (1 << 1)
-#define SECT_32K (1 << 2)
-#define E_FSR (1 << 3)
-
-/* SST specific macros */
-#ifdef CONFIG_SPI_FLASH_SST
-# define SST_WP 0x01 /* Supports AAI word program */
-# define CMD_SST_BP 0x02 /* Byte Program */
-# define CMD_SST_AAI_WP 0xAD /* Auto Address Incr Word Program */
-#endif
-
/**
* struct spi_flash - SPI flash structure
*