misc NanoPi Fire3 changes

cleaned up u-boot DTB assignment; enabled RTL8188EU Wi-Fi adapter; disabled
thermal zone emulation configuration
This commit is contained in:
5kft 2018-07-21 10:06:59 -07:00
parent 2d92ef44ca
commit ab4100b18a
2 changed files with 14 additions and 9 deletions

View file

@ -149,10 +149,10 @@ index 0000000..1550b5f
+obj-y := board.o
diff --git a/board/s5p6818/nanopifire3/board.c b/board/s5p6818/nanopifire3/board.c
new file mode 100644
index 0000000..01e84d4
index 0000000..5870d76
--- /dev/null
+++ b/board/s5p6818/nanopifire3/board.c
@@ -0,0 +1,149 @@
@@ -0,0 +1,151 @@
+/*
+ * (C) Copyright 2016 Nexell
+ * Hyunseok, Jung <hsjung@nexell.co.kr>
@ -264,12 +264,14 @@ index 0000000..01e84d4
+
+#define ETHER_MAC_TAG "ethmac"
+
+#define DEFAULT_DTB "s5p6818-nanopi-fire3.dtb"
+
+int board_late_init(void)
+{
+ //#### move to configuration ####
+ setenv("fdtfile", DEFAULT_DTB);
+ char dtbname[256];
+
+ strcpy(dtbname, CONFIG_DEFAULT_DEVICE_TREE);
+ strcat(dtbname, ".dtb");
+
+ setenv("fdtfile", dtbname);
+
+ if( getenv("ethaddr") == NULL ) {
+ char tmp[18];