From 84757e4a9b497960d8c9eacc555495d805c5acae Mon Sep 17 00:00:00 2001 From: Andrey Zhizhikin Date: Mon, 20 Jan 2020 10:38:24 +0000 Subject: devregs: update to latest version and add imx8mn support 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 --- recipes-devtools/devregs/devregs_git.bb | 6 ++-- .../0001-devregs-add-support-for-imx8mn-soc.patch | 33 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 recipes-devtools/devregs/files/0001-devregs-add-support-for-imx8mn-soc.patch (limited to 'recipes-devtools') diff --git a/recipes-devtools/devregs/devregs_git.bb b/recipes-devtools/devregs/devregs_git.bb index 3bac55a4..61bb0059 100644 --- a/recipes-devtools/devregs/devregs_git.bb +++ b/recipes-devtools/devregs/devregs_git.bb @@ -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 index 00000000..b838ad03 --- /dev/null +++ b/recipes-devtools/devregs/files/0001-devregs-add-support-for-imx8mn-soc.patch @@ -0,0 +1,33 @@ +From cca909511ead5023f4a9f71412d79411a384326d Mon Sep 17 00:00:00 2001 +From: Andrey Zhizhikin +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 +--- + 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 + -- cgit v1.2.3-54-g00ecf