flashrom/flashrom-0007-ppc-hack.patch
Peter Lemenkov e626e6dfe8 next svn snapshot - 1673
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2013-05-21 13:08:57 +04:00

40 lines
1.2 KiB
Diff

From 1f2e7a71454e1d1cb58a13d680a52c58ebe6b097 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 5af74cd..bb8d91c 100644
--- a/internal.c
+++ b/internal.c
@@ -348,6 +348,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.2.1