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: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
parent
563a8d11a4
commit
a8f8c1c185
1 changed files with 6 additions and 4 deletions
|
@ -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)
|
static int mcux_elcdif_display_blanking_off(const struct device *dev)
|
||||||
{
|
{
|
||||||
LOG_ERR("Display blanking control not implemented");
|
const struct mcux_elcdif_config *config = dev->config;
|
||||||
return -ENOTSUP;
|
|
||||||
|
return gpio_pin_set_dt(&config->backlight_gpio, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mcux_elcdif_display_blanking_on(const struct device *dev)
|
static int mcux_elcdif_display_blanking_on(const struct device *dev)
|
||||||
{
|
{
|
||||||
LOG_ERR("Display blanking control not implemented");
|
const struct mcux_elcdif_config *config = dev->config;
|
||||||
return -ENOTSUP;
|
|
||||||
|
return gpio_pin_set_dt(&config->backlight_gpio, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mcux_elcdif_set_brightness(const struct device *dev,
|
static int mcux_elcdif_set_brightness(const struct device *dev,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue