summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/samsungypr
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/samsungypr')
-rw-r--r--firmware/target/hosted/samsungypr/ypr0/system-ypr0.c14
-rw-r--r--firmware/target/hosted/samsungypr/ypr1/system-ypr1.c14
2 files changed, 28 insertions, 0 deletions
diff --git a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c
index 6232df4a22..477b71c6a2 100644
--- a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c
+++ b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c
@@ -21,9 +21,11 @@
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
+#include <unistd.h>
#include "system.h"
#include "panic.h"
#include "debug.h"
+#include "hostfs.h"
#include "ascodec.h"
#include "gpio-ypr.h"
@@ -59,6 +61,18 @@ void system_exception_wait(void)
system_reboot();
}
+void hostfs_init(void)
+{
+ /* stub */
+}
+
+int hostfs_flush(void)
+{
+ sync();
+
+ return 0;
+}
+
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
#include <stdio.h>
#include "file.h"
diff --git a/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c b/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c
index 9aa49786f1..7efa73b273 100644
--- a/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c
+++ b/firmware/target/hosted/samsungypr/ypr1/system-ypr1.c
@@ -21,9 +21,11 @@
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
+#include <unistd.h>
#include "system.h"
#include "panic.h"
#include "debug.h"
+#include "hostfs.h"
#include "gpio-ypr.h"
#include "pmu-ypr1.h"
@@ -65,3 +67,15 @@ void system_exception_wait(void)
{
system_reboot();
}
+
+void hostfs_init()
+{
+ /* stub */
+}
+
+int hostfs_flush(void)
+{
+ sync();
+
+ return 0;
+}