]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/misc: Rename npcm7xx_gcr to npcm_gcr
authorHao Wu <wuhaotsh@google.com>
Wed, 19 Feb 2025 18:45:55 +0000 (10:45 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2025 15:22:19 +0000 (15:22 +0000)
NPCM7XX and NPCM8XX have a different set of GCRs and the GCR module
needs to fit both. This commit changes the name of the GCR module.
Future commits will add the support for NPCM8XX GCRs.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Message-id: 20250219184609.1839281-5-wuhaotsh@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/meson.build
hw/misc/npcm_gcr.c [moved from hw/misc/npcm7xx_gcr.c with 99% similarity]
include/hw/arm/npcm7xx.h
include/hw/misc/npcm_gcr.h [moved from include/hw/misc/npcm7xx_gcr.h with 96% similarity]

index 55f493521bec025a4928e99d640fe98b4380d5f3..554eb8df5bc7e66bcb2b10a914ba8aba6c31104b 100644 (file)
@@ -70,7 +70,7 @@ system_ss.add(when: 'CONFIG_IMX', if_true: files(
 ))
 system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
   'npcm7xx_clk.c',
-  'npcm7xx_gcr.c',
+  'npcm_gcr.c',
   'npcm7xx_mft.c',
   'npcm7xx_pwm.c',
   'npcm7xx_rng.c',
similarity index 99%
rename from hw/misc/npcm7xx_gcr.c
rename to hw/misc/npcm_gcr.c
index 07464a4dc93e6d09749d5c6a4a4d7185c7463eb8..826fd41123b038af741e09ff8e5110f48bf61518 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "qemu/osdep.h"
 
-#include "hw/misc/npcm7xx_gcr.h"
+#include "hw/misc/npcm_gcr.h"
 #include "hw/qdev-properties.h"
 #include "migration/vmstate.h"
 #include "qapi/error.h"
index 4e0d2101885c9ea8296cee6292ff797440bdd288..510170471e07fb267661e76ea8ddbc4869b12ad2 100644 (file)
@@ -24,7 +24,7 @@
 #include "hw/i2c/npcm7xx_smbus.h"
 #include "hw/mem/npcm7xx_mc.h"
 #include "hw/misc/npcm7xx_clk.h"
-#include "hw/misc/npcm7xx_gcr.h"
+#include "hw/misc/npcm_gcr.h"
 #include "hw/misc/npcm7xx_mft.h"
 #include "hw/misc/npcm7xx_pwm.h"
 #include "hw/misc/npcm7xx_rng.h"
similarity index 96%
rename from include/hw/misc/npcm7xx_gcr.h
rename to include/hw/misc/npcm_gcr.h
index c0bbdda77e59f622deef1201f000fcc432b97678..9b4998950cc195e6b5a5e2833df2e7eb1e40a463 100644 (file)
@@ -13,8 +13,8 @@
  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  * for more details.
  */
-#ifndef NPCM7XX_GCR_H
-#define NPCM7XX_GCR_H
+#ifndef NPCM_GCR_H
+#define NPCM_GCR_H
 
 #include "exec/memory.h"
 #include "hw/sysbus.h"
@@ -70,4 +70,4 @@ struct NPCM7xxGCRState {
 #define TYPE_NPCM7XX_GCR "npcm7xx-gcr"
 OBJECT_DECLARE_SIMPLE_TYPE(NPCM7xxGCRState, NPCM7XX_GCR)
 
-#endif /* NPCM7XX_GCR_H */
+#endif /* NPCM_GCR_H */