diff options
author | ian <ian@FreeBSD.org> | 2014-04-26 16:48:09 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-04-26 16:48:09 +0000 |
commit | 87fe508b84ddb0fc0e9ff8179c673a163cf39f34 (patch) | |
tree | 94c83f30cce533dc27430bf1f52d9b6158e2f1ae /sys/arm/freescale/imx/imx_gpt.c | |
parent | 92841245485d27e0ba81ac964e34bacdb2e8152f (diff) | |
download | FreeBSD-src-87fe508b84ddb0fc0e9ff8179c673a163cf39f34.zip FreeBSD-src-87fe508b84ddb0fc0e9ff8179c673a163cf39f34.tar.gz |
Stop calling imx51_ccm_foo() clock functions from imx6 code. Instead
define a few imx_ccm_foo() functions that are implemented by the imx51 or
imx6 ccm code. Of course, the imx6 ccm code is still more a wish than
reality, so for now its implementations just return hard-coded numbers.
Diffstat (limited to 'sys/arm/freescale/imx/imx_gpt.c')
-rw-r--r-- | sys/arm/freescale/imx/imx_gpt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/freescale/imx/imx_gpt.c b/sys/arm/freescale/imx/imx_gpt.c index 73bc8ec..abbb140 100644 --- a/sys/arm/freescale/imx/imx_gpt.c +++ b/sys/arm/freescale/imx/imx_gpt.c @@ -54,7 +54,7 @@ __FBSDID("$FreeBSD$"); #include <arm/freescale/imx/imx_gptreg.h> #include <sys/kdb.h> -#include <arm/freescale/imx/imx51_ccmvar.h> +#include <arm/freescale/imx/imx_ccmvar.h> #define WRITE4(_sc, _r, _v) \ bus_space_write_4((_sc)->sc_iot, (_sc)->sc_ioh, (_r), (_v)) @@ -164,10 +164,10 @@ imx_gpt_attach(device_t dev) basefreq = 32768; break; case GPT_CR_CLKSRC_IPG: - basefreq = imx51_get_clock(IMX51CLK_IPG_CLK_ROOT); + basefreq = imx_ccm_ipg_hz(); break; case GPT_CR_CLKSRC_IPG_HIGH: - basefreq = imx51_get_clock(IMX51CLK_IPG_CLK_ROOT) * 2; + basefreq = imx_ccm_ipg_hz() * 2; break; case GPT_CR_CLKSRC_24M: ctlreg |= GPT_CR_24MEN; |