diff options
author | Davide Grohmann <davide.grohmann@arm.com> | 2021-06-17 09:59:40 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-08-13 09:56:16 +0000 |
commit | 40e23d12017ba8aa40bb15c9214cd7ac531a159e (patch) | |
tree | 232ce65c8998a746fa1d9b381388efd56d900bca /driver_library | |
parent | 1c26baa1e8fde9f730c0ef472187937619d32471 (diff) | |
download | ethos-u-linux-driver-stack-40e23d12017ba8aa40bb15c9214cd7ac531a159e.tar.gz |
Do not expose device specific hw config in capabilities21.08-rc1
Change-Id: Ia90e2d74c3e071c6e3de381cfada9a5a155d7529
Diffstat (limited to 'driver_library')
-rw-r--r-- | driver_library/include/ethosu.hpp | 10 | ||||
-rw-r--r-- | driver_library/src/ethosu.cpp | 5 |
2 files changed, 3 insertions, 12 deletions
diff --git a/driver_library/include/ethosu.hpp b/driver_library/include/ethosu.hpp index d3f7421..d70ec95 100644 --- a/driver_library/include/ethosu.hpp +++ b/driver_library/include/ethosu.hpp @@ -98,21 +98,15 @@ public: * Hardware Configuration * @macsPerClockCycle: MACs per clock cycle * @cmdStreamVersion: NPU command stream version - * @shramSize: SHRAM size * @customDma: Custom DMA enabled */ struct HardwareConfiguration { public: - HardwareConfiguration(uint32_t _macsPerClockCycle, - uint32_t _cmdStreamVersion, - uint32_t _shramSize, - bool _customDma) : - macsPerClockCycle(_macsPerClockCycle), - cmdStreamVersion(_cmdStreamVersion), shramSize(_shramSize), customDma(_customDma) {} + HardwareConfiguration(uint32_t _macsPerClockCycle, uint32_t _cmdStreamVersion, bool _customDma) : + macsPerClockCycle(_macsPerClockCycle), cmdStreamVersion(_cmdStreamVersion), customDma(_customDma) {} uint32_t macsPerClockCycle; uint32_t cmdStreamVersion; - uint32_t shramSize; bool customDma; }; diff --git a/driver_library/src/ethosu.cpp b/driver_library/src/ethosu.cpp index ea1f7f4..997e12a 100644 --- a/driver_library/src/ethosu.cpp +++ b/driver_library/src/ethosu.cpp @@ -176,10 +176,7 @@ Capabilities Device::capabilities() { SemanticVersion(uapi.hw_id.version_major, uapi.hw_id.version_minor), SemanticVersion(uapi.hw_id.product_major), SemanticVersion(uapi.hw_id.arch_major_rev, uapi.hw_id.arch_minor_rev, uapi.hw_id.arch_patch_rev)), - HardwareConfiguration(uapi.hw_cfg.macs_per_cc, - uapi.hw_cfg.cmd_stream_version, - uapi.hw_cfg.shram_size, - bool(uapi.hw_cfg.custom_dma)), + HardwareConfiguration(uapi.hw_cfg.macs_per_cc, uapi.hw_cfg.cmd_stream_version, bool(uapi.hw_cfg.custom_dma)), SemanticVersion(uapi.driver_major_rev, uapi.driver_minor_rev, uapi.driver_patch_rev)); return capabilities; } |