Patrick Delaunay | 7daa91d | 2020-03-18 09:24:49 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ |
| 2 | /* |
| 3 | * Copyright (C) 2020, STMicroelectronics - All Rights Reserved |
| 4 | */ |
| 5 | |
| 6 | #define STM32PROG_VIRT_FIRST_DEV_NUM 0xF1 |
| 7 | |
| 8 | int stm32prog_write_medium_virt(struct dfu_entity *dfu, u64 offset, |
| 9 | void *buf, long *len); |
| 10 | int stm32prog_read_medium_virt(struct dfu_entity *dfu, u64 offset, |
| 11 | void *buf, long *len); |
| 12 | int stm32prog_get_medium_size_virt(struct dfu_entity *dfu, u64 *size); |
Patrick Delaunay | c511224 | 2020-03-18 09:24:55 +0100 | [diff] [blame] | 13 | |
Patrick Delaunay | 1008a50 | 2021-07-26 11:21:38 +0200 | [diff] [blame] | 14 | #ifdef CONFIG_STM32MP15x_STM32IMAGE |
Patrick Delaunay | c511224 | 2020-03-18 09:24:55 +0100 | [diff] [blame] | 15 | bool stm32prog_get_tee_partitions(void); |
Patrick Delaunay | 1008a50 | 2021-07-26 11:21:38 +0200 | [diff] [blame] | 16 | #endif |
Patrick Delaunay | c511224 | 2020-03-18 09:24:55 +0100 | [diff] [blame] | 17 | |
| 18 | bool stm32prog_get_fsbl_nor(void); |