aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/board/seeed/linkit-smart-7688
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/board/seeed/linkit-smart-7688')
-rw-r--r--roms/u-boot/board/seeed/linkit-smart-7688/Kconfig12
-rw-r--r--roms/u-boot/board/seeed/linkit-smart-7688/MAINTAINERS8
-rw-r--r--roms/u-boot/board/seeed/linkit-smart-7688/Makefile3
-rw-r--r--roms/u-boot/board/seeed/linkit-smart-7688/board.c31
4 files changed, 54 insertions, 0 deletions
diff --git a/roms/u-boot/board/seeed/linkit-smart-7688/Kconfig b/roms/u-boot/board/seeed/linkit-smart-7688/Kconfig
new file mode 100644
index 000000000..a9d63285c
--- /dev/null
+++ b/roms/u-boot/board/seeed/linkit-smart-7688/Kconfig
@@ -0,0 +1,12 @@
+if BOARD_LINKIT_SMART_7688
+
+config SYS_BOARD
+ default "linkit-smart-7688"
+
+config SYS_VENDOR
+ default "seeed"
+
+config SYS_CONFIG_NAME
+ default "linkit-smart-7688"
+
+endif
diff --git a/roms/u-boot/board/seeed/linkit-smart-7688/MAINTAINERS b/roms/u-boot/board/seeed/linkit-smart-7688/MAINTAINERS
new file mode 100644
index 000000000..f2186c1b9
--- /dev/null
+++ b/roms/u-boot/board/seeed/linkit-smart-7688/MAINTAINERS
@@ -0,0 +1,8 @@
+LINKIT_SMART_7688 BOARD
+M: Stefan Roese <sr@denx.de>
+S: Maintained
+F: board/seeed/linkit-smart-7688
+F: include/configs/linkit-smart-7688.h
+F: configs/linkit-smart-7688_defconfig
+F: configs/linkit-smart-7688-ram_defconfig
+F: arch/mips/dts/linkit-smart-7688.dts
diff --git a/roms/u-boot/board/seeed/linkit-smart-7688/Makefile b/roms/u-boot/board/seeed/linkit-smart-7688/Makefile
new file mode 100644
index 000000000..70cd7a8e5
--- /dev/null
+++ b/roms/u-boot/board/seeed/linkit-smart-7688/Makefile
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0+
+
+obj-y += board.o
diff --git a/roms/u-boot/board/seeed/linkit-smart-7688/board.c b/roms/u-boot/board/seeed/linkit-smart-7688/board.c
new file mode 100644
index 000000000..bf7c69ea8
--- /dev/null
+++ b/roms/u-boot/board/seeed/linkit-smart-7688/board.c
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2018 Stefan Roese <sr@denx.de>
+ */
+
+#include <common.h>
+#include <init.h>
+#include <asm/io.h>
+#include <linux/bitops.h>
+
+#define MT76XX_GPIO1_MODE 0x10000060
+
+void board_debug_uart_init(void)
+{
+ void __iomem *gpio_mode;
+
+ /* Select UART2 mode instead of GPIO mode (default) */
+ gpio_mode = ioremap_nocache(MT76XX_GPIO1_MODE, 0x100);
+ clrbits_le32(gpio_mode, GENMASK(27, 26));
+}
+
+int board_early_init_f(void)
+{
+ /*
+ * The pin muxing of UART2 also needs to be done, if debug uart
+ * is not enabled. So we need to call this function here as well.
+ */
+ board_debug_uart_init();
+
+ return 0;
+}