From a1e6ba1c680eff3352f8111fc73d9b9562d401aa Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Tue, 30 Oct 2012 10:32:24 +0100 Subject: fixed output polarity of backlight control for GTA04b4 board --- u-boot/board/goldelico/gta04/backlight.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/u-boot/board/goldelico/gta04/backlight.c b/u-boot/board/goldelico/gta04/backlight.c index f5ec6e9..19a7306 100644 --- a/u-boot/board/goldelico/gta04/backlight.c +++ b/u-boot/board/goldelico/gta04/backlight.c @@ -81,6 +81,9 @@ void backlight_set_level(int level) // 0..255 { +#if defined(CONFIG_GOLDELICO_EXPANDER_B4) + level=255-level; // reversed polarity by T401 +#endif #if USE_PWM struct gptimer *gpt_base = (struct gptimer *)GPT_BACKLIGHT; // writel(value, &gpt_base->registername); @@ -133,7 +136,7 @@ int backlight_init(void) if(omap_request_gpio(GPIO_BACKLIGHT) == 0) // 0 == ok { omap_set_gpio_direction(GPIO_BACKLIGHT, 0); // output - printf("did backlight_init() on GPIO_%d\n", GPIO_BACKLIGHT); + printf("did backlight_init() on GPIO_%d\n", GPIO_BACKLIGHT); } else { -- cgit v1.1