
On Wed, Aug 13, 2008 at 01:06:33AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
nand.c: In function 'at91cap9adk_nand_hwcontrol': nand.c:47: error: 'NAND_CTL_SETCLE' undeclared (first use in this function) nand.c:47: error: (Each undeclared identifier is reported only once nand.c:47: error: for each function it appears in.) nand.c:50: error: 'NAND_CTL_SETALE' undeclared (first use in this function) nand.c:53: error: 'NAND_CTL_CLRNCE' undeclared (first use in this function) nand.c:56: error: 'NAND_CTL_SETNCE' undeclared (first use in this function) nand.c: In function 'board_nand_init': nand.c:65: error: 'struct nand_chip' has no member named 'eccmode' nand.c:69: error: incompatible types in assignment make[1]: *** [nand.o] Error 1
They need to be updated to the new API (existing drivers were converted when mtd-2.6.22.1 was brought in on a branch, but there have been new drivers added in mainline since then). I'll post a patch later today, though I can't test it due to lack of hardware.
Configuring for apollon board... onenand_base.c: In function 'onenand_bufferram_offset': onenand_base.c:331: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c: In function 'onenand_read_ecc': onenand_base.c:541: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:543: error: 'struct mtd_info' has no member named 'oobblock'
I've applied a patch from Kyungmin Park to fix this one (though there's still an API mismatch in OneNAND that needs to be fixed).
-Scott