diff options
author | Tzung-Bi Shih <tzungbi@chromium.org> | 2020-12-01 16:03:36 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-10 05:33:12 +0000 |
commit | bcdb3009b6c6442f68dc01c9594e0a16ce1ecf3b (patch) | |
tree | 4ffc039ec85254aa8d537c2a79b52551f7f209b8 /chip | |
parent | ed30c7ca7630be33e899fe982729ca48b98f6e64 (diff) | |
download | chrome-ec-bcdb3009b6c6442f68dc01c9594e0a16ce1ecf3b.tar.gz |
chip/mt8192_scp: expose PMU-related functions
Exposes PMU-related functions so that we can call the functions to study
some part of cache performance.
BRANCH=none
BUG=b:172988651
TEST=make BOARD=asurada_scp
Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org>
Change-Id: I27182e3d2af52d8761f45359f3627d70c5acf28c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2567517
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/mt8192_scp/cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/mt8192_scp/cache.h b/chip/mt8192_scp/cache.h index cf77e765f9..633937aa35 100644 --- a/chip/mt8192_scp/cache.h +++ b/chip/mt8192_scp/cache.h @@ -42,4 +42,10 @@ int cache_flush_dcache_range(uintptr_t addr, uint32_t length); void cache_init(void); +#ifdef DEBUG +int command_enable_pmu(int argc, char **argv); +int command_disable_pmu(int argc, char **argv); +int command_show_pmu(int argc, char **argv); +#endif + #endif /* #ifndef __CROS_EC_CACHE_H */ |