]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: move imx8 sci header file to include/firmware/imx
authorPeng Fan <peng.fan@nxp.com>
Fri, 28 Apr 2023 04:08:09 +0000 (12:08 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 21 May 2023 14:54:32 +0000 (16:54 +0200)
Move imx8 sci header file to include/firmware/imx, then we could
use build macro to reuse some i.MX8 drivers for i.MX9, such as
drivers/cpu/imx8_cpu.c.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Stefano Babic <sbabic@denx.de>
41 files changed:
arch/arm/include/asm/arch-imx8/power-domain.h
arch/arm/include/asm/arch-imx8/sys_proto.h
arch/arm/mach-imx/cmd_dek.c
arch/arm/mach-imx/imx8/ahab.c
arch/arm/mach-imx/imx8/cpu.c
arch/arm/mach-imx/imx8/fdt.c
arch/arm/mach-imx/imx8/iomux.c
arch/arm/mach-imx/imx8/misc.c
arch/arm/mach-imx/imx8/snvs_security_sc.c
arch/arm/mach-imx/parse-container.c
board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c
board/advantech/imx8qm_dmsse20_a1/spl.c
board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
board/advantech/imx8qm_rom7720_a1/spl.c
board/congatec/cgtqmx8/cgtqmx8.c
board/freescale/imx8qm_mek/imx8qm_mek.c
board/freescale/imx8qxp_mek/imx8qxp_mek.c
board/freescale/imx8qxp_mek/spl.c
board/siemens/capricorn/board.c
board/toradex/apalis-imx8/apalis-imx8.c
board/toradex/colibri-imx8x/colibri-imx8x.c
drivers/clk/imx/clk-imx8.c
drivers/clk/imx/clk-imx8qm.c
drivers/clk/imx/clk-imx8qxp.c
drivers/cpu/imx8_cpu.c
drivers/cpu/imx9_cpu.c [new file with mode: 0644]
drivers/misc/imx8/fuse.c
drivers/misc/imx8/scu.c
drivers/misc/imx8/scu_api.c
drivers/pinctrl/nxp/pinctrl-scu.c
drivers/power/domain/imx8-power-domain-legacy.c
drivers/power/domain/imx8-power-domain.c
drivers/thermal/imx_scu_thermal.c
include/firmware/imx/sci/rpc.h [moved from arch/arm/include/asm/arch-imx8/sci/rpc.h with 100% similarity]
include/firmware/imx/sci/sci.h [moved from arch/arm/include/asm/arch-imx8/sci/sci.h with 94% similarity]
include/firmware/imx/sci/svc/misc/api.h [moved from arch/arm/include/asm/arch-imx8/sci/svc/misc/api.h with 100% similarity]
include/firmware/imx/sci/svc/pad/api.h [moved from arch/arm/include/asm/arch-imx8/sci/svc/pad/api.h with 100% similarity]
include/firmware/imx/sci/svc/pm/api.h [moved from arch/arm/include/asm/arch-imx8/sci/svc/pm/api.h with 100% similarity]
include/firmware/imx/sci/svc/rm/api.h [moved from arch/arm/include/asm/arch-imx8/sci/svc/rm/api.h with 98% similarity]
include/firmware/imx/sci/svc/seco/api.h [moved from arch/arm/include/asm/arch-imx8/sci/svc/seco/api.h with 96% similarity]
include/firmware/imx/sci/types.h [moved from arch/arm/include/asm/arch-imx8/sci/types.h with 100% similarity]

index 1db86a1209ba8245f7e95ba8ab79c0411f5287f6..bdb0baa98446f0737a86fe43029ab327883d9d91 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef _ASM_ARCH_IMX8_POWER_DOMAIN_H
 #define _ASM_ARCH_IMX8_POWER_DOMAIN_H
 
-#include <asm/arch/sci/types.h>
+#include <firmware/imx/sci/types.h>
 
 struct imx8_power_domain_plat {
        sc_rsrc_t resource_id;
index d38f606e07e8d4dddd737dc58a7046445856e60b..e7625c42985714eb6af9e3a54f80eb31171a44b1 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2018 NXP
  */
 
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/mach-imx/sys_proto.h>
 #include <asm/arch/power-domain.h>
 #include <dm/platdata.h>
index b65bf874b83788ebac9b11535e893fb2dfece6d8..69ed57537b3d9f65ea88027412391c3da4e88e03 100644 (file)
@@ -17,7 +17,7 @@
 #include <mapmem.h>
 #include <tee.h>
 #ifdef CONFIG_IMX_SECO_DEK_ENCAP
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/mach-imx/image.h>
 #endif
 #include <cpu_func.h>
index 5a4d39cdaad195331180a3e6995627165bfe2921..9addb824b6dd64d7cc31c7fd8835aa9fb3f1b8a8 100644 (file)
@@ -9,7 +9,7 @@
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/mach-imx/sys_proto.h>
 #include <asm/arch-imx/cpu.h>
 #include <asm/arch/sys_proto.h>
index 99772f68c32b4276c85899be588c7de153536278..7b292c07ef9347b794d94c269410942b769f4633 100644 (file)
@@ -19,7 +19,7 @@
 #include <errno.h>
 #include <spl.h>
 #include <thermal.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch-imx/cpu.h>
 #include <asm/armv8/cpu.h>
index a132ce2e6a3a16212f7fedf09486cea0f9613993..02b3ee5c111e61d74dabef3827863381148e51c8 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <log.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
 #include <dm/ofnode.h>
index 9c3cfbf0068c535bedbabf8cae169a41335b5204..e4f7651bd1d4b6d3163342ff1e9ff19c29ead3d9 100644 (file)
@@ -8,7 +8,7 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/iomux.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index de19955e2f77a49f8f5195c2a863f5861e98ecd8..0ce3036818b66355612290b07ff97a8dc9eeb2a0 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 #include <common.h>
 #include <log.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/mach-imx/sys_proto.h>
 #include <imx_sip.h>
 #include <linux/arm-smccc.h>
index 507b5b4231481cb81b24ab1f4f27bf9e587ed271..d7b20a1fcbfd08dad2cb564c9ebe8ac6a063e072 100644 (file)
@@ -15,7 +15,7 @@
 #include <log.h>
 #include <stddef.h>
 #include <common.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch-imx8/imx8-pins.h>
 #include <asm/arch-imx8/snvs_security_sc.h>
 #include <asm/global_data.h>
index a4214d537685a0f7c563a7cfe16e3a0eab62cff9..f7582825d6d49eb5082000dbdffb1e4e720ab839 100644 (file)
@@ -9,7 +9,7 @@
 #include <spl.h>
 #include <asm/mach-imx/image.h>
 #ifdef CONFIG_AHAB_BOOT
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #endif
 
 #define SEC_SECURE_RAM_BASE            0x31800000UL
index 867ceff99613d259fbc7f298f54cf16c64107fcb..8b4d73052eb5f65fd7a982eb6ee11c213aaedb20 100644 (file)
@@ -10,7 +10,7 @@
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/sys_proto.h>
index 49067bbfd658949d119b0170aeeb58550cdba06c..7f2e972425b65486998654b5fe95aaba2071e789 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
 #include <fsl_esdhc_imx.h>
index ace18b2d6038294d637bb287f7a7e0a6a9487cb9..206ce7d5c13ea1e8453c8a2d9524f47b7a0873ad 100644 (file)
@@ -15,7 +15,7 @@
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/sys_proto.h>
index 22ed639799208f3ad521090bb307c0e29300d6a2..b602437c35bcb016a6267054510f4ec3b7e36e6a 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
 
index c0a8a497c7b1b3199e7b85480cba95bba5400a40..bedd1e03308b711590b99cec1f78d5f18d1d0232 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/imx8-pins.h>
 #include <usb.h>
 #include <asm/arch/iomux.h>
index 682099ad9cf4e8534a4a3c76d49d6958d9d8589a..d96d1d07bb1e5120f99e24c1841eb677656b74a7 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/sys_proto.h>
index 21cfa142f3b08151a00d48a900c95116733011ff..516cefd2f2468503e9587e12a885117ec657f63a 100644 (file)
@@ -16,7 +16,7 @@
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/snvs_security_sc.h>
 #include <asm/arch/iomux.h>
index 2fa68400561331001b450c140b8101b55ac11be1..75aab1651c0acb2558f3d6e37632e33d0a7e2b83 100644 (file)
@@ -18,7 +18,7 @@
 #include <dm/lists.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/sys_proto.h>
index 4a02d64aec3cc283d3278cce006621bc27c55706..a0c62e0fc4c6eea6e4ad051430f46d6c7be5934c 100644 (file)
@@ -22,7 +22,7 @@
 #include <asm/gpio.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #ifndef CONFIG_SPL
 #include <asm/arch-imx8/clock.h>
index 6b43b58700734e2d37da857baac42b41250f37b1..aa76c486eec6ce28c18695c94f83a97e96b7cdad 100644 (file)
@@ -11,8 +11,8 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
-#include <asm/arch/sci/sci.h>
 #include <asm/arch/snvs_security_sc.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index 6ed9cc4fa80580858f046eab8866187c6da6ebe8..52fc7a391bb11611d5cc28106e5c62add9e55f05 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index 24bdab28aa453e49a2f0fa5358e5824799610c07..ceeead34349c58f5425faca9876f9660a9417f37 100644 (file)
@@ -9,7 +9,7 @@
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/clock.h>
 #include <dt-bindings/clock/imx8qxp-clock.h>
 #include <dt-bindings/soc/imx_rsrc.h>
index b874915ba6ae0b975af233171f8a50f60d326f45..6c05d07c3409d1a21b3d2d935af40dca5a9b90be 100644 (file)
@@ -8,7 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/clock.h>
 #include <dt-bindings/clock/imx8qm-clock.h>
 #include <dt-bindings/soc/imx_rsrc.h>
index d580b4372217d00660fdd11d5b7cd19ce71976a0..8bf7e32548133eaf4d8420c4f11f73f1b3b68446 100644 (file)
@@ -8,7 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/clock.h>
 #include <dt-bindings/clock/imx8qxp-clock.h>
 #include <dt-bindings/soc/imx_rsrc.h>
index b8eb2d280060def0e40970eb09fb95c28e0f1dbc..dc060513b38aa4915f22efc833dcb0a31f2aff34 100644 (file)
@@ -9,7 +9,7 @@
 #include <thermal.h>
 #include <asm/global_data.h>
 #include <asm/system.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch-imx/cpu.h>
 #include <asm/armv8/cpu.h>
diff --git a/drivers/cpu/imx9_cpu.c b/drivers/cpu/imx9_cpu.c
new file mode 100644 (file)
index 0000000..66534fe
--- /dev/null
@@ -0,0 +1,224 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2019 NXP
+ */
+
+#include <common.h>
+#include <cpu.h>
+#include <dm.h>
+#include <thermal.h>
+#include <asm/global_data.h>
+#include <asm/system.h>
+#include <firmware/linux/imx/sci/sci.h>
+#include <asm/arch/sys_proto.h>
+#include <asm/arch-imx/cpu.h>
+#include <asm/armv8/cpu.h>
+#include <linux/bitops.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+struct cpu_imx_plat {
+       const char *name;
+       const char *rev;
+       const char *type;
+       u32 cpu_rsrc;
+       u32 cpurev;
+       u32 freq_mhz;
+       u32 mpidr;
+};
+
+const char *get_imx9_type(u32 imxtype)
+{
+       switch (imxtype) {
+       case MXC_CPU_IMX93:
+               return "93";
+       default:
+               return "??";
+       }
+}
+
+const char *get_imx9_rev(u32 rev)
+{
+       switch (rev) {
+       case CHIP_REV_1_0:
+               return "1.";
+       case CHIP_REV_B:
+               return "B";
+       case CHIP_REV_C:
+               return "C";
+       default:
+               return "?";
+       }
+}
+
+static void set_core_data(struct udevice *dev)
+{
+       struct cpu_imx_plat *plat = dev_get_plat(dev);
+
+       if (device_is_compatible(dev, "arm,cortex-a35"))
+               plat->name = "A35";
+       else
+               plat->name = "?";
+}
+
+#if IS_ENABLED(CONFIG_IMX_SCU_THERMAL)
+static int cpu_imx_get_temp(struct cpu_imx_plat *plat)
+{
+       struct udevice *thermal_dev;
+       int cpu_tmp, ret;
+       int idx = 1; /* use "cpu-thermal0" device */
+
+       if (plat->cpu_rsrc == SC_R_A72)
+               idx = 2; /* use "cpu-thermal1" device */
+
+       ret = uclass_get_device(UCLASS_THERMAL, idx, &thermal_dev);
+       if (!ret) {
+               ret = thermal_get_temp(thermal_dev, &cpu_tmp);
+               if (ret)
+                       return 0xdeadbeef;
+       } else {
+               return 0xdeadbeef;
+       }
+
+       return cpu_tmp;
+}
+#else
+static int cpu_imx_get_temp(struct cpu_imx_plat *plat)
+{
+       return 0;
+}
+#endif
+
+int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size)
+{
+       struct cpu_imx_plat *plat = dev_get_plat(dev);
+       int ret, temp;
+
+       if (size < 100)
+               return -ENOSPC;
+
+       ret = snprintf(buf, size, "NXP i.MX8%s Rev%s %s at %u MHz",
+                      plat->type, plat->rev, plat->name, plat->freq_mhz);
+
+       if (IS_ENABLED(CONFIG_IMX_SCU_THERMAL)) {
+               temp = cpu_imx_get_temp(plat);
+               buf = buf + ret;
+               size = size - ret;
+               if (temp != 0xdeadbeef)
+                       ret = snprintf(buf, size, " at %dC", temp);
+               else
+                       ret = snprintf(buf, size, " - invalid sensor data");
+       }
+
+       snprintf(buf + ret, size - ret, "\n");
+
+       return 0;
+}
+
+static int cpu_imx_get_info(const struct udevice *dev, struct cpu_info *info)
+{
+       struct cpu_imx_plat *plat = dev_get_plat(dev);
+
+       info->cpu_freq = plat->freq_mhz * 1000;
+       info->features = BIT(CPU_FEAT_L1_CACHE) | BIT(CPU_FEAT_MMU);
+       return 0;
+}
+
+static int cpu_imx_get_count(const struct udevice *dev)
+{
+       ofnode node;
+       int num = 0;
+
+       ofnode_for_each_subnode(node, dev_ofnode(dev->parent)) {
+               const char *device_type;
+
+               if (!ofnode_is_enabled(node))
+                       continue;
+
+               device_type = ofnode_read_string(node, "device_type");
+               if (!device_type)
+                       continue;
+
+               if (!strcmp(device_type, "cpu"))
+                       num++;
+       }
+
+       return num;
+}
+
+static int cpu_imx_get_vendor(const struct udevice *dev,  char *buf, int size)
+{
+       snprintf(buf, size, "NXP");
+       return 0;
+}
+
+static int cpu_imx_is_current(struct udevice *dev)
+{
+       struct cpu_imx_plat *plat = dev_get_plat(dev);
+
+       if (plat->mpidr == (read_mpidr() & 0xffff))
+               return 1;
+
+       return 0;
+}
+
+static const struct cpu_ops cpu_imx9_ops = {
+       .get_desc       = cpu_imx_get_desc,
+       .get_info       = cpu_imx_get_info,
+       .get_count      = cpu_imx_get_count,
+       .get_vendor     = cpu_imx_get_vendor,
+       .is_current     = cpu_imx_is_current,
+};
+
+static const struct udevice_id cpu_imx9_ids[] = {
+       { .compatible = "arm,cortex-a35" },
+       { .compatible = "arm,cortex-a53" },
+       { .compatible = "arm,cortex-a72" },
+       { }
+};
+
+static ulong imx9_get_cpu_rate(struct udevice *dev)
+{
+       struct cpu_imx_plat *plat = dev_get_plat(dev);
+       ulong rate;
+       int ret;
+
+       ret = sc_pm_get_clock_rate(-1, plat->cpu_rsrc, SC_PM_CLK_CPU,
+                                  (sc_pm_clock_rate_t *)&rate);
+       if (ret) {
+               printf("Could not read CPU frequency: %d\n", ret);
+               return 0;
+       }
+
+       return rate;
+}
+
+static int imx9_cpu_probe(struct udevice *dev)
+{
+       struct cpu_imx_plat *plat = dev_get_plat(dev);
+       u32 cpurev;
+
+       set_core_data(dev);
+       cpurev = get_cpu_rev();
+       plat->cpurev = cpurev;
+       plat->rev = get_imx9_rev(cpurev & 0xFFF);
+       plat->type = get_imx9_type((cpurev & 0xFF000) >> 12);
+       plat->freq_mhz = imx9_get_cpu_rate(dev) / 1000000;
+       plat->mpidr = dev_read_addr(dev);
+       if (plat->mpidr == FDT_ADDR_T_NONE) {
+               printf("%s: Failed to get CPU reg property\n", __func__);
+               return -EINVAL;
+       }
+
+       return 0;
+}
+
+U_BOOT_DRIVER(cpu_imx9_drv) = {
+       .name           = "imx9x_cpu",
+       .id             = UCLASS_CPU,
+       .of_match       = cpu_imx9_ids,
+       .ops            = &cpu_imx9_ops,
+       .probe          = imx9_cpu_probe,
+       .plat_auto      = sizeof(struct cpu_imx_plat),
+       .flags          = DM_FLAG_PRE_RELOC,
+};
index 38111c5254859fd0c1cfd83fe9bf58b7ed2cfcbf..b81f73f283f4c5fb7f3325aaa4b7ed5a9a0df65d 100644 (file)
@@ -7,7 +7,7 @@
 #include <console.h>
 #include <errno.h>
 #include <fuse.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
 #include <linux/arm-smccc.h>
index 4ab5cb4bf137a514813e528d2149bbacf83a8fc8..798800aa75837f4100e7a737e9cc4cc582277a36 100644 (file)
@@ -13,7 +13,7 @@
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <dm/device-internal.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <linux/bitops.h>
 #include <linux/iopoll.h>
 #include <misc.h>
index 8f546e9b3fc38a702ce96bb5ad715ffd5d1347ef..dfede7f1d5fd43741265d1b292ae062e43c4fc3c 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <misc.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index c032be782a15a2c062b9dbcc06877946419df989..4959834c0fcd37dcadec9fb5899c6c87f9c8b082 100644 (file)
@@ -7,7 +7,7 @@
 #include <errno.h>
 #include <linux/bitops.h>
 #include <asm/io.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <misc.h>
 
 #include "pinctrl-imx.h"
index bf45891bccd6b72832556ad9b26b84bbd775b05b..37b0f95abac73a435591e63b752577f2abd17639 100644 (file)
@@ -14,7 +14,7 @@
 #include <dm/device-internal.h>
 #include <dm/device.h>
 #include <dm/uclass-internal.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 17b5d57b19b44c6b10fc2230410d545e7ddb59e1..b45e468756bf4de8b0d5294ef034a372acb7d96b 100644 (file)
@@ -10,7 +10,7 @@
 #include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/arch/power-domain.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 
 static int imx8_power_domain_on(struct power_domain *power_domain)
 {
index e704bcbea8695332418aeefb782b07831a083720..3ec131cbc6e10993206928b2dd8953cb4d34cf2f 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/device.h>
-#include <asm/arch/sci/sci.h>
+#include <firmware/imx/sci/sci.h>
 #include <linux/delay.h>
 #include <linux/libfdt.h>
 
similarity index 94%
rename from arch/arm/include/asm/arch-imx8/sci/sci.h
rename to include/firmware/imx/sci/sci.h
index 1c29209b3990645abff62beec73d3d4dc7ec16d0..dafe892aa4d33e9911b6e7a20294f8ac75d523f1 100644 (file)
@@ -7,13 +7,13 @@
 #define _SC_SCI_H
 
 #include <log.h>
-#include <asm/arch/sci/types.h>
-#include <asm/arch/sci/svc/misc/api.h>
-#include <asm/arch/sci/svc/pad/api.h>
-#include <asm/arch/sci/svc/pm/api.h>
-#include <asm/arch/sci/svc/rm/api.h>
-#include <asm/arch/sci/svc/seco/api.h>
-#include <asm/arch/sci/rpc.h>
+#include <firmware/imx/sci/types.h>
+#include <firmware/imx/sci/svc/misc/api.h>
+#include <firmware/imx/sci/svc/pad/api.h>
+#include <firmware/imx/sci/svc/pm/api.h>
+#include <firmware/imx/sci/svc/rm/api.h>
+#include <firmware/imx/sci/svc/seco/api.h>
+#include <firmware/imx/sci/rpc.h>
 #include <dt-bindings/soc/imx_rsrc.h>
 #include <linux/errno.h>
 
similarity index 98%
rename from arch/arm/include/asm/arch-imx8/sci/svc/rm/api.h
rename to include/firmware/imx/sci/svc/rm/api.h
index ed303881e7363c66528356c6bb44195426592f9f..163d81403c5db5bd982f05eda1d566097a76da33 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SC_RM_API_H
 #define SC_RM_API_H
 
-#include <asm/arch/sci/types.h>
+#include <firmware/imx/sci/types.h>
 
 /* Defines for type widths */
 #define SC_RM_PARTITION_W   5U      /* Width of sc_rm_pt_t */
similarity index 96%
rename from arch/arm/include/asm/arch-imx8/sci/svc/seco/api.h
rename to include/firmware/imx/sci/svc/seco/api.h
index 3ed05842d992886b289cf8f5d84bd69a693bbd02..6e9c302315b25d46f32564f9b73bc0cba8d0bb8e 100644 (file)
@@ -8,7 +8,7 @@
 
 /* Includes */
 
-#include <asm/arch/sci/types.h>
+#include <firmware/imx/sci/types.h>
 
 /* Defines */
 #define SC_SECO_AUTH_CONTAINER          0U   /* Authenticate container */