aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nand.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-27 09:29:07 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-28 13:00:39 -0800
commit01f93137c4c9d2aedd57a715be46d2809c316811 (patch)
tree5608ada173f88a4af26e9d637ab38510a46aab86 /src/flash/nand.c
parentcdfdcb28549174a2346fc91ec95a1c620c568cad (diff)
downloadriscv-openocd-01f93137c4c9d2aedd57a715be46d2809c316811.zip
riscv-openocd-01f93137c4c9d2aedd57a715be46d2809c316811.tar.gz
riscv-openocd-01f93137c4c9d2aedd57a715be46d2809c316811.tar.bz2
add 'nonce' nand driver
The nonce NAND driver provides a no-op implementation useful for testing the system independently of any driver side-effects.
Diffstat (limited to 'src/flash/nand.c')
-rw-r--r--src/flash/nand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flash/nand.c b/src/flash/nand.c
index 895abe3..94cec8d 100644
--- a/src/flash/nand.c
+++ b/src/flash/nand.c
@@ -36,6 +36,7 @@ static int nand_write_page(struct nand_device *nand, uint32_t page, uint8_t *dat
/* NAND flash controller
*/
+extern struct nand_flash_controller nonce_nand_controller;
extern struct nand_flash_controller davinci_nand_controller;
extern struct nand_flash_controller lpc3180_nand_controller;
extern struct nand_flash_controller orion_nand_controller;
@@ -49,6 +50,7 @@ extern struct nand_flash_controller imx31_nand_flash_controller;
static struct nand_flash_controller *nand_flash_controllers[] =
{
+ &nonce_nand_controller,
&davinci_nand_controller,
&lpc3180_nand_controller,
&orion_nand_controller,