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