arm/lpc43xx: Implement MTDIOC_ERASESTATE for SPIFI Flash driver

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2021-07-16 14:15:51 -03:00 committed by Xiang Xiao
parent df2e890cfc
commit 50ea22314e

View File

@ -895,6 +895,15 @@ static int lpc43_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
}
break;
case MTDIOC_ERASESTATE:
{
FAR uint8_t *result = (FAR uint8_t *)arg;
*result = SPIFI_ERASED_STATE;
ret = OK;
}
break;
case MTDIOC_XIPBASE:
default:
ret = -ENOTTY; /* Bad command */