在下面文件结构体里添加
u-boot-2010.06\drivers\mtd\spi\hifmc100\hifmc_spi_nor_ids.c
static struct spi_nor_info hifmc_spi_nor_info_table[] = {
/* name id id_len chipsize(Bytes) erasesize */
{
"XM25QH128AHIG", {0X20, 0X70, 0X18},3,_16M, _64K, 3,
{
&READ_STD(0, INFINITE, 20),
&READ_FAST(1, INFINITE, 50),
0
},
{
&WRITE_STD(0, 256, 50),
0
},
{
&ERASE_SECTOR_64K(0, _64K, 0),
0
},
&spi_driver_general,
},