software/bios: rename commands to cmds and update with libs' names.
This commit is contained in:
parent
33f6ce7431
commit
21e2a34c3f
|
@ -85,7 +85,7 @@ endif
|
|||
%.o: $(BIOS_DIRECTORY)/%.c
|
||||
$(compile)
|
||||
|
||||
%.o: $(BIOS_DIRECTORY)/commands/%.c
|
||||
%.o: $(BIOS_DIRECTORY)/cmds/%.c
|
||||
$(compile)
|
||||
|
||||
%.o: $(BIOS_DIRECTORY)/%.S
|
||||
|
|
|
@ -36,7 +36,7 @@ static void sdrrow_handler(int nb_params, char **params)
|
|||
sdrrow(row);
|
||||
printf("Activated row %d", row);
|
||||
}
|
||||
define_command(sdrrow, sdrrow_handler, "Precharge/Activate row", DRAM_CMDS);
|
||||
define_command(sdrrow, sdrrow_handler, "Precharge/Activate row", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -46,7 +46,7 @@ define_command(sdrrow, sdrrow_handler, "Precharge/Activate row", DRAM_CMDS);
|
|||
*
|
||||
*/
|
||||
#ifdef CSR_SDRAM_BASE
|
||||
define_command(sdrsw, sdrsw, "Gives SDRAM control to SW", DRAM_CMDS);
|
||||
define_command(sdrsw, sdrsw, "Gives SDRAM control to SW", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -56,7 +56,7 @@ define_command(sdrsw, sdrsw, "Gives SDRAM control to SW", DRAM_CMDS);
|
|||
*
|
||||
*/
|
||||
#ifdef CSR_SDRAM_BASE
|
||||
define_command(sdrhw, sdrhw, "Gives SDRAM control to HW", DRAM_CMDS);
|
||||
define_command(sdrhw, sdrhw, "Gives SDRAM control to HW", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -71,7 +71,7 @@ static void sdrrdbuf_handler(int nb_params, char **params)
|
|||
sdrrdbuf(-1);
|
||||
}
|
||||
|
||||
define_command(sdrrdbuf, sdrrdbuf_handler, "Dump SDRAM read buffer", DRAM_CMDS);
|
||||
define_command(sdrrdbuf, sdrrdbuf_handler, "Dump SDRAM read buffer", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -111,7 +111,7 @@ static void sdrrd_handler(int nb_params, char **params)
|
|||
sdrrd(addr, dq);
|
||||
}
|
||||
|
||||
define_command(sdrrd, sdrrd_handler, "Read SDRAM data", DRAM_CMDS);
|
||||
define_command(sdrrd, sdrrd_handler, "Read SDRAM data", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -140,7 +140,7 @@ static void sdrrderr_handler(int nb_params, char **params)
|
|||
sdrrderr(count);
|
||||
}
|
||||
|
||||
define_command(sdrrderr, sdrrderr_handler, "Print SDRAM read errors", DRAM_CMDS);
|
||||
define_command(sdrrderr, sdrrderr_handler, "Print SDRAM read errors", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -169,7 +169,7 @@ static void sdrwr_handler(int nb_params, char **params)
|
|||
sdrwr(addr);
|
||||
}
|
||||
|
||||
define_command(sdrwr, sdrwr_handler, "Write SDRAM test data", DRAM_CMDS);
|
||||
define_command(sdrwr, sdrwr_handler, "Write SDRAM test data", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -179,7 +179,7 @@ define_command(sdrwr, sdrwr_handler, "Write SDRAM test data", DRAM_CMDS);
|
|||
*
|
||||
*/
|
||||
#if defined(CSR_SDRAM_BASE) && defined(CSR_DDRPHY_BASE)
|
||||
define_command(sdrinit, sdrinit, "Start SDRAM initialisation", DRAM_CMDS);
|
||||
define_command(sdrinit, sdrinit, "Start SDRAM initialisation", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -189,7 +189,7 @@ define_command(sdrinit, sdrinit, "Start SDRAM initialisation", DRAM_CMDS);
|
|||
*
|
||||
*/
|
||||
#if defined(CSR_DDRPHY_BASE) && defined(SDRAM_PHY_WRITE_LEVELING_CAPABLE) && defined(CSR_SDRAM_BASE)
|
||||
define_command(sdrwlon, sdrwlon, "Enable write leveling", DRAM_CMDS);
|
||||
define_command(sdrwlon, sdrwlon, "Enable write leveling", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -199,7 +199,7 @@ define_command(sdrwlon, sdrwlon, "Enable write leveling", DRAM_CMDS);
|
|||
*
|
||||
*/
|
||||
#if defined(CSR_DDRPHY_BASE) && defined(SDRAM_PHY_WRITE_LEVELING_CAPABLE) && defined(CSR_SDRAM_BASE)
|
||||
define_command(sdrwloff, sdrwloff, "Disable write leveling", DRAM_CMDS);
|
||||
define_command(sdrwloff, sdrwloff, "Disable write leveling", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -209,7 +209,7 @@ define_command(sdrwloff, sdrwloff, "Disable write leveling", DRAM_CMDS);
|
|||
*
|
||||
*/
|
||||
#if defined(CSR_DDRPHY_BASE) && defined(CSR_SDRAM_BASE)
|
||||
define_command(sdrlevel, sdrlevel, "Perform read/write leveling", DRAM_CMDS);
|
||||
define_command(sdrlevel, sdrlevel, "Perform read/write leveling", LITEDRAM_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -219,5 +219,5 @@ define_command(sdrlevel, sdrlevel, "Perform read/write leveling", DRAM_CMDS);
|
|||
*
|
||||
*/
|
||||
#ifdef CSR_SDRAM_BASE
|
||||
define_command(memtest, memtest, "Run a memory test", DRAM_CMDS);
|
||||
define_command(memtest, memtest, "Run a memory test", LITEDRAM_CMDS);
|
||||
#endif
|
|
@ -50,7 +50,7 @@ static void mdiow(int nb_params, char **params)
|
|||
mdio_write(phyadr2, reg2, val2);
|
||||
}
|
||||
|
||||
define_command(mdiow, mdiow, "Write MDIO register", MDIO_CMDS);
|
||||
define_command(mdiow, mdiow, "Write MDIO register", LITEETH_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -88,7 +88,7 @@ static void mdior(int nb_params, char **params)
|
|||
printf("Reg %d: 0x%04x", reg2, val);
|
||||
}
|
||||
|
||||
define_command(mdior, mdior, "Read MDIO register", MDIO_CMDS);
|
||||
define_command(mdior, mdior, "Read MDIO register", LITEETH_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -130,5 +130,5 @@ static void mdiod(int nb_params, char **params)
|
|||
}
|
||||
}
|
||||
|
||||
define_command(mdiod, mdiod, "Dump MDIO registers", MDIO_CMDS);
|
||||
define_command(mdiod, mdiod, "Dump MDIO registers", LITEETH_CMDS);
|
||||
#endif
|
|
@ -43,7 +43,7 @@ struct command_struct cmd_sdclk =
|
|||
.help = "SDCard set clk frequency (Mhz)",
|
||||
};
|
||||
|
||||
define_command(sdclk, sdclk, "SDCard set clk frequency (Mhz)", SD_CMDS);
|
||||
define_command(sdclk, sdclk, "SDCard set clk frequency (Mhz)", LITESDCARD_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -53,7 +53,7 @@ define_command(sdclk, sdclk, "SDCard set clk frequency (Mhz)", SD_CMDS);
|
|||
*
|
||||
*/
|
||||
#ifdef CSR_SDCORE_BASE
|
||||
define_command(sdinit, sdcard_init, "SDCard initialization", SD_CMDS);
|
||||
define_command(sdinit, sdcard_init, "SDCard initialization", LITESDCARD_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -82,7 +82,7 @@ static void sdtest(int nb_params, char **params)
|
|||
sdcard_test(blocks);
|
||||
}
|
||||
|
||||
define_command(sdtest, sdtest, "SDCard test", SD_CMDS);
|
||||
define_command(sdtest, sdtest, "SDCard test", LITESDCARD_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -111,7 +111,7 @@ static void sdtestread(int nb_params, char **params)
|
|||
sdcard_test_read(block);
|
||||
}
|
||||
|
||||
define_command(sdtestread, sdtestread, "SDCard test read", SD_CMDS);
|
||||
define_command(sdtestread, sdtestread, "SDCard test read", LITESDCARD_CMDS);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -140,5 +140,5 @@ static void sdtestwrite(int nb_params, char **params)
|
|||
sdcard_test_write(block, params[1]);
|
||||
}
|
||||
|
||||
define_command(sdtestwrite, sdtestwrite, "SDCard test write", SD_CMDS);
|
||||
define_command(sdtestwrite, sdtestwrite, "SDCard test write", LITESDCARD_CMDS);
|
||||
#endif
|
|
@ -12,14 +12,13 @@
|
|||
#define MISC_CMDS 0
|
||||
#define SYSTEM_CMDS 1
|
||||
#define CACHE_CMDS 2
|
||||
#define MEM_CMDS 3
|
||||
#define BOOT_CMDS 3
|
||||
#define DRAM_CMDS 4
|
||||
#define MDIO_CMDS 5
|
||||
#define MEM_CMDS 6
|
||||
#define SD_CMDS 7
|
||||
#define SPIFLASH_CMDS 8
|
||||
#define DDR_CMDS 9
|
||||
#define NB_OF_GROUPS 10
|
||||
#define SPIFLASH_CMDS 4
|
||||
#define LITEDRAM_CMDS 4
|
||||
#define LITEETH_CMDS 5
|
||||
#define LITESDCARD_CMDS 7
|
||||
#define NB_OF_GROUPS 8
|
||||
|
||||
typedef void (*cmd_handler)(int nb_params, char **params);
|
||||
|
||||
|
|
Loading…
Reference in New Issue