blob: 5de610d85fc8d20899cf926be00e66949100b235 [file] [log] [blame]
Jerome Brunet09983672019-02-15 13:53:59 +01001// 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>
Tom Rini60f38d82019-08-12 18:48:34 -04009#include <env_internal.h>
Jerome Brunet09983672019-02-15 13:53:59 +010010#include <asm/io.h>
11#include <asm/arch/axg.h>
12#include <asm/arch/sm.h>
13#include <asm/arch/eth.h>
14#include <asm/arch/mem.h>
15
16int misc_init_r(void)
17{
18 meson_eth_init(PHY_INTERFACE_MODE_RMII,
19 MESON_USE_INTERNAL_RMII_PHY);
20
21 meson_generate_serial_ethaddr();
22
23 env_set("serial#", "AMLG12ASEI510");
24
25 return 0;
26}