Jimmy Brisson | ff08d3e | 2020-04-02 15:19:27 -0500 | [diff] [blame^] | 1 | Storage Abstraction Layer |
Jimmy Brisson | a48f507 | 2020-04-02 15:19:16 -0500 | [diff] [blame] | 2 | ========================= |
| 3 | |
| 4 | In order to improve platform independence and portability a storage abstraction |
| 5 | layer is used to store test results to non-volatile platform storage. |
| 6 | |
Jimmy Brisson | ff08d3e | 2020-04-02 15:19:27 -0500 | [diff] [blame^] | 7 | Each platform should register devices and their drivers via the storage layer. |
| 8 | These drivers then need to be initialized using the ``tftf_platform_setup()`` |
| 9 | function. |
Jimmy Brisson | a48f507 | 2020-04-02 15:19:16 -0500 | [diff] [blame] | 10 | |
Jimmy Brisson | ff08d3e | 2020-04-02 15:19:27 -0500 | [diff] [blame^] | 11 | .. warning:: |
| 12 | It is mandatory to implement at least one storage driver. |
| 13 | |
| 14 | For the FVP and Juno platforms the NOR Flash driver is provided as the default |
| 15 | means to store test results to storage. The storage layer is described in the |
| 16 | header file ``include/lib/io_storage.h``. The implementation of the common |
| 17 | library is in ``drivers/io/io_storage.c`` and the driver files are located in |
| 18 | ``drivers/io/``. |
Jimmy Brisson | a48f507 | 2020-04-02 15:19:16 -0500 | [diff] [blame] | 19 | |
| 20 | -------------- |
| 21 | |
| 22 | *Copyright (c) 2019, Arm Limited. All rights reserved.* |