diff options
Diffstat (limited to 'recipes-devtools/devregs/files/0001-devregs-add-support-for-imx8mn-soc.patch')
-rw-r--r-- | recipes-devtools/devregs/files/0001-devregs-add-support-for-imx8mn-soc.patch | 33 |
1 files changed, 33 insertions, 0 deletions
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 @@ | |||
1 | From cca909511ead5023f4a9f71412d79411a384326d Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
3 | Date: Mon, 13 Jan 2020 17:32:19 +0000 | ||
4 | Subject: [PATCH] devregs: add support for imx8mn soc | ||
5 | |||
6 | i.MX8M Nano SoC is very close to i.MX8M Mini, therefore we would allow | ||
7 | them to use the same register description file. | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/boundarydevices/devregs/pull/5] | ||
10 | |||
11 | Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
12 | --- | ||
13 | src/devregs.cpp | 4 ++++ | ||
14 | 1 file changed, 4 insertions(+) | ||
15 | |||
16 | diff --git a/src/devregs.cpp b/src/devregs.cpp | ||
17 | index 67c52eb..d540894 100644 | ||
18 | --- a/src/devregs.cpp | ||
19 | +++ b/src/devregs.cpp | ||
20 | @@ -717,6 +717,10 @@ static int getcpu(unsigned &cpu, const char *path) { | ||
21 | cpu = 0x82; | ||
22 | break; | ||
23 | } | ||
24 | + if (strstr(inBuf, "i.MX8MN")) { | ||
25 | + cpu = 0x82; | ||
26 | + break; | ||
27 | + } | ||
28 | if (!get_rev(inBuf, "Revision", &cpu)) | ||
29 | if (cpu != 0x10) | ||
30 | break; | ||
31 | -- | ||
32 | 2.17.1 | ||
33 | |||