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.
This commit is contained in:
Adrian Chadd 2010-07-19 15:05:35 +00:00
parent 2cd5e41a9c
commit dddd00f6a4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210238

View file

@ -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