u-boot/board/Synology/ds414/cmd_syno.h
Phil Sutter a770159f88 arm: mvebu: ds414: Auto-populate env if appropriate
Define a misc_init_r() which calls "syno populate_env" if the
environment seems incomplete (or default), indicated by missing
"ethaddr" variable. With this in place, no random MAC address fallback
is needed anymore.

Signed-off-by: Phil Sutter <phil@nwl.cc>
2021-04-08 08:50:41 +02:00

18 lines
351 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Commands to deal with Synology specifics.
*
* Copyright (C) 2021 Phil Sutter <phil@nwl.cc>
*/
#ifndef _CMD_SYNO_H
#define _CMD_SYNO_H
#define SYNO_ETHADDR_MAX 4
#define SYNO_SN_TAG "SN="
#define SYNO_CHKSUM_TAG "CHK="
int do_syno_populate(int argc, char *const argv[]);
#endif /* _CMD_SYNO_H */