9
0
Fork 0

sysmobts: enable DSP clock

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
This commit is contained in:
Jan Luebbe 2015-11-22 15:47:20 +01:00
parent db4205f8ba
commit 0b1cbb933d
2 changed files with 17 additions and 1 deletions

View File

@ -27,6 +27,7 @@
#include <net.h>
#include <linux/sizes.h>
#include <linux/clk.h>
#include <asm/armlinux.h>
#define PINMUX0 0x01c40000
@ -190,6 +191,9 @@ coredevice_initcall(sysmobts_coredevices_init);
static int sysmobts_devices_init(void)
{
struct clk *dsp_clk;
int ret;
/* Configure AEMIF AWCCR */
writel(DAVINCI_AWCCR_VAL, DAVINCI_AWCCR);
@ -211,6 +215,19 @@ static int sysmobts_devices_init(void)
armlinux_set_architecture(MACH_TYPE_SYSMOBTS_V2);
dsp_clk = clk_get(NULL, "dsp");
if (IS_ERR(dsp_clk)) {
ret = PTR_ERR(dsp_clk);
pr_err("unable to get DSP clock, err %d\n", ret);
return 1;
}
ret = clk_enable(dsp_clk);
if (ret < 0) {
pr_err("unable to enable DSP clock, err %d\n", ret);
return 1;
}
return 0;
}

View File

@ -122,7 +122,6 @@ static struct clk dsp_clk = {
.parent = &pll1_sysclk1,
.lpsc = DAVINCI_LPSC_GEM,
.domain = DAVINCI_GPSC_DSPDOMAIN,
.usecount = 1, /* REVISIT how to disable? */
};
static struct clk arm_clk = {