1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright 2023 Collabora ltd. */ 3 /* Copyright 2023 Amazon.com, Inc. or its affiliates. */ 4 5 #include <linux/debugfs.h> 6 #include <linux/platform_device.h> 7 #include <drm/drm_debugfs.h> 8 #include <drm/drm_file.h> 9 #include <drm/panfrost_drm.h> 10 11 #include "panfrost_device.h" 12 #include "panfrost_gpu.h" 13 #include "panfrost_debugfs.h" 14 panfrost_debugfs_init(struct drm_minor * minor)15void panfrost_debugfs_init(struct drm_minor *minor) 16 { 17 struct drm_device *dev = minor->dev; 18 struct panfrost_device *pfdev = platform_get_drvdata(to_platform_device(dev->dev)); 19 20 debugfs_create_atomic_t("profile", 0600, minor->debugfs_root, &pfdev->profile_mode); 21 } 22