diff options
| author | Ian Ray <[email protected]> | 2019-11-12 19:15:14 +0000 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2020-01-07 10:26:56 +0100 |
| commit | 08ecab0c475827c6751e88d97f7379d5e4cdb5e0 (patch) | |
| tree | fb78fecfb6530dfd3a9e41cf31a65a25fa6d63db | |
| parent | 05de20082d93af63bad4deb72e883144f2010c53 (diff) | |
board: ge: bx50v3: Fix run-time warning
Fix GPIO reservation warning on code paths that do not need LVDS power.
Signed-off-by: Ian Ray <[email protected]>
Signed-off-by: Robert Beckett <[email protected]>
| -rw-r--r-- | board/ge/bx50v3/bx50v3.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c index 5a5f6abb8e1..59ec9a0d240 100644 --- a/board/ge/bx50v3/bx50v3.c +++ b/board/ge/bx50v3/bx50v3.c @@ -714,20 +714,23 @@ int ft_board_setup(void *blob, bd_t *bd) static int do_backlight_enable(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { #ifdef CONFIG_VIDEO_IPUV3 - /* We need at least 200ms between power on and backlight on - * as per specifications from CHI MEI */ - mdelay(250); + if (!is_b850v3()) { + /* We need at least 200ms between power on and backlight on + * as per specifications from CHI MEI + */ + mdelay(250); - /* enable backlight PWM 1 */ - pwm_init(0, 0, 0); + /* enable backlight PWM 1 */ + pwm_init(0, 0, 0); - /* duty cycle 5000000ns, period: 5000000ns */ - pwm_config(0, 5000000, 5000000); + /* duty cycle 5000000ns, period: 5000000ns */ + pwm_config(0, 5000000, 5000000); - /* Backlight Power */ - gpio_direction_output(LVDS_BACKLIGHT_GP, 1); + /* Backlight Power */ + gpio_direction_output(LVDS_BACKLIGHT_GP, 1); - pwm_enable(0); + pwm_enable(0); + } #endif return 0; |
