blob: 3c44fba5161d8a7429f786eae6bd0fc487172c37 [file] [log] [blame]
Neil Armstrongb8ada582019-10-11 17:33:56 +02001// 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_internal.h>
Simon Glass691d7192020-05-10 11:40:02 -060010#include <init.h>
Simon Glass90526e92020-05-10 11:39:56 -060011#include <net.h>
Neil Armstrongb8ada582019-10-11 17:33:56 +020012#include <asm/io.h>
13#include <asm/arch/axg.h>
14#include <asm/arch/sm.h>
15#include <asm/arch/eth.h>
16#include <asm/arch/mem.h>
17
18int misc_init_r(void)
19{
20 meson_eth_init(PHY_INTERFACE_MODE_RMII,
21 MESON_USE_INTERNAL_RMII_PHY);
22
23 meson_generate_serial_ethaddr();
24
25 env_set("serial#", "AMLG12ASEI610");
26
27 return 0;
28}