summaryrefslogtreecommitdiff
path: root/plat/socionext
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-10-04 14:54:49 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-10-30 13:15:46 +0900
commit8be7850fd67b9eed258330155ce16ab13d02123c (patch)
tree6ac886c3049e43659666b9236d3aa6e7c72ba3c6 /plat/socionext
parent9aabd11a424770e11dd89251960678d3e3332df6 (diff)
uniphier: terminate boot if SCP_BL2 image is missing in SCP boot mode
Skipping SCP_BL2 image is just a temporary workaround. If on-chip SCP needs to work, BL2 should load the SCP_BL2 image. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'plat/socionext')
-rw-r--r--plat/socionext/uniphier/uniphier.h1
-rw-r--r--plat/socionext/uniphier/uniphier_bl2_setup.c10
-rw-r--r--plat/socionext/uniphier/uniphier_io_storage.c18
3 files changed, 0 insertions, 29 deletions
diff --git a/plat/socionext/uniphier/uniphier.h b/plat/socionext/uniphier/uniphier.h
index 7ff14641..89ed3628 100644
--- a/plat/socionext/uniphier/uniphier.h
+++ b/plat/socionext/uniphier/uniphier.h
@@ -41,7 +41,6 @@ int uniphier_nand_init(uintptr_t *block_dev_spec);
int uniphier_usb_init(unsigned int soc, uintptr_t *block_dev_spec);
int uniphier_io_setup(unsigned int soc);
-int uniphier_check_image(unsigned int image_id);
struct image_info;
struct image_info *uniphier_get_image_info(unsigned int image_id);
diff --git a/plat/socionext/uniphier/uniphier_bl2_setup.c b/plat/socionext/uniphier/uniphier_bl2_setup.c
index f7ae4264..fb7997c8 100644
--- a/plat/socionext/uniphier/uniphier_bl2_setup.c
+++ b/plat/socionext/uniphier/uniphier_bl2_setup.c
@@ -88,16 +88,6 @@ void bl2_el3_plat_arch_setup(void)
break;
}
- if (!skip_scp) {
- ret = uniphier_check_image(SCP_BL2_IMAGE_ID);
- if (ret) {
- WARN("SCP_BL2 image not found. SCP_BL2 load will be skipped.\n");
- WARN("You must setup SCP by other means.\n");
- skip_scp = 1;
- uniphier_bl2_kick_scp = 0;
- }
- }
-
if (skip_scp) {
struct image_info *image_info;
diff --git a/plat/socionext/uniphier/uniphier_io_storage.c b/plat/socionext/uniphier/uniphier_io_storage.c
index 1fd835b5..5d841ac0 100644
--- a/plat/socionext/uniphier/uniphier_io_storage.c
+++ b/plat/socionext/uniphier/uniphier_io_storage.c
@@ -335,21 +335,3 @@ int plat_get_image_source(unsigned int image_id, uintptr_t *dev_handle,
return io_dev_init(*dev_handle, init_params);
}
-
-int uniphier_check_image(unsigned int image_id)
-{
- uintptr_t dev_handle, image_spec, image_handle;
- int ret;
-
- ret = plat_get_image_source(image_id, &dev_handle, &image_spec);
- if (ret)
- return ret;
-
- ret = io_open(dev_handle, image_spec, &image_handle);
- if (ret)
- return ret;
-
- io_close(image_handle);
-
- return 0;
-}