36 " No discrete GPU present.\n");
46 " Disabling integrated GPU.\n");
52 " Disabling discrete GPU.\n");
58 " Activating Switchable (both GPUs).\n");
68 if (
config->has_dgpu_power_gpio) {
71 !
config->dgpu_power_off_lvl);
74 config->dgpu_power_off_lvl);
75 }
else if (
config->has_thinker1) {
77 if (*enable_peg != power_en)
81 " FIXME: dGPU power handling not implemented\n");
#define printk(level,...)
DEVTREE_CONST struct device * dev_find_slot_pnp(u16 port, u16 device)
Given a PnP port and a device number, find the device structure.
#define HYBRID_GRAPHICS_PORT
#define HYBRID_GRAPHICS_DEFAULT_GPU
@ HYBRID_GRAPHICS_DISCRETE
@ HYBRID_GRAPHICS_INTEGRATED
#define HYBRID_GRAPHICS_DEVICE
void early_hybrid_graphics(bool *enable_igd, bool *enable_peg)
int get_gpio(int community_base, int pad0_offset)
static void enable_igd(const sysinfo_t *const sysinfo, const int no_peg)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
unsigned int get_uint_option(const char *name, const unsigned int fallback)
bool pmh7_dgpu_power_state(void)
void pmh7_dgpu_power_enable(int onoff)
void set_gpio(int gpio_num, int value)
DEVTREE_CONST void * chip_info