sysmobts: enable DSP clock
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
This commit is contained in:
parent
d85cee4420
commit
929332da16
|
@ -27,6 +27,7 @@
|
|||
#include <net.h>
|
||||
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/clk.h>
|
||||
#include <asm/armlinux.h>
|
||||
|
||||
#define PINMUX0 0x01c40000
|
||||
|
@ -189,6 +190,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);
|
||||
|
||||
|
@ -210,6 +214,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue