diff options
author | Jean-Christophe Dubois <jcd@tribudubois.net> | 2015-12-17 13:37:15 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:28:19 -0600 |
commit | 5389618ed34a4dc91949328b066670c1dc49042a (patch) | |
tree | faa0efdb0e57bedfe3c43aed2cc85879efb2d603 /hw/misc/imx_ccm.c | |
parent | e637cc590c785fc4ba1017a93861a94bdfd690b7 (diff) | |
download | hqemu-5389618ed34a4dc91949328b066670c1dc49042a.zip hqemu-5389618ed34a4dc91949328b066670c1dc49042a.tar.gz |
i.MX: rename i.MX CCM get_clock() function and CLK ID enum names
This is to prepare for CCM code refactoring.
This is just a bit of function and enum values renaming.
We also remove some useless intermediate variables.
Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-id: 53c4d9b9611988a5f56f178f285e04490747925e.1449528242.git.jcd@tribudubois.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/misc/imx_ccm.c')
-rw-r--r-- | hw/misc/imx_ccm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/misc/imx_ccm.c b/hw/misc/imx_ccm.c index 500dda5..1ac697a 100644 --- a/hw/misc/imx_ccm.c +++ b/hw/misc/imx_ccm.c @@ -49,18 +49,18 @@ static const VMStateDescription vmstate_imx_ccm = { .post_load = imx_ccm_post_load, }; -uint32_t imx_clock_frequency(DeviceState *dev, IMXClk clock) +uint32_t imx_ccm_get_clock_frequency(DeviceState *dev, IMXClk clock) { IMXCCMState *s = IMX_CCM(dev); switch (clock) { case NOCLK: return 0; - case MCU: + case CLK_MCU: return s->mcu_clk_freq; - case HSP: + case CLK_HSP: return s->hsp_clk_freq; - case IPG: + case CLK_IPG: return s->ipg_clk_freq; case CLK_32k: return CKIL_FREQ; |