1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2021
4  * Walter Schweizer <swwa@users.sourceforge.net>
5  * Phil Sutter <phil@nwl.cc>
6  */
7 
8 #ifndef __SYNO_LEGACY_H
9 #define __SYNO_LEGACY_H
10 
11 #include <linux/if_ether.h>
12 
13 /* Marvell uboot parameters */
14 #define ATAG_MV_UBOOT 0x41000403
15 #define VER_NUM       0x03040400 /* 3.4.4 */
16 
17 #define BOARD_ID_BASE 0x0
18 #define SYNO_DS109_ID (BOARD_ID_BASE + 0x15)
19 #define SYNO_AXP_4BAY_2BAY (0xf + 1)
20 
21 #define ETHADDR_MAX	4
22 #define USBPORT_MAX	3
23 
24 struct tag_mv_uboot {
25 	u32 uboot_version;
26 	u32 tclk;
27 	u32 sysclk;
28 	u32 isusbhost;
29 	u8 macaddr[ETHADDR_MAX][ETH_ALEN];
30 	u16 mtu[ETHADDR_MAX];
31 	u32 fw_image_base;
32 	u32 fw_image_size;
33 };
34 
35 #endif /* __SYNO_LEGACY_H */
36