mediatek: update v4.19 switch support to latest vendor version
[oweals/openwrt.git] / target / linux / mediatek / files-4.19 / drivers / net / phy / mtk / mt753x / mt753x_swconfig.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (c) 2018 MediaTek Inc.
4  * Author: Weijie Gao <weijie.gao@mediatek.com>
5  */
6
7 #ifndef _MT753X_SWCONFIG_H_
8 #define _MT753X_SWCONFIG_H_
9
10 #ifdef CONFIG_SWCONFIG
11 #include <linux/switch.h>
12 #include "mt753x.h"
13
14 int mt753x_swconfig_init(struct gsw_mt753x *gsw);
15 void mt753x_swconfig_destroy(struct gsw_mt753x *gsw);
16 #else
17 static inline int mt753x_swconfig_init(struct gsw_mt753x *gsw)
18 {
19         mt753x_apply_vlan_config(gsw);
20
21         return 0;
22 }
23
24 static inline void mt753x_swconfig_destroy(struct gsw_mt753x *gsw)
25 {
26 }
27 #endif
28
29 #endif /* _MT753X_SWCONFIG_H_ */