summaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorJarielle Catbagan <jcatbagan93@gmail.com>2015-07-16 04:26:42 -0700
committerEd Sutter <edsutterjr@gmail.com>2015-07-18 09:13:24 -0400
commitb9f0b9e3840dbc29718f8a72547a802337d176e2 (patch)
treeaeb2a1200f78cd92dc3a5e1a3a7f58320bb1f7f8 /ports
parentBBB: config.h: Enable INCLUDE_MEMCMDS (diff)
downloadumon-b9f0b9e3840dbc29718f8a72547a802337d176e2.tar.bz2
BBB: am335x.h/cpuio.c: Add CM_PER_GPIO1_CLKCTRL in am335x.h and change CM_DIV_M3_DPLL_PER to CM_PER_GPIO1_CLKCTRL in cpuio.c:initCPUio()
Diffstat (limited to 'ports')
-rw-r--r--ports/beagleboneblack/am335x.h1
-rw-r--r--ports/beagleboneblack/cpuio.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ports/beagleboneblack/am335x.h b/ports/beagleboneblack/am335x.h
index 91698a8..55a4d2a 100644
--- a/ports/beagleboneblack/am335x.h
+++ b/ports/beagleboneblack/am335x.h
@@ -266,6 +266,7 @@
/*===========================================================================*/
#define CM_PER_L3_CLKSTCTRL 0x0C
#define CM_PER_EMIF_CLKCTRL 0x28
+#define CM_PER_GPIO1_CLKCTRL 0xAC
/*===========================================================================*/
diff --git a/ports/beagleboneblack/cpuio.c b/ports/beagleboneblack/cpuio.c
index fafbfd7..1fd3e4b 100644
--- a/ports/beagleboneblack/cpuio.c
+++ b/ports/beagleboneblack/cpuio.c
@@ -187,7 +187,7 @@ initCPUio(void)
CM_WKUP_REG(CM_WKUP_UART0_CLKCTRL) |= 2;
// Enable clock for GPIO1:
- CM_PER_REG(CM_DIV_M3_DPLL_PER) |= 2;
+ CM_PER_REG(CM_PER_GPIO1_CLKCTRL) |= 2;
pinMuxInit();