lock/unlock feature added
Brought to you by:
flecxie,
lennartyseboodt
This changes allow locking/unlocking the MMC/SD card with a password through a single API:
esint8 sd_lockUnlock(hwInterface *iface,char *pcstr, euint8 len, euint8 flags)
flags is the bitwise or of the following flags:
#define SDPWD_SETPWD 1
#define SDPWD_CLRPWD 2
#define SDPWD_LOCK 4
#define SDPWD_ERASE 8
please note that once you lock a card it won't be readable by almost any device if it is not previously unlocked or the password is cleared (PC will for example return bad media). note also that password can be cleared (along with contents of the card) in case you forget it.
please check SanDisk's document for details
patch for SD/MMC lock/unlock