coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
leds.c File Reference
#include <assert.h>
#include <soc/ti/am335x/gpio.h>
#include "leds.h"
Include dependency graph for leds.c:

Go to the source code of this file.

Functions

void beaglebone_leds_init (void)
 
void beaglebone_leds_set (enum beaglebone_led led, int on)
 

Variables

static const int led_gpios [BEAGLEBONE_LED_COUNT]
 

Function Documentation

◆ beaglebone_leds_init()

void beaglebone_leds_init ( void  )

Definition at line 15 of file leds.c.

References ARRAY_SIZE, gpio_direction_output(), and led_gpios.

Referenced by bootblock_mainboard_early_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ beaglebone_leds_set()

void beaglebone_leds_set ( enum beaglebone_led  led,
int  on 
)

Definition at line 23 of file leds.c.

References ARRAY_SIZE, ASSERT, gpio_set_value(), and led_gpios.

Referenced by bootblock_mainboard_early_init().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ led_gpios

const int led_gpios[BEAGLEBONE_LED_COUNT]
static
Initial value:
= {
}
@ BEAGLEBONE_LED_USR3
Definition: leds.h:10
@ BEAGLEBONE_LED_USR0
Definition: leds.h:7
@ BEAGLEBONE_LED_USR1
Definition: leds.h:8
@ BEAGLEBONE_LED_USR2
Definition: leds.h:9
@ AM335X_GPIO_BITS_PER_BANK
Definition: gpio.h:9

Definition at line 8 of file leds.c.

Referenced by beaglebone_leds_init(), and beaglebone_leds_set().