]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
odroid: Turn blue LED on
authorSuriyan Ramasami <suriyan.r@gmail.com>
Mon, 24 Nov 2014 06:15:32 +0000 (22:15 -0800)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 24 Nov 2014 06:53:34 +0000 (15:53 +0900)
To indicate that U-Boot is active, turn on the blue LED.

Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/odroid/odroid.c

index a2c008e76e587984350a91bce04453dd7b802c97..b7d23817e143016688d332fbf1da1acd925fe6c2 100644 (file)
@@ -383,6 +383,11 @@ static void board_gpio_init(void)
        gpio_set_drv(EXYNOS4X12_GPIO_X31, S5P_GPIO_DRV_4X);
        gpio_direction_input(EXYNOS4X12_GPIO_X31);
 
+       /* Blue LED (Odroid X2/U2/U3) */
+       gpio_request(EXYNOS4X12_GPIO_C10, "Blue LED");
+
+       gpio_direction_output(EXYNOS4X12_GPIO_C10, 0);
+
 #ifdef CONFIG_CMD_USB
        /* USB3503A Reference frequency */
        gpio_request(EXYNOS4X12_GPIO_X30, "USB3503A RefFreq");