summaryrefslogtreecommitdiffstats
path: root/include/bcm_bca_leds.h
blob: f0887a5153361de589601730b7374ea9bf425f29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (c) 2019 Broadcom
 */
/*

*/

#ifndef __BCM_BCA_LEDCTRL_H
#define __BCM_BCA_LEDCTRL_H

#if defined(CONFIG_BCM_BCA_LED)

#include <dm.h>
#include <dm/ofnode.h>

typedef struct
{
    uint32_t port_id;
    uint32_t skip_in_aggregate;
    uint32_t link[4];
    uint32_t activity[4];
}bca_leds_info_t;

struct udevice * bca_led_request_sw_led(ofnode dn, const char *consumer_led_name);
void bca_led_request_network_leds(ofnode dn, bca_leds_info_t *leds_info);
#endif
#endif