blob: 17fed2e79253c5d8a47dd07d7c98841df3a5d67b [file] [log] [blame]
Horatiu Vultur85653272019-01-31 15:30:36 +01001/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2/*
3 * Copyright (c) 2018 Microsemi Corporation
4 */
5
6#include <common.h>
7
8#define ETH_LEN 6
9#define MAC_VID 1
10
11enum mscc_regs_ana_table {
12 MSCC_ANA_TABLES_MACHDATA,
13 MSCC_ANA_TABLES_MACLDATA,
14 MSCC_ANA_TABLES_MACACCESS,
15};
16
17int mscc_mac_table_add(void __iomem *regs,
18 const unsigned long *mscc_mac_table_offset,
19 const unsigned char mac[ETH_LEN], int pgid);