Skip to contentSkip to conversation

odroid: Turn blue LED on

PATCH Superseded Suriyan Ramasami 3 participants 3 messages Nov 17, 2014 – Nov 24, 2014

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 odroid: Turn blue LED on

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

---

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 33003ee..e1a86f9 100644
@@ -382,6 +382,11 @@ static void board_gpio_init(void)
 	gpio_set_pull(EXYNOS4X12_GPIO_X31, S5P_GPIO_PULL_UP);
 	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);
 }
 
 static int pmic_init_max77686(void)
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH v2 1/1 odroid: Turn blue LED on

Hello Suriyan,

Quoted 22 lines · Suriyan Ramasami

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

---

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 +0 -0
index 33003ee..e1a86f9 100644
@@ -382,6 +382,11 @@ static void board_gpio_init(void)
  	gpio_set_pull(EXYNOS4X12_GPIO_X31, S5P_GPIO_PULL_UP);

board/samsung/odroid/odroid.c static void board_gpio_init(void) · line 392

Quoted 10 lines
board/samsung/odroid/odroid.c +5 -0
  	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);
  }
 
  static int pmic_init_max77686(void)

Best regards,

Signature · 4 lines
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com
#2 lore raw

PATCH v2 1/1 odroid: Turn blue LED on

In reply to Suriyan Ramasami

Dear Suriyan Ramasami,

Quoted 22 lines · Suriyan Ramasami

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

---

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 +0 -0
index 33003ee..e1a86f9 100644
@@ -382,6 +382,11 @@ static void board_gpio_init(void)
 	gpio_set_pull(EXYNOS4X12_GPIO_X31, S5P_GPIO_PULL_UP);

board/samsung/odroid/odroid.c static void board_gpio_init(void) · line 392

Quoted 10 lines
board/samsung/odroid/odroid.c +5 -0
 	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);
 }
 
 static int pmic_init_max77686(void)

Because board_gpio_init was changed by you, please rebase this patch.

Thanks,
Minkyu Kang.