lib/smbios: Improve Type9
[coreboot2.git] / src / drivers / lenovo / hybrid_graphics / chip.h
blobb3ea2b6d2f0ca07b00284a088b25349942b91b24
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef _LENOVO_HYBRID_GRAPHICS_CHIP_H_
4 #define _LENOVO_HYBRID_GRAPHICS_CHIP_H_
6 #define HYBRID_GRAPHICS_PORT 0xff
8 #define HYBRID_GRAPHICS_DEVICE 0xf
10 enum hybrid_graphics_req {
11 HYBRID_GRAPHICS_INTEGRATED = 0,
12 HYBRID_GRAPHICS_DISCRETE = 1,
13 HYBRID_GRAPHICS_DUAL = 2
16 enum dgpu_detect_lvl {
17 DGPU_INSTALLED = 0,
18 DGPU_NOT_INSTALLED = 1,
21 #define HYBRID_GRAPHICS_DEFAULT_GPU HYBRID_GRAPHICS_INTEGRATED
23 struct drivers_lenovo_hybrid_graphics_config {
24 unsigned int detect_gpio;
26 unsigned int has_panel_hybrid_gpio;
27 unsigned int panel_hybrid_gpio;
28 unsigned int panel_integrated_lvl;
30 unsigned int has_backlight_gpio;
31 unsigned int backlight_gpio;
32 unsigned int backlight_integrated_lvl;
34 unsigned int has_dgpu_power_gpio;
35 unsigned int dgpu_power_gpio;
36 unsigned int dgpu_power_off_lvl;
38 unsigned int has_thinker1;
41 #endif /* _LENOVO_HYBRID_GRAPHICS_CHIP_H_ */