led.c 497 B

123456789101112131415161718192021
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2007-2008
  4. * Stelian Pop <stelian@popies.net>
  5. * Lead Tech Design <www.leadtechdesign.com>
  6. */
  7. #include <common.h>
  8. #include <asm/io.h>
  9. #include <asm/arch/gpio.h>
  10. #include <status_led.h>
  11. void coloured_LED_init(void)
  12. {
  13. /* Clock is enabled in board_early_init_f() */
  14. at91_set_gpio_output(CONFIG_RED_LED, 1);
  15. at91_set_gpio_output(CONFIG_GREEN_LED, 1);
  16. at91_set_gpio_value(CONFIG_RED_LED, 0);
  17. at91_set_gpio_value(CONFIG_GREEN_LED, 1);
  18. }