- MTD的partition定義在$(SDK)/XXX_SDK/source/linux-2.6.21x/drivers/mtd/XXX/XXX_spi.c
- Partition functions在$(SDK)/XXX_SDK/source/linux-2.6.21x/drivers/mtd/mtdpart.c
$(SDK)/XXX_SDK/source/linux-2.6.21.x/drivers/mtd/XXX/XXX_spi.c
static struct chip_info chips_data [] = {
/* REVISIT: fill in JEDEC ids, for parts that have them */
{ "AT25DF321", 0x1f, 0x47000000, 64 * 1024, 64, 0 },
{ "AT26DF161", 0x1f, 0x46000000, 64 * 1024, 32, 0 },
//add this line
{ "W25Q32BV", 0xef, 0x40160000, 64 * 1024, 64, 0 }, //S25FL032K
};
2. Modify Uboot,
$(SDK)/Uboot/drivers/spi_flash.c
static struct chip_info chips_data [] = {
/* REVISIT: fill in JEDEC ids, for parts that have them */
{ "AT25DF321", 0x1f, 0x47000000, 64 * 1024, 64, 0 },
{ "AT26DF161", 0x1f, 0x46000000, 64 * 1024, 32, 0 },
//add this line
{ "W25Q32BV", 0xef, 0x40160000, 64 * 1024, 64, 0 }, //S25FL032K
};
沒有留言:
張貼留言