]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/lx-rocon.git/blobdiff - sw/app/rocon/appl_tests.c
RoCoN: initial unfinished support for SPI connected Flash.
[fpga/lx-cpu1/lx-rocon.git] / sw / app / rocon / appl_tests.c
index 81e366e3039f01553eaee632ef16d6d1601db6f1..30279f6dcdcedf6320b350602919b48fc14835e2 100644 (file)
@@ -171,6 +171,12 @@ int cmd_do_spimst_blocking(cmd_io_t *cmd_io, const struct cmd_des *des, char *pa
   return 0;
 }
 
+int cmd_do_mtdspitest(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[])
+{
+  mtd_spi_test();
+  return 0;
+}
+
 #ifdef SDRAM_BASE
 int sdram_access_test(void)
 {
@@ -674,6 +680,11 @@ cmd_des_t const cmd_des_spimstx = {0, CDESM_OPCHR | CDESM_WR,
                                    cmd_do_spimst_blocking, {(void *) - 1}
                                   };
 
+cmd_des_t const cmd_des_mtdspitest = {0, 0,
+                                   "mtdspitest", "test SPI connected Flash",
+                                   cmd_do_mtdspitest, {(void *) - 1}
+                                  };
+
 #ifdef SDRAM_BASE
 cmd_des_t const cmd_des_testsdram = {0, 0,
                                      "testsdram", "test SDRAM",
@@ -738,6 +749,7 @@ cmd_des_t const *const cmd_appl_tests[] =
   &cmd_des_test_loglevel,
   &cmd_des_spimst,
   &cmd_des_spimstx,
+  &cmd_des_mtdspitest,
 #ifdef SDRAM_BASE
   &cmd_des_testsdram,
 #endif /*SDRAM_BASE*/