summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config-gigabeat.h3
-rw-r--r--firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h
index 6e22e8d..9f02405 100644
--- a/firmware/export/config-gigabeat.h
+++ b/firmware/export/config-gigabeat.h
@@ -126,7 +126,8 @@
#define HAVE_HEADPHONE_DETECTION
/* Define this if you have adjustable CPU frequency */
-#define HAVE_ADJUSTABLE_CPU_FREQ
+/* Not ready for prime-time */
+/* #define HAVE_ADJUSTABLE_CPU_FREQ */
#define BOOTFILE_EXT "gigabeat"
#define BOOTFILE "rockbox." BOOTFILE_EXT
diff --git a/firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c b/firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c
index 008b994..ca73b38 100644
--- a/firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c
+++ b/firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c
@@ -68,6 +68,9 @@ void system_init(void)
}
+
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+
void set_cpu_frequency(long frequency)
{
if (frequency == CPUFREQ_MAX)
@@ -91,3 +94,5 @@ void set_cpu_frequency(long frequency)
FREQ = CPUFREQ_NORMAL;
}
}
+
+#endif