Add a dummy nand_get_info for ipodnano3g and ipodnano4g

All non-simulator and non-hostfs targets are required to implement storage_get_info() since 04dc052a

Change-Id: I87febd12e101797d9cbbffc0e2e46efc2dace9da
This commit is contained in:
Vencislav Atanasov 2026-01-06 22:05:33 +02:00 committed by Solomon Peachy
parent 98a182a19f
commit e3372f495e
2 changed files with 26 additions and 0 deletions

View file

@ -20,6 +20,7 @@
****************************************************************************/
#include "mv.h"
#include "storage.h"
int nand_init(void)
{
@ -61,3 +62,15 @@ int nand_event(long id, intptr_t data)
return 0;
}
#ifdef STORAGE_GET_INFO
void nand_get_info(IF_MD(int drive,) struct storage_info *info)
{
IF_MD((void)drive);
info->sector_size = SECTOR_SIZE;
info->num_sectors = 0;
info->vendor = "";
info->product = "";
info->revision = "";
}
#endif

View file

@ -20,6 +20,7 @@
****************************************************************************/
#include "mv.h"
#include "storage.h"
int nand_init(void)
{
@ -61,3 +62,15 @@ int nand_event(long id, intptr_t data)
return 0;
}
#ifdef STORAGE_GET_INFO
void nand_get_info(IF_MD(int drive,) struct storage_info *info)
{
IF_MD((void)drive);
info->sector_size = SECTOR_SIZE;
info->num_sectors = 0;
info->vendor = "";
info->product = "";
info->revision = "";
}
#endif