software/bios/litesdcard: remove sdcard_set_clk.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 25 Jun 2020 09:12:40 +0000 (11:12 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 25 Jun 2020 09:12:40 +0000 (11:12 +0200)
litex/soc/software/bios/cmds/cmd_litesdcard.c
litex/soc/software/liblitesdcard/sdcard.c
litex/soc/software/liblitesdcard/sdcard.h

index 34629fdcffe62a79774e872e532c3dd46f1475bd..68c077887abcac0bd37401eebdc1c48dc23f5a5b 100644 (file)
 #include "../command.h"
 #include "../helpers.h"
 
-/**
- * Command "sdclk"
- *
- * Configure SDcard clock frequency
- *
- */
-#ifdef CSR_SDCORE_BASE
-static void sdclk(int nb_params, char **params)
-{
-       unsigned int frequ;
-       char *c;
-
-       if (nb_params < 1) {
-               printf("sdclk <freq>");
-               return;
-       }
-
-       frequ = strtoul(params[0], &c, 0);
-       if (*c != 0) {
-               printf("Incorrect freq");
-               return;
-       }
-
-       sdcard_set_clk(frequ);
-}
-
-struct command_struct cmd_sdclk =
-{
-       .func = sdclk,
-       .name = "sdclk",
-       .help = "Set SDCard clk freq (Mhz)",
-};
-
-define_command(sdclk, sdclk, "Set SDCard clk freq (Mhz)", LITESDCARD_CMDS);
-#endif
-
 /**
  * Command "sdinit"
  *
index 7202a2d77a4faaae8a475b0e797b9537d0865d9a..1329433d20178d8725610b8ece776cf70ccd5d99 100644 (file)
@@ -416,10 +416,6 @@ void sdcard_decode_csd(void) {
 /* SDCard user functions                                                 */
 /*-----------------------------------------------------------------------*/
 
-void sdcard_set_clk(uint32_t freq) {
-       printf("No SDClocker, returning.\n");
-}
-
 int sdcard_init(void) {
        unsigned short rca;
 
index 06f60863af77bab997146a96af36f8eb88b40abf..53ae6491c395b9a237fcde5fea0a23ea65f190e6 100644 (file)
@@ -92,7 +92,6 @@ int sdcard_set_block_count(unsigned int blockcnt);
 /* SDCard user functions                                                 */
 /*-----------------------------------------------------------------------*/
 
-void sdcard_set_clk(uint32_t freq);
 int sdcard_init(void);
 void sdcard_read(uint32_t sector, uint32_t count, uint8_t* buf);
 void sdcard_write(uint32_t sector, uint32_t count, uint8_t* buf);