2026e4b
From: Mattias Mattsson <vitplister@gmail.com>
2026e4b
Date: Wed, 27 Jul 2011 21:02:50 +0400
68abf39
Subject: [PATCH] ppc hack
2026e4b
2026e4b
2026e4b
diff --git a/internal.c b/internal.c
68abf39
index e646ca8..6101222 100644
2026e4b
--- a/internal.c
2026e4b
+++ b/internal.c
68abf39
@@ -344,6 +344,8 @@ int internal_init(void)
2026e4b
 		 "Aborting.\n");
2026e4b
 	return 1;
2026e4b
 #endif
2026e4b
+#elif defined(__powerpc__) || defined(__ppc__)
2026e4b
+	return 0;
2026e4b
 #else
2026e4b
 	/* FIXME: Remove this unconditional abort once all PCI drivers are
2026e4b
 	 * converted to use little-endian accesses for memory BARs.
2026e4b
diff --git a/processor_enable.c b/processor_enable.c
5977150
index 1361dd5..49d4006 100644
2026e4b
--- a/processor_enable.c
2026e4b
+++ b/processor_enable.c
5977150
@@ -77,7 +77,7 @@ int processor_flash_enable(void)
5977150
 		flashbase = 0x1fc00000;
5977150
 		ret = 0;
5977150
 	}
5977150
-#elif defined(__i386__) || defined(__x86_64__)
5977150
+#elif defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__powerpc__)
5977150
 	/* On x86, flash access is not processor specific except on
5977150
 	 * AMD Elan SC520, AMD Geode and maybe other SoC-style CPUs.
5977150
 	 * FIXME: Move enable_flash_cs5536 and get_flashbase_sc520 here.