summaryrefslogtreecommitdiff
path: root/src/soc/ti/am335x/dmtimer.h
diff options
context:
space:
mode:
authorSam Lewis <sam.vr.lewis@gmail.com>2020-08-03 20:18:29 +1000
committerPatrick Georgi <pgeorgi@google.com>2020-08-19 07:17:37 +0000
commitad7b2e23ab5954f150a4b2f62378f1e7133e56c9 (patch)
tree545ce0a7cbf0eb2aa034a45d136ac0998339741f /src/soc/ti/am335x/dmtimer.h
parentcb287987a1750577e4471d3a474391a2c25321ab (diff)
downloadcoreboot-ad7b2e23ab5954f150a4b2f62378f1e7133e56c9.tar.xz
cpu/ti/am335x: Move from cpu to soc in tree
The AM335X is a SoC, so should be in the soc tree. This moves all the existing am335x code to soc/ and updates any references. It also adds a soc.c file as required for the ramstage. Change-Id: Ic1ccb0e9b9c24a8b211b723b5f4cc26cdd0eaaab Signed-off-by: Sam Lewis <sam.vr.lewis@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44378 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/soc/ti/am335x/dmtimer.h')
-rw-r--r--src/soc/ti/am335x/dmtimer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/soc/ti/am335x/dmtimer.h b/src/soc/ti/am335x/dmtimer.h
new file mode 100644
index 0000000000..ad8515fbba
--- /dev/null
+++ b/src/soc/ti/am335x/dmtimer.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef __SOC_TI_AM335X_DMTIMER_H__
+#define __SOC_TI_AM335X_DMTIMER_H__
+
+#include <stdint.h>
+
+#define OSC_HZ 24000000
+
+void dmtimer_start(int num);
+uint64_t dmtimer_raw_value(int num);
+
+#endif