mediatek: add v5.4 support
[openwrt/openwrt.git] / target / linux / mediatek / files-5.4 / 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_ */