blob: e65be4a1af37841f84bf679424bd208aebc24b8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef SOC_INTEL_COMMON_BLOCK_GRAPHICS_H
#define SOC_INTEL_COMMON_BLOCK_GRAPHICS_H
#include <device/device.h>
/*
* SoC overrides
*
* All new SoC must implement below functionality.
*/
/*
* Perform Graphics Initialization in ramstage
* Input:
* struct device *dev: device structure
*/
void graphics_soc_init(struct device *dev);
/* i915 controller info for ACPI backlight controls */
const struct i915_gpu_controller_info *
intel_igd_get_controller_info(const struct device *device);
/* Graphics MMIO register read/write APIs */
uint32_t graphics_gtt_read(unsigned long reg);
void graphics_gtt_write(unsigned long reg, uint32_t data);
void graphics_gtt_rmw(unsigned long reg, uint32_t andmask, uint32_t ormask);
uintptr_t graphics_get_memory_base(void);
#endif /* SOC_INTEL_COMMON_BLOCK_GRAPHICS_H */
|