diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2012-10-30 10:32:24 +0100 |
---|---|---|
committer | H. Nikolaus Schaller <hns@goldelico.com> | 2012-10-30 10:32:24 +0100 |
commit | a1e6ba1c680eff3352f8111fc73d9b9562d401aa (patch) | |
tree | 5c8b8c0084122b046eea2d99bdeb1211bf4635e4 | |
parent | bda12bcf567b6a70ef4d1e122ffdd00afc726b79 (diff) | |
download | bootable_bootloader_goldelico_gta04-a1e6ba1c680eff3352f8111fc73d9b9562d401aa.zip bootable_bootloader_goldelico_gta04-a1e6ba1c680eff3352f8111fc73d9b9562d401aa.tar.gz bootable_bootloader_goldelico_gta04-a1e6ba1c680eff3352f8111fc73d9b9562d401aa.tar.bz2 |
fixed output polarity of backlight control for GTA04b4 board
-rw-r--r-- | u-boot/board/goldelico/gta04/backlight.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |