svn commit: r210238 - head/sys/dev/flash
Adrian Chadd
adrian at FreeBSD.org
Mon Jul 19 15:05:35 UTC 2010
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
More information about the svn-src-head
mailing list