From f2f8ca056e04d4c021814c93706a24039821d8b6 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 8 Jul 2020 15:04:43 +0200 Subject: cores: Remove shutdown function from spi_core_3000 This effectively reverts 0433e74. The set_shutdown() and get_shutdown() API calls do not have a counterpart in simple_spi_core.v, which is typically the HDL endpoint for this core driver, and thus could write to a non-existent register. They are also never used in UHD, nor are they part of the spi_iface interface. --- host/lib/usrp/cores/spi_core_3000.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'host/lib/usrp/cores') diff --git a/host/lib/usrp/cores/spi_core_3000.cpp b/host/lib/usrp/cores/spi_core_3000.cpp index ad9df68dd..e279ffa66 100644 --- a/host/lib/usrp/cores/spi_core_3000.cpp +++ b/host/lib/usrp/cores/spi_core_3000.cpp @@ -37,7 +37,6 @@ public: , _spi_div_addr(base + 0 * reg_offset) , _spi_ctrl_addr(base + 1 * reg_offset) , _spi_data_addr(base + 2 * reg_offset) - , _spi_shutdown_addr(base + 3 * reg_offset) , _readback_addr(readback) { this->set_divider(DEFAULT_DIVIDER); @@ -94,17 +93,6 @@ public: return 0; } - void set_shutdown(const bool shutdown) - { - _shutdown_cache = shutdown; - _poke32(_spi_shutdown_addr, _shutdown_cache); - } - - bool get_shutdown() - { - return _shutdown_cache; - } - void set_divider(const double div) { _div = size_t((div / 2) - 0.5); @@ -116,10 +104,8 @@ private: const size_t _spi_div_addr; const size_t _spi_ctrl_addr; const size_t _spi_data_addr; - const size_t _spi_shutdown_addr; const size_t _readback_addr; uint32_t _ctrl_word_cache = 0; - bool _shutdown_cache; std::mutex _mutex; size_t _div; size_t _divider_cache = 0; -- cgit v1.2.3