Neil Armstrong | c9b031e | 2019-10-11 17:33:56 +0200 | [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 | |
Neil Armstrong | c9b031e | 2019-10-11 17:33:56 +0200 | [diff] [blame] | 7 | #include <dm.h> |
Simon Glass | ed38aef | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 8 | #include <env.h> |
Neil Armstrong | c9b031e | 2019-10-11 17:33:56 +0200 | [diff] [blame] | 9 | #include <env_internal.h> |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 10 | #include <init.h> |
Simon Glass | 274e0b0 | 2020-05-10 11:39:56 -0600 | [diff] [blame] | 11 | #include <net.h> |
Neil Armstrong | c9b031e | 2019-10-11 17:33:56 +0200 | [diff] [blame] | 12 | #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 | |
| 18 | int misc_init_r(void) |
| 19 | { |
Neil Armstrong | c9b031e | 2019-10-11 17:33:56 +0200 | [diff] [blame] | 20 | meson_generate_serial_ethaddr(); |
| 21 | |
| 22 | env_set("serial#", "AMLG12ASEI610"); |
| 23 | |
| 24 | return 0; |
| 25 | } |