mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / intel / common / block / include / intelblocks / graphics.h
blob3093921991c297f984a1a35492c30294245fbf70
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef SOC_INTEL_COMMON_BLOCK_GRAPHICS_H
4 #define SOC_INTEL_COMMON_BLOCK_GRAPHICS_H
6 #include <device/device.h>
7 #include <stdint.h>
9 /*
10 * SoC overrides
12 * All new SoC must implement below functionality.
16 * Perform Graphics/Panel Initialization in ramstage
17 * Input:
18 * struct device *dev: device structure
20 void graphics_soc_panel_init(struct device *dev);
22 /* i915 controller info for ACPI backlight controls */
23 const struct i915_gpu_controller_info *
24 intel_igd_get_controller_info(const struct device *device);
26 /* Graphics MMIO register read/write APIs */
27 uint32_t graphics_gtt_read(unsigned long reg);
28 void graphics_gtt_write(unsigned long reg, uint32_t data);
29 void graphics_gtt_rmw(unsigned long reg, uint32_t andmask, uint32_t ormask);
30 uintptr_t graphics_get_framebuffer_address(void);
32 #endif /* SOC_INTEL_COMMON_BLOCK_GRAPHICS_H */