mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-29 22:43:10 +00:00
e471ddf0f3
Move the relevant bits from ds109.{c,h} into common/ and adjust the code to fit both DS109 and DS414. Moreover: * Introduce syno_board_id() which translates CONFIG_MACH_TYPE into the expected board ID tag value. * Properly initialize isusbhost, mac and mtu fields from env variables. * Set the right bootargs/bootcmd to correctly boot legacy kernel out of the (DS414) box. Getting the ramdisk location right is a bit tedious. Cc: Walter Schweizer <swwa@users.sourceforge.net> Signed-off-by: Phil Sutter <phil@nwl.cc> Reviewed-by: Stefan Roese <sr@denx.de>
33 lines
675 B
C
33 lines
675 B
C
/* 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 */
|