summaryrefslogtreecommitdiff
path: root/board/amlogic/sei510/sei510.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-08-12 18:48:34 -0400
committerTom Rini <trini@konsulko.com>2019-08-12 23:03:35 -0400
commit60f38d82c45fef55ac04ee52b234e6dd07e31935 (patch)
tree1bf05a3ecc7ebeba4247134aa6cf5dda1ec87e73 /board/amlogic/sei510/sei510.c
parent9c6115822e894ead72fa4c094bf718eaabb9e103 (diff)
parenteb1677250d704b93169a58114a74424c7bfa495a (diff)
Merge tag 'u-boot-amlogic-20190812' of https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic
- amlogic: add support for the SEI Robotic SEI510
Diffstat (limited to 'board/amlogic/sei510/sei510.c')
-rw-r--r--board/amlogic/sei510/sei510.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/board/amlogic/sei510/sei510.c b/board/amlogic/sei510/sei510.c
new file mode 100644
index 0000000000..5de610d85f
--- /dev/null
+++ b/board/amlogic/sei510/sei510.c
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2016 BayLibre, SAS
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
+ */
+
+#include <common.h>
+#include <dm.h>
+#include <env_internal.h>
+#include <asm/io.h>
+#include <asm/arch/axg.h>
+#include <asm/arch/sm.h>
+#include <asm/arch/eth.h>
+#include <asm/arch/mem.h>
+
+int misc_init_r(void)
+{
+ meson_eth_init(PHY_INTERFACE_MODE_RMII,
+ MESON_USE_INTERNAL_RMII_PHY);
+
+ meson_generate_serial_ethaddr();
+
+ env_set("serial#", "AMLG12ASEI510");
+
+ return 0;
+}