32 " Switching panel to discrete GPU.\n");
34 if (
config->has_panel_hybrid_gpio)
36 !
config->panel_integrated_lvl);
38 if (
config->has_backlight_gpio)
40 !
config->backlight_integrated_lvl);
43 " Switching panel to integrated GPU.\n");
45 if (
config->has_panel_hybrid_gpio)
47 config->panel_integrated_lvl);
49 if (
config->has_backlight_gpio)
51 config->backlight_integrated_lvl);
56 CHIP_NAME(
"Lenovo hybrid graphics driver")
#define printk(level,...)
#define HYBRID_GRAPHICS_DEFAULT_GPU
@ HYBRID_GRAPHICS_DISCRETE
int get_gpio(int community_base, int pad0_offset)
struct chip_operations drivers_lenovo_hybrid_graphics_ops
static void lenovo_hybrid_graphics_enable(struct device *dev)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
unsigned int get_uint_option(const char *name, const unsigned int fallback)
void set_gpio(int gpio_num, int value)
DEVTREE_CONST void * chip_info