summaryrefslogtreecommitdiff
path: root/src/cpu/amd/geode_gx2/syspreinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/amd/geode_gx2/syspreinit.c')
-rw-r--r--src/cpu/amd/geode_gx2/syspreinit.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cpu/amd/geode_gx2/syspreinit.c b/src/cpu/amd/geode_gx2/syspreinit.c
new file mode 100644
index 0000000000..814034823c
--- /dev/null
+++ b/src/cpu/amd/geode_gx2/syspreinit.c
@@ -0,0 +1,20 @@
+/* StartTimer1
+ *
+ * Entry: none
+ * Exit: Starts Timer 1 for port 61 use
+ * Destroys: Al,
+ */
+static void StartTimer1(void)
+{
+ outb(0x56, 0x43);
+ outb(0x12, 0x41);
+}
+
+void SystemPreInit(void)
+{
+ /* they want a jump ... */
+#if !CONFIG_CACHE_AS_RAM
+ __asm__ __volatile__("jmp .+2\ninvd\njmp .+2\n");
+#endif
+ StartTimer1();
+}