[U-Boot] [PATCH v2] odroid: Turn blue LED on
Przemyslaw Marczak
p.marczak at samsung.com
Tue Nov 18 12:23:46 CET 2014
Hello Suriyan,
On 11/18/2014 12:50 AM, Suriyan Ramasami wrote:
> To indicate that U-Boot is active, turn on the blue LED.
>
> Signed-off-by: Suriyan Ramasami <suriyan.r at gmail.com>
>
> ---
>
> 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(+)
>
> diff --git a/board/samsung/odroid/odroid.c b/board/samsung/odroid/odroid.c
> index 33003ee..e1a86f9 100644
> --- a/board/samsung/odroid/odroid.c
> +++ b/board/samsung/odroid/odroid.c
> @@ -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)
>
Acked-by: Przemyslaw Marczak <p.marczak at samsung.com>
Best regards,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com
More information about the U-Boot
mailing list