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 /* Marvell uboot parameters */ 12 #define ATAG_MV_UBOOT 0x41000403 13 #define VER_NUM 0x03040400 /* 3.4.4 */ 14 15 #define BOARD_ID_BASE 0x0 16 #define SYNO_DS109_ID (BOARD_ID_BASE + 0x15) 17 #define SYNO_AXP_4BAY_2BAY (0xf + 1) 18 19 #define ETHADDR_MAX 4 20 #define USBPORT_MAX 3 21 22 struct tag_mv_uboot { 23 u32 uboot_version; 24 u32 tclk; 25 u32 sysclk; 26 u32 isusbhost; 27 u8 macaddr[ETHADDR_MAX][ETH_ALEN]; 28 u16 mtu[ETHADDR_MAX]; 29 u32 fw_image_base; 30 u32 fw_image_size; 31 }; 32 33 #endif /* __SYNO_LEGACY_H */ 34