/* low level nand write function */ int nand_write_ll(unsigned char *buf, unsigned long start_addr, int size) { int i, j,k; if(buf == NULL) { return; } if ((start_addr & NAND_BLOCK_MASK) || (size & NAND_BLOCK_MASK)) { return -1; /* invalid alignment */ } NAND_CHIP_ENABLE; for(i=0; i