Skip to contentSkip to conversation

odroid: Turn blue LED on

PATCH New Suriyan Ramasami 2 participants 2 messages Nov 24, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 odroid: Turn blue LED on

To indicate that U-Boot is active, turn on the blue LED.

---

Changes in v3:
- Minkyu Kang, Rebase

Changes in v2:
- Przemyslaw Marczak, Add gpio_request call.

Changes in v1:
- First try

 board/samsung/odroid/odroid.c | 5 +++++
 1 file changed, 5 insertions(+)
board/samsung/odroid/odroid.c +5 -0
index a2c008e..b7d2381 100644
@@ -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");
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH v3 1/1 odroid: Turn blue LED on

Quoted 9 lines · Suriyan Ramasami

To indicate that U-Boot is active, turn on the blue LED.

---

Changes in v3:
- Minkyu Kang, Rebase

Quoted 9 lines

Changes in v2:
- Przemyslaw Marczak, Add gpio_request call.

Changes in v1:
- First try

 board/samsung/odroid/odroid.c | 5 +++++
 1 file changed, 5 insertions(+)

applied to u-boot-samsung.

Thanks,
Minkyu Kang.