]> code.ossystems Code Review - meta-freescale.git/commitdiff
devregs: update to latest version and add imx8mn support
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Mon, 20 Jan 2020 10:38:24 +0000 (10:38 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 20 Jan 2020 14:10:15 +0000 (11:10 -0300)
Update the package to the latest version available upstream, and
add patch which introduces support for i.MX8M Nano SoC.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
recipes-devtools/devregs/devregs_git.bb
recipes-devtools/devregs/files/0001-devregs-add-support-for-imx8mn-soc.patch [new file with mode: 0644]

index 3bac55a478593214e9234950b58d0a91a388a62a..61bb0059f84fcf1d8e535b1a40d3874aac37e382 100644 (file)
@@ -3,8 +3,10 @@ SECTION = "devel"
 LICENSE = "GPL-1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=5003fa041d799dd5dd5f646b74e36924"
 
-SRCREV = "34ed402b92920864b89e0fd1e76bae3aa340baaa"
-SRC_URI = "git://github.com/boundarydevices/devregs.git;protocol=http"
+SRCREV = "6d2ad752ce92ad37ab144d9c3322f3dcd43398e5"
+SRC_URI = "git://github.com/boundarydevices/devregs.git;protocol=http \
+           file://0001-devregs-add-support-for-imx8mn-soc.patch \
+"
 
 PV = "1.0+${SRCPV}"
 
diff --git a/recipes-devtools/devregs/files/0001-devregs-add-support-for-imx8mn-soc.patch b/recipes-devtools/devregs/files/0001-devregs-add-support-for-imx8mn-soc.patch
new file mode 100644 (file)
index 0000000..b838ad0
--- /dev/null
@@ -0,0 +1,33 @@
+From cca909511ead5023f4a9f71412d79411a384326d Mon Sep 17 00:00:00 2001
+From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
+Date: Mon, 13 Jan 2020 17:32:19 +0000
+Subject: [PATCH] devregs: add support for imx8mn soc
+
+i.MX8M Nano SoC is very close to i.MX8M Mini, therefore we would allow
+them to use the same register description file.
+
+Upstream-Status: Submitted [https://github.com/boundarydevices/devregs/pull/5]
+
+Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
+---
+ src/devregs.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/devregs.cpp b/src/devregs.cpp
+index 67c52eb..d540894 100644
+--- a/src/devregs.cpp
++++ b/src/devregs.cpp
+@@ -717,6 +717,10 @@ static int getcpu(unsigned &cpu, const char *path) {
+                               cpu = 0x82;
+                               break;
+                       }
++                      if (strstr(inBuf, "i.MX8MN")) {
++                              cpu = 0x82;
++                              break;
++                      }
+                       if (!get_rev(inBuf, "Revision", &cpu))
+                               if (cpu != 0x10)
+                                       break;
+-- 
+2.17.1
+