summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7
diff options
context:
space:
mode:
authorBhuvanchandra DV <bhuvanchandra.dv@toradex.com>2015-06-01 18:37:19 +0530
committerStefano Babic <sbabic@denx.de>2015-06-08 08:41:55 +0200
commit098d85840ebd72c87a547a87df2654a3ff7da725 (patch)
treebfb4210a7aba413287185f4c3cb9baed32f6260d /arch/arm/cpu/armv7
parent30748d81d0b33f04c86b5b96aab2e8bf8d330ea2 (diff)
downloadu-boot-imx-098d85840ebd72c87a547a87df2654a3ff7da725.zip
u-boot-imx-098d85840ebd72c87a547a87df2654a3ff7da725.tar.gz
u-boot-imx-098d85840ebd72c87a547a87df2654a3ff7da725.tar.bz2
arm: vf610: Add clock support for DSPI
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r--arch/arm/cpu/armv7/vf610/generic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c
index 1bb9b8e..05c401d 100644
--- a/arch/arm/cpu/armv7/vf610/generic.c
+++ b/arch/arm/cpu/armv7/vf610/generic.c
@@ -198,6 +198,11 @@ static u32 get_i2c_clk(void)
return get_ipg_clk();
}
+static u32 get_dspi_clk(void)
+{
+ return get_ipg_clk();
+}
+
unsigned int mxc_get_clock(enum mxc_clock clk)
{
switch (clk) {
@@ -215,6 +220,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
return get_fec_clk();
case MXC_I2C_CLK:
return get_i2c_clk();
+ case MXC_DSPI_CLK:
+ return get_dspi_clk();
default:
break;
}