Commit 56773342 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Enable L4LS clock for pwm

parent 0f82b26b
......@@ -38,6 +38,7 @@
#define AM335X_CM_MODULEMODE_DISABLE 0x00000000
#define AM335X_CM_MODULEMODE_ENABLE 0x00000002
#define AM335X_CM_PER_L4LS_CLKCTRL 0x00000060
#define AM335X_CM_PER_GPIO1_CLKCTRL 0x000000ac
#define AM335X_CM_PER_GPIO2_CLKCTRL 0x000000b0
#define AM335X_CM_PER_GPIO3_CLKCTRL 0x000000b4
......
......@@ -196,6 +196,10 @@ static struct controller_block * block_am335x_pwm_create(char *name, int argc, v
break;
}
if (am335x_cm_enable(AM335X_CM_PER_L4LS_CLKCTRL)) {
log_send(LOG_T_ERROR, "%s: Enabling L4LS clock failed", name);
return NULL;
}
if (am335x_cm_enable(cm_offset)) {
log_send(LOG_T_ERROR, "%s: Enabling module failed", name);
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment