2010/12/1 Chong Huang > Adding the read code back, the kernel can be autoboot up fine. > > --- drivers/mtd/spi/eon.c (版本 2513) > +++ drivers/mtd/spi/eon.c (工作副本) > @@ -240,7 +240,13 @@ > const struct eon_spi_flash_params *params; > struct eon_spi_flash *eon; > unsigned int i; > + int ret; > + u8 id[3]; > > + ret = spi_flash_cmd(spi, CMD_READ_ID, id, sizeof(id)); > + if (ret) > + return NULL; > + > for (i = 0; i < ARRAY_SIZE(eon_spi_flash_table); ++i) { > params = &eon_spi_flash_table[i]; > if (params->idcode1 == idcode[2]) > > Seems that it need do 'sf read' operation twice and the second one takes real > effect. I can not figure out why.
the result of that SPI command is placed into the "id" variable and never used, thus it was punted. guess you'll have to dig into why the SPI flash part isnt working as expected. -mike _______________________________________________ U-Boot-devel mailing list U-Boot-devel@blackfin.uclinux.org https://blackfin.uclinux.org/mailman/listinfo/u-boot-devel