Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / board / amlogic / sei610 / sei610.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2016 BayLibre, SAS
4  * Author: Neil Armstrong <narmstrong@baylibre.com>
5  */
6
7 #include <common.h>
8 #include <dm.h>
9 #include <env.h>
10 #include <env_internal.h>
11 #include <init.h>
12 #include <net.h>
13 #include <asm/io.h>
14 #include <asm/arch/axg.h>
15 #include <asm/arch/sm.h>
16 #include <asm/arch/eth.h>
17 #include <asm/arch/mem.h>
18
19 int misc_init_r(void)
20 {
21         meson_eth_init(PHY_INTERFACE_MODE_RMII,
22                        MESON_USE_INTERNAL_RMII_PHY);
23
24         meson_generate_serial_ethaddr();
25
26         env_set("serial#", "AMLG12ASEI610");
27
28         return 0;
29 }