
16 Jun
2011
16 Jun
'11
8:04 p.m.
On Wed, Jun 08, 2011 at 01:29:12PM -0400, Alex Waterman wrote:
diff --git a/nand_spl/nand_boot.c b/nand_spl/nand_boot.c index 9545a9a..1d847ef 100644 --- a/nand_spl/nand_boot.c +++ b/nand_spl/nand_boot.c @@ -122,10 +122,15 @@ static int nand_is_bad_block(struct mtd_info *mtd, int block) nand_command(mtd, block, 0, CONFIG_SYS_NAND_BAD_BLOCK_POS, NAND_CMD_READOOB);
/*
* Read one byte
*/* Read one byte (or two if it's a 16 bit chip).
- if (readb(this->IO_ADDR_R) != 0xff)
return 1;
- if (this->chip_options & NAND_BUSWIDTH_16){
if (readw(this->IO_ADDR_R) != 0xffff)
return 1;
- } else {
if (readb(this->IO_ADDR_R) != 0xff)
return 1;
- }
Configuring for canyonlands_nand - Board: canyonlands, Options: CANYONLANDS,NAND_U_BOOT,SYS_TEXT_BASE=0x01000000 /tmp/u-boot/nand_spl/board/amcc/canyonlands/nand_boot.c: In function 'nand_is_bad_block': /tmp/u-boot/nand_spl/board/amcc/canyonlands/nand_boot.c:127:10: error: 'struct nand_chip' has no member named 'chip_options'
Also, space before {
-Scott