From 4dd2659b1379d008709e63ae9f28bb09382221d2 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 28 Jul 2011 12:56:17 +0400 Subject: [PATCH 13/13] Simplify processor.h Signed-off-by: Peter Lemenkov --- processor_enable.c | 24 ++++++++---------------- 1 files changed, 8 insertions(+), 16 deletions(-) diff --git a/processor_enable.c b/processor_enable.c index 014e019..d2e98b0 100644 --- a/processor_enable.c +++ b/processor_enable.c @@ -24,19 +24,6 @@ #include "flash.h" #include "programmer.h" -#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__powerpc__) - -int processor_flash_enable(void) -{ - /* 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. - */ - return 0; -} - -#else - #if defined (__MIPSEL__) && defined (__linux) #include #include @@ -89,9 +76,14 @@ int processor_flash_enable(void) flashbase = 0x1fc00000; return 0; } -#endif +#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. + */ + return 0; +#else /* Not implemented yet. Oh well. */ return 1; -} - #endif +} -- 1.7.6