]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dtoc: Rename dt-platdata.c to dt-plat.c
authorSimon Glass <sjg@chromium.org>
Tue, 29 Dec 2020 03:35:01 +0000 (20:35 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:26:35 +0000 (12:26 -0700)
Use this new name to be consistent with the rest of U-Boot, which talks
about 'plat' for the platform data, which is what this file holds.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/dm/platdata.h
include/linux/mtd/spi-nor.h
scripts/Makefile.spl
tools/dtoc/dtb_platdata.py
tools/dtoc/test_dtoc.py

index df1f6abcc7e3c8aea59efa6b5500a6b63fcbfd1c..dc3cbfcbc7fe94af0c6acb0ebd88c591d0f72688 100644 (file)
@@ -59,7 +59,7 @@ struct driver_rt {
  * When of-platdata is in use, U_BOOT_DRVINFO() cannot be used outside of the
  * dt-plat.c file created by dtoc
  */
-#if CONFIG_IS_ENABLED(OF_PLATDATA) && !defined(DT_PLATDATA_C)
+#if CONFIG_IS_ENABLED(OF_PLATDATA) && !defined(DT_PLAT_C)
 #define U_BOOT_DRVINFO(__name) _Static_assert(false, \
        "Cannot use U_BOOT_DRVINFO with of-platdata. Please use devicetree instead")
 #else
index 363f2749d7d4027b051cbf491760799c180fedad..4a8e19ee4f9661df46cdd37de160510531c1742c 100644 (file)
@@ -262,7 +262,7 @@ struct spi_flash {
  *     Defined below (keep this text to enable searching for spi_flash decl)
  * }
  */
-#ifndef DT_PLATDATA_C
+#ifndef DT_PLAT_C
 #define spi_flash spi_nor
 #endif
 
index 3d60cf5120eb8b7354b868a16ba481ee463f85f8..87021e22e554274b2ab5ad6484e24b41187b5595 100644 (file)
@@ -120,7 +120,7 @@ endif
 u-boot-spl-init := $(head-y)
 u-boot-spl-main := $(libs-y)
 ifdef CONFIG_$(SPL_TPL_)OF_PLATDATA
-u-boot-spl-platdata := $(obj)/dts/dt-platdata.o
+u-boot-spl-platdata := $(obj)/dts/dt-plat.o
 u-boot-spl-platdata_c := $(patsubst %.o,%.c,$(u-boot-spl-platdata))
 endif
 
index b3d777e0c5e595269580d4bfafa6ffb7e2f76a12..e07a5d3a1c87cf07f72a83edcddadd7af119f39f 100644 (file)
@@ -796,7 +796,7 @@ class DtbPlatdata():
         information.
         """
         self.out('/* Allow use of U_BOOT_DRVINFO() in this file */\n')
-        self.out('#define DT_PLATDATA_C\n')
+        self.out('#define DT_PLAT_C\n')
         self.out('\n')
         self.out('#include <common.h>\n')
         self.out('#include <dm.h>\n')
@@ -832,7 +832,7 @@ OUTPUT_FILES = {
         OutputFile(Ftype.HEADER, 'dt-structs-gen.h',
                    'Defines the structs used to hold devicetree data'),
     'platdata':
-        OutputFile(Ftype.SOURCE, 'dt-platdata.c',
+        OutputFile(Ftype.SOURCE, 'dt-plat.c',
                    'Declares the U_BOOT_DRIVER() records and platform data'),
     }
 
index 2e4dd2b24d2e2784ae9ca542f6ff2a967bf90bb7..d56cd311fa1f490f34b4b399dacffcb55575ff0a 100755 (executable)
@@ -47,7 +47,7 @@ C_HEADER = '''/*
  */
 
 /* Allow use of U_BOOT_DRVINFO() in this file */
-#define DT_PLATDATA_C
+#define DT_PLAT_C
 
 #include <common.h>
 #include <dm.h>
@@ -979,5 +979,5 @@ U_BOOT_DRVINFO(spl_test2) = {
 
         leafs = set(os.path.basename(fname) for fname in fnames)
         self.assertEqual(
-            {'dt-structs-gen.h', 'source.dts', 'dt-platdata.c', 'source.dtb'},
+            {'dt-structs-gen.h', 'source.dts', 'dt-plat.c', 'source.dtb'},
             leafs)