Jerome Brunet | 0998367 | 2019-02-15 13:53:59 +0100 | [diff] [blame] | 1 | // 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 Glass | 0914011 | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 9 | #include <env.h> |
Tom Rini | 60f38d8 | 2019-08-12 18:48:34 -0400 | [diff] [blame] | 10 | #include <env_internal.h> |
Simon Glass | 691d719 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 11 | #include <init.h> |
Simon Glass | 90526e9 | 2020-05-10 11:39:56 -0600 | [diff] [blame] | 12 | #include <net.h> |
Jerome Brunet | 0998367 | 2019-02-15 13:53:59 +0100 | [diff] [blame] | 13 | #include <asm/io.h> |
| 14 | #include <asm/arch/axg.h> |
| 15 | #include <asm/arch/sm.h> |
| 16 | #include <asm/arch/eth.h> |
| 17 | #include <asm/arch/mem.h> |
| 18 | |
| 19 | int misc_init_r(void) |
| 20 | { |
Jerome Brunet | 0998367 | 2019-02-15 13:53:59 +0100 | [diff] [blame] | 21 | meson_generate_serial_ethaddr(); |
| 22 | |
| 23 | env_set("serial#", "AMLG12ASEI510"); |
| 24 | |
| 25 | return 0; |
| 26 | } |