Commit a8f8c1c1 authored by Mahesh Mahadevan's avatar Mahesh Mahadevan Committed by Maureen Helm
Browse files

drivers: display: Add blanking support for NXP ELCDIF driver



Implement the blanking_on and blanking_off API functions for
NXP's MCUX ELCDIF display driver

Signed-off-by: default avatarMahesh Mahadevan <mahesh.mahadevan@nxp.com>
parent 563a8d11
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -114,14 +114,16 @@ static void *mcux_elcdif_get_framebuffer(const struct device *dev)

static int mcux_elcdif_display_blanking_off(const struct device *dev)
{
	LOG_ERR("Display blanking control not implemented");
	return -ENOTSUP;
	const struct mcux_elcdif_config *config = dev->config;

	return gpio_pin_set_dt(&config->backlight_gpio, 1);
}

static int mcux_elcdif_display_blanking_on(const struct device *dev)
{
	LOG_ERR("Display blanking control not implemented");
	return -ENOTSUP;
	const struct mcux_elcdif_config *config = dev->config;

	return gpio_pin_set_dt(&config->backlight_gpio, 0);
}

static int mcux_elcdif_set_brightness(const struct device *dev,