Index: kernel/genarch/include/drivers/am335x/ctrl_module.h
===================================================================
--- kernel/genarch/include/drivers/am335x/ctrl_module.h	(revision ed0a9c5d5c2d4bb661dd2f331031706217166aa0)
+++ kernel/genarch/include/drivers/am335x/ctrl_module.h	(revision e3e2b6c7954e46dd52d7abffdd37405b05f2d56a)
@@ -42,4 +42,23 @@
 #define AM335x_CTRL_MODULE_SIZE          131072 /* 128 Kb */
 
+static unsigned am335x_ctrl_module_clock_freq_get(void *base)
+{
+	unsigned const control_status = AM335x_CTRL_MODULE_REG_ADDR(base,
+	    CONTROL_SYSCONFIG);
+	unsigned const sysboot = (control_status >> 22) & 0x03;
+
+	switch (sysboot) {
+	default:
+	case 0:
+		return 19200000; /* 19.2 Mhz */
+	case 1:
+		return 24000000; /* 24 Mhz */
+	case 2:
+		return 25000000; /* 25 Mhz */
+	case 3:
+		return 26000000; /* 26 Mhz */
+	}
+}
+
 #endif
 
