summaryrefslogtreecommitdiff
path: root/cesar/hal/clk/clk.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/hal/clk/clk.h')
-rw-r--r--cesar/hal/clk/clk.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/cesar/hal/clk/clk.h b/cesar/hal/clk/clk.h
new file mode 100644
index 0000000000..83233c507b
--- /dev/null
+++ b/cesar/hal/clk/clk.h
@@ -0,0 +1,31 @@
+#ifndef hal_clk_clk_h
+#define hal_clk_clk_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2012 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file hal/clk/clk.h
+ * \brief Boot param handler to get the system/uart clocks.
+ * \ingroup hal
+ *
+ * For MSE500 the system/uart clocks differs from the one of the SPC300, the
+ * main objective is to keep the same binary for both chips.
+ */
+
+BEGIN_DECLS
+
+/**
+ * Handle the boot parameter "sysclk_mhz".
+ * \param param_value value passed for the "sysclk_mhz" parameter
+ * \return 0 on success, -1 otherwise
+ */
+int
+hal_clk_boot_param_sysclk_mhz (const char *param_value);
+
+END_DECLS
+
+#endif /* hal_clk_clk_h */