From: Florent Kermarrec Date: Wed, 3 Jun 2020 09:11:45 +0000 (+0200) Subject: software/liblitesdcard: remove sdtimer functions (unused). X-Git-Tag: 24jan2021_ls180~232 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee4056cfeca22dd768ba5dd4afc6ef98fcb2630e;p=litex.git software/liblitesdcard: remove sdtimer functions (unused). sdtimer was used to evaluate performance but is no longer used. --- diff --git a/litex/soc/software/liblitesdcard/sdcard.c b/litex/soc/software/liblitesdcard/sdcard.c index a7a590a0..ab52f191 100644 --- a/litex/soc/software/liblitesdcard/sdcard.c +++ b/litex/soc/software/liblitesdcard/sdcard.c @@ -163,21 +163,6 @@ void sdclk_set_clk(unsigned int freq) { /* command utils */ -static void sdtimer_init(void) -{ - sdtimer_en_write(0); - sdtimer_load_write(0xffffffff); - sdtimer_reload_write(0xffffffff); - sdtimer_en_write(1); -} - -static unsigned int sdtimer_get(void) -{ - sdtimer_update_value_write(1); - return sdtimer_value_read(); -} - - int sdcard_wait_cmd_done(void) { unsigned check_counter = 0; unsigned int cmdevt; @@ -602,8 +587,6 @@ int sdcard_init(void) { sdcore_cmdtimeout_write(1<<19); sdcore_datatimeout_write(1<<19); - sdtimer_init(); - /* reset card */ sdcard_go_idle(); busy_wait(1);