]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: clean up some header paths
authorAnthony Koo <Anthony.Koo@amd.com>
Wed, 22 Apr 2020 22:07:50 +0000 (18:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:17:29 +0000 (16:17 -0400)
[Why]
Some include paths don't need to have relative paths
And some types missing

[How]
make some changes to headers and modify include path

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h
drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
drivers/gpu/drm/amd/display/dmub/inc/dmub_types.h

index 754b6077539cf8a0b8f6ff3778106cc7d288f6b3..8554314836990c54d36af6d4587d94256be8ed88 100644 (file)
@@ -27,7 +27,7 @@
 #define _DMUB_DC_SRV_H_
 
 #include "os_types.h"
-#include "../dmub/inc/dmub_cmd.h"
+#include "dmub/inc/dmub_cmd.h"
 
 struct dmub_srv;
 struct dmub_cmd_header;
index a19f359e45d76bcda1d242ae381e5f1383176d15..992d869188c5e3b3aa1d8b4b95955d4e37687fd2 100644 (file)
@@ -27,7 +27,7 @@
 #include "dce_abm.h"
 #include "dc.h"
 #include "dc_dmub_srv.h"
-#include "../../dmub/inc/dmub_srv.h"
+#include "dmub/inc/dmub_srv.h"
 #include "core_types.h"
 #include "dm_services.h"
 #include "reg_helper.h"
index 3b8a49e8e665bb2240a1b1afc6f1aa64cb0572d7..7b32e5d60ed6f4d095a2cf24aa4121f35f93dad4 100644 (file)
@@ -26,8 +26,8 @@
 #include "dmub_psr.h"
 #include "dc.h"
 #include "dc_dmub_srv.h"
-#include "../../dmub/inc/dmub_srv.h"
-#include "../../dmub/inc/dmub_gpint_cmd.h"
+#include "dmub/inc/dmub_srv.h"
+#include "dmub/inc/dmub_gpint_cmd.h"
 #include "core_types.h"
 
 #define MAX_PIPES 6
index 7c7a3561b6aaac178a0bb2641199b694dd65eefb..6b48285446c3515d337e2bb18b53266e0ed7527a 100644 (file)
@@ -215,11 +215,6 @@ struct dmub_rb_cmd_dpphy_init {
        uint8_t reserved[60];
 };
 
-struct dmub_psr_debug_flags {
-       uint8_t visual_confirm : 1;
-       uint8_t reserved : 7;
-};
-
 struct dmub_cmd_psr_copy_settings_data {
        uint16_t psr_level;
        uint8_t dpp_inst;
index 41d524b0db2f3dbac64ab45d4f17c7e17486d62b..bed5b023a3967ac95a6eb575b5c2a308eb38e3ee 100644 (file)
@@ -49,6 +49,12 @@ extern "C" {
 #define dmub_udelay(microseconds) udelay(microseconds)
 #endif
 
+/* Maximum number of streams on any ASIC. */
+#define DMUB_MAX_STREAMS 6
+
+/* Maximum number of planes on any ASIC. */
+#define DMUB_MAX_PLANES 6
+
 union dmub_addr {
        struct {
                uint32_t low_part;
@@ -57,6 +63,11 @@ union dmub_addr {
        uint64_t quad_part;
 };
 
+struct dmub_psr_debug_flags {
+       uint8_t visual_confirm : 1;
+       uint8_t reserved : 7;
+};
+
 #if defined(__cplusplus)
 }
 #endif