new file mode 100644
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+// Copyright 2022 IBM Corp.
+
+#include <linux/debugfs.h>
+#include <linux/export.h>
+#include <linux/init.h>
+
+struct dentry *arch_debugfs_dir;
+EXPORT_SYMBOL(arch_debugfs_dir);
+
+static int __init aspeed_debugfs_init(void)
+{
+ arch_debugfs_dir = debugfs_create_dir("aspeed", NULL);
+ return 0;
+}
+arch_initcall(aspeed_debugfs_init);
@@ -3,3 +3,4 @@
# Copyright IBM Corp.
obj-$(CONFIG_SMP) += platsmp.o
+obj-$(CONFIG_DEBUG_FS) += debugfs.o
This will be used by other drivers to hold machine specific debugfs information. Signed-off-by: Joel Stanley <joel@jms.id.au> --- arch/arm/mach-aspeed/debugfs.c | 16 ++++++++++++++++ arch/arm/mach-aspeed/Makefile | 1 + 2 files changed, 17 insertions(+) create mode 100644 arch/arm/mach-aspeed/debugfs.c