--- /dev/null
+ /* SPDX-License-Identifier: MIT */
+ /*
+ * Copyright © 2022 Intel Corporation
+ */
+
+ #ifndef __INTEL_DMC_REGS_H__
+ #define __INTEL_DMC_REGS_H__
+
+ #include "i915_reg_defs.h"
+
+ #define DMC_PROGRAM(addr, i) _MMIO((addr) + (i) * 4)
+ #define DMC_SSP_BASE_ADDR_GEN9 0x00002FC0
+ #define DMC_HTP_ADDR_SKL 0x00500034
+ #define DMC_SSP_BASE _MMIO(0x8F074)
+ #define DMC_HTP_SKL _MMIO(0x8F004)
+ #define DMC_LAST_WRITE _MMIO(0x8F034)
+ #define DMC_LAST_WRITE_VALUE 0xc003b400
+ #define DMC_MMIO_START_RANGE 0x80000
+ #define DMC_MMIO_END_RANGE 0x8FFFF
++#define DMC_V1_MMIO_START_RANGE 0x80000
++#define TGL_MAIN_MMIO_START 0x8F000
++#define TGL_MAIN_MMIO_END 0x8FFFF
++#define _TGL_PIPEA_MMIO_START 0x92000
++#define _TGL_PIPEA_MMIO_END 0x93FFF
++#define _TGL_PIPEB_MMIO_START 0x96000
++#define _TGL_PIPEB_MMIO_END 0x97FFF
++#define ADLP_PIPE_MMIO_START 0x5F000
++#define ADLP_PIPE_MMIO_END 0x5FFFF
++
++#define TGL_PIPE_MMIO_START(dmc_id) _PICK_EVEN(((dmc_id) - 1), _TGL_PIPEA_MMIO_START,\
++ _TGL_PIPEB_MMIO_START)
++
++#define TGL_PIPE_MMIO_END(dmc_id) _PICK_EVEN(((dmc_id) - 1), _TGL_PIPEA_MMIO_END,\
++ _TGL_PIPEB_MMIO_END)
++
+ #define SKL_DMC_DC3_DC5_COUNT _MMIO(0x80030)
+ #define SKL_DMC_DC5_DC6_COUNT _MMIO(0x8002C)
+ #define BXT_DMC_DC3_DC5_COUNT _MMIO(0x80038)
+ #define TGL_DMC_DEBUG_DC5_COUNT _MMIO(0x101084)
+ #define TGL_DMC_DEBUG_DC6_COUNT _MMIO(0x101088)
+ #define DG1_DMC_DEBUG_DC5_COUNT _MMIO(0x134154)
+
+ #define TGL_DMC_DEBUG3 _MMIO(0x101090)
+ #define DG1_DMC_DEBUG3 _MMIO(0x13415c)
+
+ #endif /* __INTEL_DMC_REGS_H__ */
* encoder block has CEC support.
*/
+ #include <drm/display/drm_hdmi_helper.h>
+ #include <drm/display/drm_scdc_helper.h>
#include <drm/drm_atomic_helper.h>
- #include <drm/drm_edid.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_simple_kms_helper.h>
- #include <drm/drm_scdc_helper.h>
#include <linux/clk.h>
#include <linux/component.h>
+#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/of_address.h>
#include <linux/of_gpio.h>
}
EXPORT_SYMBOL_GPL(of_platform_default_populate);
- #ifndef CONFIG_PPC
static const struct of_device_id reserved_mem_matches[] = {
+ { .compatible = "phram" },
{ .compatible = "qcom,rmtfs-mem" },
{ .compatible = "qcom,cmd-db" },
{ .compatible = "qcom,smem" },
}
#endif
- #ifdef CONFIG_SYSFB
extern void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
- #else
- static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt) { }
- #endif
+struct linux_efi_coco_secret_area {
+ u64 base_pa;
+ u64 size;
+};
+
+/* Header of a populated EFI secret area */
+#define EFI_SECRET_TABLE_HEADER_GUID EFI_GUID(0x1e74f542, 0x71dd, 0x4d66, 0x96, 0x3e, 0xef, 0x42, 0x87, 0xff, 0x17, 0x3b)
+
#endif /* _LINUX_EFI_H */