Skip to contentSkip to conversation

soc: imx: support i.MX93 soc device

PATCH Superseded Peng Fan (OSS) 2 participants 2 messages May 8, 2023 Arm i.MX and Layerscape

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: imx: support i.MX93 soc device

From: Peng Fan <[email protected]>

Similar to i.MX8M, add i.MX93 soc device support

---

V1:
Depends on the binding doc, then this driver could use the compatible
https://lore.kernel.org/all/[email protected]/

 drivers/soc/imx/Makefile    |  2 +-
 drivers/soc/imx/soc-imx8m.c | 70 ++++++++++++++++++++++++++++++++++++-
 2 files changed, 70 insertions(+), 2 deletions(-)
drivers/soc/imx/Makefile +1 -1
index a28c44a1f16a..83aff181ae51 100644
@@ -7,5 +7,5 @@ obj-$(CONFIG_IMX_GPCV2_PM_DOMAINS) += gpcv2.o
 obj-$(CONFIG_SOC_IMX8M) += soc-imx8m.o
 obj-$(CONFIG_IMX8M_BLK_CTRL) += imx8m-blk-ctrl.o
 obj-$(CONFIG_IMX8M_BLK_CTRL) += imx8mp-blk-ctrl.o
-obj-$(CONFIG_SOC_IMX9) += imx93-src.o imx93-pd.o
+obj-$(CONFIG_SOC_IMX9) += soc-imx8m.o imx93-src.o imx93-pd.o
 obj-$(CONFIG_IMX9_BLK_CTRL) += imx93-blk-ctrl.o
drivers/soc/imx/soc-imx8m.c +69 -1

121 lines not on this page · raw message

Signature · 1 line
2.37.1
#1 lore raw
kernel test robot noticed the following build errors:

Hi Peng,

kernel test robot noticed the following build errors:

[auto build test ERROR on shawnguo/for-next]
[also build test ERROR on linus/master v6.4-rc1 next-20230508] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Peng-Fan-OSS/soc-imx-support-i-MX93-soc-device/20230508-200452
base:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next
patch link:    https://lore.kernel.org/r/20230508120514.1534445-1-peng.fan%40oss.nxp.com
patch subject: [PATCH] soc: imx: support i.MX93 soc device
config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20230508/[email protected]/config)
compiler: ia64-linux-gcc (GCC) 12.1.0

reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/d4fb96ce70f039deaf626914f91ca5ce8b74790a
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Peng-Fan-OSS/soc-imx-support-i-MX93-soc-device/20230508-200452 git checkout d4fb96ce70f039deaf626914f91ca5ce8b74790a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/soc/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> drivers/soc/imx/soc-imx8m.c:199:23: error: 'SZ_8' undeclared here (not in a function)
     199 |         .uid_length = SZ_8,
         |                       ^~~~
>> drivers/soc/imx/soc-imx8m.c:223:23: error: 'SZ_16' undeclared here (not in a function)
     223 |         .uid_length = SZ_16,
         |                       ^~~~~

vim +/SZ_8 +199 drivers/soc/imx/soc-imx8m.c

195
196 static const struct imx8_soc_data imx8mq_soc_data = {
197 .name = "i.MX8MQ",
198 .soc_revision = imx8mq_soc_revision,

 > 199		.uid_length = SZ_8,
   200	};
   201	
   202	static const struct imx8_soc_data imx8mm_soc_data = {
   203		.name = "i.MX8MM",
   204		.soc_revision = imx8mm_soc_revision,
   205		.uid_length = SZ_8,
   206	};
   207	
   208	static const struct imx8_soc_data imx8mn_soc_data = {
   209		.name = "i.MX8MN",
   210		.soc_revision = imx8mm_soc_revision,
   211		.uid_length = SZ_8,
   212	};
   213	
   214	static const struct imx8_soc_data imx8mp_soc_data = {
   215		.name = "i.MX8MP",
   216		.soc_revision = imx8mm_soc_revision,
   217		.uid_length = SZ_8,
   218	};
   219	
   220	static const struct imx8_soc_data imx93_soc_data = {
   221		.name = "i.MX93",
   222		.soc_revision = imx93_soc_revision,
 > 223		.uid_length = SZ_16,

224 };
225

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests