xref: /linux/drivers/media/platform/qcom/venus/dbgfs.c (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (C) 2020 Linaro Ltd.
4  */
5 
6 #include <linux/debugfs.h>
7 
8 #include "core.h"
9 
10 void venus_dbgfs_init(struct venus_core *core)
11 {
12 	core->root = debugfs_create_dir("venus", NULL);
13 	debugfs_create_x32("fw_level", 0644, core->root, &venus_fw_debug);
14 }
15 
16 void venus_dbgfs_deinit(struct venus_core *core)
17 {
18 	debugfs_remove_recursive(core->root);
19 }
20