blob: b081942dccfb8753b6f424ac509542f6a0c779f2 [file] [log] [blame]
Neil Armstrongb72794e2018-09-05 15:57:11 +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>
Simon Glass691d7192020-05-10 11:40:02 -06009#include <init.h>
Simon Glass90526e92020-05-10 11:39:56 -060010#include <net.h>
Neil Armstrongb72794e2018-09-05 15:57:11 +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
Neil Armstrongb72794e2018-09-05 15:57:11 +020017int misc_init_r(void)
18{
19 meson_eth_init(PHY_INTERFACE_MODE_RGMII, 0);
20
Neil Armstrong394c6b02020-09-10 10:50:39 +020021 meson_generate_serial_ethaddr();
22
Neil Armstrongb72794e2018-09-05 15:57:11 +020023 return 0;
24}