mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-19 08:13:57 +00:00
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:
parent
2cd5e41a9c
commit
dddd00f6a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210238
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue