blob: 5c24276d51088c0508bf5678cb979d82e83b9bb5 [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 Glass90526e92020-05-10 11:39:56 -060010#include <net.h>
Neil Armstrongb8ada582019-10-11 17:33:56 +020011#include <asm/io.h>
12#include <asm/arch/axg.h>
13#include <asm/arch/sm.h>
14#include <asm/arch/eth.h>
15#include <asm/arch/mem.h>
16
17int misc_init_r(void)
18{
19 meson_eth_init(PHY_INTERFACE_MODE_RMII,
20 MESON_USE_INTERNAL_RMII_PHY);
21
22 meson_generate_serial_ethaddr();
23
24 env_set("serial#", "AMLG12ASEI610");
25
26 return 0;
27}