From dddd00f6a49dbbe4061ad1d541726049760dd47c Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 19 Jul 2010 15:05:35 +0000 Subject: [PATCH] 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. --- sys/dev/flash/mx25lreg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/flash/mx25lreg.h b/sys/dev/flash/mx25lreg.h index 49808af603b6..7253dba62333 100644 --- a/sys/dev/flash/mx25lreg.h +++ b/sys/dev/flash/mx25lreg.h @@ -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