Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2010 15:05:35 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210238 - head/sys/dev/flash
Message-ID:  <201007191505.o6JF5ZSr000437@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Jul 19 15:05:35 2010
New Revision: 210238
URL: http://svn.freebsd.org/changeset/base/210238

Log:
  Include 4k/32k erase commands.
  
  These were sourced from the MX25L128 datasheet and match up
  with what is used in Linux mtd/devices/m25p80.c .
  
  Add a FreeBSD keyword whilst I'm here.

Modified:
  head/sys/dev/flash/mx25lreg.h   (contents, props changed)

Modified: head/sys/dev/flash/mx25lreg.h
==============================================================================
--- head/sys/dev/flash/mx25lreg.h	Mon Jul 19 14:59:23 2010	(r210237)
+++ head/sys/dev/flash/mx25lreg.h	Mon Jul 19 15:05:35 2010	(r210238)
@@ -23,6 +23,8 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
+ *
+ * $FreeBSD$
  */
 
 #ifndef __MX25LREG_H__
@@ -41,6 +43,8 @@
 #define CMD_PAGE_PROGRAM	0x02
 #define CMD_SECTOR_ERASE	0xD8
 #define CMD_BULK_ERASE		0xC7
+#define	CMD_BLOCK_4K_ERASE	0x20
+#define	CMD_BLOCK_32K_ERASE	0x52
 
 /*
  * Status register flags



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007191505.o6JF5ZSr000437>