summaryrefslogtreecommitdiff
path: root/firmware/export/config
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-03-28 12:07:30 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-03-28 12:08:31 -0400
commit058a9ec9453fed05872d10c72913bbc7034d32d8 (patch)
tree38557eecf09fa2056783e00206ce91a8972b08c9 /firmware/export/config
parentafd8361d080e892829aacae196b9a8ced3a16894 (diff)
downloadrockbox-058a9ec9453fed05872d10c72913bbc7034d32d8.tar.gz
rockbox-058a9ec9453fed05872d10c72913bbc7034d32d8.zip
Add M3K native to the simulator
Change-Id: If3e877d2df189e44076631fd571cf6aa70ce6ca8
Diffstat (limited to 'firmware/export/config')
-rw-r--r--firmware/export/config/fiiom3k.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/config/fiiom3k.h b/firmware/export/config/fiiom3k.h
index 68186d7aaf..1afdbdaa36 100644
--- a/firmware/export/config/fiiom3k.h
+++ b/firmware/export/config/fiiom3k.h
@@ -10,7 +10,11 @@
10/* CPU defines */ 10/* CPU defines */
11#define CONFIG_CPU X1000 11#define CONFIG_CPU X1000
12#define X1000_EXCLK_FREQ 24000000 12#define X1000_EXCLK_FREQ 24000000
13
14#ifndef SIMULATOR
13#define TIMER_FREQ X1000_EXCLK_FREQ 15#define TIMER_FREQ X1000_EXCLK_FREQ
16#endif
17
14#define CPU_FREQ 1008000000 18#define CPU_FREQ 1008000000
15#define CPUFREQ_MAX CPU_FREQ 19#define CPUFREQ_MAX CPU_FREQ
16/* TODO: figure out if this does in fact affect power consumption. */ 20/* TODO: figure out if this does in fact affect power consumption. */
@@ -88,11 +92,13 @@
88/* TODO: implement HAVE_RTC_ALARM */ 92/* TODO: implement HAVE_RTC_ALARM */
89 93
90/* Power management */ 94/* Power management */
95#ifndef SIMULATOR
91#define HAVE_AXP173 96#define HAVE_AXP173
92#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE 97#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
93#define CONFIG_CHARGING CHARGING_MONITOR 98#define CONFIG_CHARGING CHARGING_MONITOR
94#define HAVE_SW_POWEROFF 99#define HAVE_SW_POWEROFF
95#define HAVE_POWEROFF_WHILE_CHARGING 100#define HAVE_POWEROFF_WHILE_CHARGING
101#endif
96 102
97/* Only one battery type */ 103/* Only one battery type */
98#define BATTERY_CAPACITY_DEFAULT 1100 104#define BATTERY_CAPACITY_DEFAULT 1100
@@ -102,7 +108,9 @@
102#define BATTERY_TYPES_COUNT 1 108#define BATTERY_TYPES_COUNT 1
103 109
104/* USB is still TODO. */ 110/* USB is still TODO. */
111#ifndef SIMULATOR
105#define USB_NONE 112#define USB_NONE
113#endif
106 114
107/* Rockbox capabilities */ 115/* Rockbox capabilities */
108#define HAVE_FAT16SUPPORT 116#define HAVE_FAT16SUPPORT