From c46690032279c254c0890a0bb38a4fd6a74ab146 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 25 Jun 2020 11:12:40 +0200 Subject: [PATCH] software/bios/litesdcard: remove sdcard_set_clk. --- litex/soc/software/bios/cmds/cmd_litesdcard.c | 36 ------------------- litex/soc/software/liblitesdcard/sdcard.c | 4 --- litex/soc/software/liblitesdcard/sdcard.h | 1 - 3 files changed, 41 deletions(-) diff --git a/litex/soc/software/bios/cmds/cmd_litesdcard.c b/litex/soc/software/bios/cmds/cmd_litesdcard.c index 34629fdc..68c07788 100644 --- a/litex/soc/software/bios/cmds/cmd_litesdcard.c +++ b/litex/soc/software/bios/cmds/cmd_litesdcard.c @@ -10,42 +10,6 @@ #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 "); - 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" * diff --git a/litex/soc/software/liblitesdcard/sdcard.c b/litex/soc/software/liblitesdcard/sdcard.c index 7202a2d7..1329433d 100644 --- a/litex/soc/software/liblitesdcard/sdcard.c +++ b/litex/soc/software/liblitesdcard/sdcard.c @@ -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; diff --git a/litex/soc/software/liblitesdcard/sdcard.h b/litex/soc/software/liblitesdcard/sdcard.h index 06f60863..53ae6491 100644 --- a/litex/soc/software/liblitesdcard/sdcard.h +++ b/litex/soc/software/liblitesdcard/sdcard.h @@ -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); -- 2.30.2