mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
arm/lpc43xx: Implement MTDIOC_ERASESTATE for SPIFI Flash driver
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
df2e890cfc
commit
50ea22314e
@@ -895,6 +895,15 @@ static int lpc43_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case MTDIOC_ERASESTATE:
|
||||||
|
{
|
||||||
|
FAR uint8_t *result = (FAR uint8_t *)arg;
|
||||||
|
*result = SPIFI_ERASED_STATE;
|
||||||
|
|
||||||
|
ret = OK;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case MTDIOC_XIPBASE:
|
case MTDIOC_XIPBASE:
|
||||||
default:
|
default:
|
||||||
ret = -ENOTTY; /* Bad command */
|
ret = -ENOTTY; /* Bad command */
|
||||||
|
|||||||
Reference in New Issue
Block a user