Commit f3e43418 authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

drm/amd/display: ifdef some code only needed for DCN

Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fe626734
...@@ -31,8 +31,10 @@ ...@@ -31,8 +31,10 @@
#include "dcn_calcs.h" #include "dcn_calcs.h"
#include "ddc_service_types.h" #include "ddc_service_types.h"
#include "dc_bios_types.h" #include "dc_bios_types.h"
#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
#include "mem_input.h" #include "mem_input.h"
#include "mpc.h" #include "mpc.h"
#endif
struct core_stream; struct core_stream;
...@@ -256,7 +258,9 @@ struct resource_pool { ...@@ -256,7 +258,9 @@ struct resource_pool {
struct abm *abm; struct abm *abm;
struct dmcu *dmcu; struct dmcu *dmcu;
#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
struct mpc *mpc; struct mpc *mpc;
#endif
const struct resource_funcs *funcs; const struct resource_funcs *funcs;
const struct resource_caps *res_cap; const struct resource_caps *res_cap;
......
...@@ -122,7 +122,9 @@ struct ipp_funcs { ...@@ -122,7 +122,9 @@ struct ipp_funcs {
struct input_pixel_processor *ipp, struct input_pixel_processor *ipp,
const struct pwl_params *params); const struct pwl_params *params);
#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
void (*ipp_destroy)(struct input_pixel_processor **ipp); void (*ipp_destroy)(struct input_pixel_processor **ipp);
#endif
}; };
#endif /* __DAL_IPP_H__ */ #endif /* __DAL_IPP_H__ */
...@@ -27,7 +27,9 @@ ...@@ -27,7 +27,9 @@
#define __DAL_OPP_H__ #define __DAL_OPP_H__
#include "hw_shared.h" #include "hw_shared.h"
#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
#include "dc_hw_types.h" #include "dc_hw_types.h"
#endif
#include "transform.h" #include "transform.h"
struct fixed31_32; struct fixed31_32;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment