summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/cbfs.h7
-rw-r--r--src/soc/samsung/exynos5250/alternate_cbfs.c2
-rw-r--r--src/soc/samsung/exynos5420/alternate_cbfs.c2
3 files changed, 8 insertions, 3 deletions
diff --git a/src/include/cbfs.h b/src/include/cbfs.h
index fcc55b5f67..c46d2a0be3 100644
--- a/src/include/cbfs.h
+++ b/src/include/cbfs.h
@@ -76,7 +76,12 @@ void *cbfs_simple_buffer_map(struct cbfs_simple_buffer *buffer,
void *cbfs_simple_buffer_unmap(struct cbfs_simple_buffer *buffer,
const void *address);
-/* Defined in individual arch / board implementation. */
+
+/*
+ * Defined in individual arch / board implementation.
+ *
+ * it returns 0 on success and non-zero on error.
+ */
int init_default_cbfs_media(struct cbfs_media *media);
#endif
diff --git a/src/soc/samsung/exynos5250/alternate_cbfs.c b/src/soc/samsung/exynos5250/alternate_cbfs.c
index 93a3363b4f..9f873bff9f 100644
--- a/src/soc/samsung/exynos5250/alternate_cbfs.c
+++ b/src/soc/samsung/exynos5250/alternate_cbfs.c
@@ -171,6 +171,6 @@ int init_default_cbfs_media(struct cbfs_media *media)
default:
printk(BIOS_EMERG, "Exynos OM_STAT value 0x%x not supported!\n",
exynos_power->om_stat);
- return 0;
+ return 1;
}
}
diff --git a/src/soc/samsung/exynos5420/alternate_cbfs.c b/src/soc/samsung/exynos5420/alternate_cbfs.c
index 9ac0e2478e..45489f1e19 100644
--- a/src/soc/samsung/exynos5420/alternate_cbfs.c
+++ b/src/soc/samsung/exynos5420/alternate_cbfs.c
@@ -178,6 +178,6 @@ int init_default_cbfs_media(struct cbfs_media *media)
default:
printk(BIOS_EMERG, "Exynos OM_STAT value 0x%x not supported!\n",
exynos_power->om_stat);
- return 0;
+ return 1;
}
}