]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/misc: Rename npcm7xx_clk to npcm_clk
authorHao Wu <wuhaotsh@google.com>
Wed, 19 Feb 2025 18:46:01 +0000 (10:46 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Feb 2025 15:22:22 +0000 (15:22 +0000)
NPCM7XX and NPCM8XX have a different set of CLK registers. This
commit changes the name of the clk files to be used by both
NPCM7XX and NPCM8XX CLK modules.

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

index 554eb8df5bc7e66bcb2b10a914ba8aba6c31104b..edd36a334d73e7b76c127949f184f5a05f69a7d9 100644 (file)
@@ -69,7 +69,7 @@ system_ss.add(when: 'CONFIG_IMX', if_true: files(
   'imx_rngc.c',
 ))
 system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
-  'npcm7xx_clk.c',
+  'npcm_clk.c',
   'npcm_gcr.c',
   'npcm7xx_mft.c',
   'npcm7xx_pwm.c',
similarity index 99%
rename from hw/misc/npcm7xx_clk.c
rename to hw/misc/npcm_clk.c
index 46f907b61c2c9d3aae4c29a1fbb23ae2006cd213..2bcb731099ed0c39f0776821fdbf7998894ad5d2 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "qemu/osdep.h"
 
-#include "hw/misc/npcm7xx_clk.h"
+#include "hw/misc/npcm_clk.h"
 #include "hw/timer/npcm7xx_timer.h"
 #include "hw/qdev-clock.h"
 #include "migration/vmstate.h"
index 2e708471ece4172d28289aa902408039bf99b7c6..e80fd91f204c6c47c86470e86277a0885fa7bbcf 100644 (file)
@@ -23,7 +23,7 @@
 #include "hw/gpio/npcm7xx_gpio.h"
 #include "hw/i2c/npcm7xx_smbus.h"
 #include "hw/mem/npcm7xx_mc.h"
-#include "hw/misc/npcm7xx_clk.h"
+#include "hw/misc/npcm_clk.h"
 #include "hw/misc/npcm_gcr.h"
 #include "hw/misc/npcm7xx_mft.h"
 #include "hw/misc/npcm7xx_pwm.h"
similarity index 98%
rename from include/hw/misc/npcm7xx_clk.h
rename to include/hw/misc/npcm_clk.h
index 5ed4a4672b36a5650a2285c64755d46ad41fe5a0..0aef81e10c8350e24adc82d9b912809dc3595d3d 100644 (file)
@@ -13,8 +13,8 @@
  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  * for more details.
  */
-#ifndef NPCM7XX_CLK_H
-#define NPCM7XX_CLK_H
+#ifndef NPCM_CLK_H
+#define NPCM_CLK_H
 
 #include "exec/memory.h"
 #include "hw/clock.h"
@@ -177,4 +177,4 @@ struct NPCM7xxCLKState {
 #define TYPE_NPCM7XX_CLK "npcm7xx-clk"
 OBJECT_DECLARE_SIMPLE_TYPE(NPCM7xxCLKState, NPCM7XX_CLK)
 
-#endif /* NPCM7XX_CLK_H */
+#endif /* NPCM_CLK_H */