1 /* 2 * Copyright (c) 2022, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #include "image.h" 9 10 #include "Driver_Flash.h" 11 #include "flash_layout.h" 12 #include "region_defs.h" 13 #include "fih.h" 14 15 extern ARM_DRIVER_FLASH FLASH_DEV_NAME; 16 bl1_read_bl1_2_image(uint8_t * image)17fih_int bl1_read_bl1_2_image(uint8_t *image) 18 { 19 uint32_t flash_offset; 20 fih_int fih_rc; 21 22 fih_rc = fih_int_encode(FLASH_DEV_NAME.ReadData(BL1_2_IMAGE_FLASH_OFFSET, 23 image, 24 BL1_2_CODE_SIZE); 25 26 FIH_RET(fih_rc); 27 } 28