summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoy Cho <joy.cho@hardkernel.com>2020-11-06 11:57:04 +0300
committerJoy Cho <joy.cho@hardkernel.com>2020-12-02 10:32:46 +0300
commit3e4bdef252685fb3faa60ae9a3a491565dbc0baa (patch)
tree230a449b663ca783c5a049e772efb2889c2d130a
parent7a2e2b3a3348b2b1489ed7e200e8133c2e9c33e0 (diff)
downloadu-boot-3e4bdef252685fb3faa60ae9a3a491565dbc0baa.tar.xz
ODROID-GO3: Keep pwr led on by default
Change-Id: I1628fbebb3a98c8696d105e6ea539d6dc428f28d
-rw-r--r--board/rockchip/odroidgo3/odroidgo3_power.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/rockchip/odroidgo3/odroidgo3_power.c b/board/rockchip/odroidgo3/odroidgo3_power.c
index 813f8859e1..131d5e43ab 100644
--- a/board/rockchip/odroidgo3/odroidgo3_power.c
+++ b/board/rockchip/odroidgo3/odroidgo3_power.c
@@ -33,15 +33,15 @@ void board_pwr_led(bool on)
int odroid_check_dcjack(void)
{
- gpio_request(DC_DET_GPIO, "dc_det_gpio");
+ /* set pwr led on by default */
+ board_pwr_led(true);
+ gpio_request(DC_DET_GPIO, "dc_det_gpio");
if (gpio_get_value(DC_DET_GPIO)) {
debug("dc jack is connected\n");
- board_pwr_led(1);
return 1;
} else {
debug("dc jack is NOT connected\n");
- board_pwr_led(0);
return 0;
}
}