diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2015-05-15 11:41:39 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2015-06-03 14:52:26 +0800 |
commit | 0931aff7226abb7e1dab018488e363294385fa66 (patch) | |
tree | 608a40c038ae0d8934b7f931e0af221247cda44e /drivers/clk/imx/clk-imx27.c | |
parent | 6dd747825b206e9863c80c8b311fd2ed0964140a (diff) | |
download | talos-obmc-linux-0931aff7226abb7e1dab018488e363294385fa66.tar.gz talos-obmc-linux-0931aff7226abb7e1dab018488e363294385fa66.zip |
ARM: imx: define an enum for gpt timer device type
Define an enum for gpt timer device type in include/soc/imx/timer.h to
tell the gpt block differences among SoCs. Update non-DT users (clock
drivers) to pass the device type.
As we now have include/soc/imx/timer.h, the declaration of
mxc_timer_init() is moved into there as the best fit.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'drivers/clk/imx/clk-imx27.c')
-rw-r--r-- | drivers/clk/imx/clk-imx27.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-imx27.c b/drivers/clk/imx/clk-imx27.c index df2dfc081c71..d9d50d54ef2a 100644 --- a/drivers/clk/imx/clk-imx27.c +++ b/drivers/clk/imx/clk-imx27.c @@ -6,6 +6,7 @@ #include <linux/of_address.h> #include <dt-bindings/clock/imx27-clock.h> #include <soc/imx/revision.h> +#include <soc/imx/timer.h> #include <asm/irq.h> #include "clk.h" @@ -233,7 +234,7 @@ int __init mx27_clocks_init(unsigned long fref) clk_register_clkdev(clk[IMX27_CLK_EMMA_AHB_GATE], "ahb", "m2m-emmaprp.0"); clk_register_clkdev(clk[IMX27_CLK_EMMA_IPG_GATE], "ipg", "m2m-emmaprp.0"); - mxc_timer_init(MX27_GPT1_BASE_ADDR, MX27_INT_GPT1); + mxc_timer_init(MX27_GPT1_BASE_ADDR, MX27_INT_GPT1, GPT_TYPE_IMX21); return 0; } |