blob: 8a096b15bfb271b31d710a8a6a102a1ca675c6b2 [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
Neil Armstrongb8ada582019-10-11 17:33:56 +02007#include <dm.h>
Simon Glass09140112020-05-10 11:40:03 -06008#include <env.h>
Neil Armstrongb8ada582019-10-11 17:33:56 +02009#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{
Neil Armstrongb8ada582019-10-11 17:33:56 +020020 meson_generate_serial_ethaddr();
21
22 env_set("serial#", "AMLG12ASEI610");
23
24 return 0;
25}