aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/board/Synology/common/legacy.h
blob: 0a814324d097774fc8b12f6dbc35b19393a504a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2021
 * Walter Schweizer <swwa@users.sourceforge.net>
 * Phil Sutter <phil@nwl.cc>
 */

#ifndef __SYNO_LEGACY_H
#define __SYNO_LEGACY_H

/* Marvell uboot parameters */
#define ATAG_MV_UBOOT 0x41000403
#define VER_NUM       0x03040400 /* 3.4.4 */

#define BOARD_ID_BASE 0x0
#define SYNO_DS109_ID (BOARD_ID_BASE + 0x15)
#define SYNO_AXP_4BAY_2BAY (0xf + 1)

#define ETHADDR_MAX	4
#define USBPORT_MAX	3

struct tag_mv_uboot {
	u32 uboot_version;
	u32 tclk;
	u32 sysclk;
	u32 isusbhost;
	u8 macaddr[ETHADDR_MAX][ETH_ALEN];
	u16 mtu[ETHADDR_MAX];
	u32 fw_image_base;
	u32 fw_image_size;
};

#endif /* __SYNO_LEGACY_H */