[PATCH 4/7] 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()

Jarielle Catbagan jcatbagan93 at gmail.com
Thu Jul 16 11:26:42 UTC 2015


---
 ports/beagleboneblack/am335x.h | 1 +
 ports/beagleboneblack/cpuio.c  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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();
 
-- 
2.3.3




More information about the umon-devel mailing list