blob: 3c04c4716b6da95a53dfb1d28ac72960547267c0 [file] [log] [blame]
Yann Gautier29f1f942021-07-13 18:07:41 +02001/*
Lionel Debieve5adcd502022-10-05 16:51:12 +02002 * Copyright (c) 2021-2022, STMicroelectronics - All Rights Reserved
Yann Gautier29f1f942021-07-13 18:07:41 +02003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6#ifndef STM32MP_IO_STORAGE_H
7#define STM32MP_IO_STORAGE_H
8
9#include <stdint.h>
10
11#include <drivers/io/io_storage.h>
12
13/* IO devices handle */
14extern uintptr_t storage_dev_handle;
15extern uintptr_t fip_dev_handle;
Lionel Debieve5adcd502022-10-05 16:51:12 +020016extern uintptr_t enc_dev_handle;
Yann Gautier29f1f942021-07-13 18:07:41 +020017
18extern io_block_spec_t image_block_spec;
19
20/* Function declarations */
21int open_fip(const uintptr_t spec);
Lionel Debieve5adcd502022-10-05 16:51:12 +020022#ifndef DECRYPTION_SUPPORT_none
23int open_enc_fip(const uintptr_t spec);
24#endif
Yann Gautier29f1f942021-07-13 18:07:41 +020025int open_storage(const uintptr_t spec);
26
27#endif /* STM32MP_IO_STORAGE_H */