mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-24 12:19:21 +01:00
not sure erase is using IRQ correctly; make a note for later
(I don't want to fix it unless it's broken)
This commit is contained in:
parent
7e40961741
commit
1d66f36578
3
nand.c
3
nand.c
@ -100,6 +100,8 @@ void nand_irq(void)
|
||||
dc_flushrange((void*)current_request.args[1], PAGE_SIZE);
|
||||
dc_flushrange((void*)current_request.args[2], ECC_BUFFER_SIZE);
|
||||
break;
|
||||
default:
|
||||
gecko_printf("Got IRQ for unknown NAND req %d\n", current_request.req);
|
||||
}
|
||||
code = current_request.code;
|
||||
tag = current_request.tag;
|
||||
@ -234,6 +236,7 @@ void nand_erase_block(u32 pageno) {
|
||||
__nand_set_address(0, pageno);
|
||||
nand_send_command(NAND_ERASE_PRE, 0x1c, 0, 0);
|
||||
__nand_wait();
|
||||
// should we really be using NAND_FLAGS_IRQ here?
|
||||
nand_send_command(NAND_ERASE_POST, 0, NAND_FLAGS_IRQ | NAND_FLAGS_WAIT, 0);
|
||||
NAND_debug("nand_erase_block(%d) done\n", pageno);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user