075c56fd4e
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From 726ed55ebf1dbfe4a70a864331f36c3824421727 Mon Sep 17 00:00:00 2001
|
|
From: Mattias Mattsson <vitplister@gmail.com>
|
|
Date: Wed, 27 Jul 2011 21:02:50 +0400
|
|
Subject: [PATCH 7/7] ppc hack
|
|
|
|
---
|
|
internal.c | 2 ++
|
|
processor_enable.c | 2 +-
|
|
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/internal.c b/internal.c
|
|
index ab3c81f..1bad0ea 100644
|
|
--- a/internal.c
|
|
+++ b/internal.c
|
|
@@ -352,6 +352,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.
|
|
--
|
|
1.8.3.1
|
|
|