blob: 99be4e1d656b0edb851d7e1dae02e9d3440e7d34 [file] [log] [blame]
Patrick Delaunay7daa91d2020-03-18 09:24:49 +01001/* 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
8int stm32prog_write_medium_virt(struct dfu_entity *dfu, u64 offset,
9 void *buf, long *len);
10int stm32prog_read_medium_virt(struct dfu_entity *dfu, u64 offset,
11 void *buf, long *len);
12int stm32prog_get_medium_size_virt(struct dfu_entity *dfu, u64 *size);
Patrick Delaunayc5112242020-03-18 09:24:55 +010013
Patrick Delaunay1008a502021-07-26 11:21:38 +020014#ifdef CONFIG_STM32MP15x_STM32IMAGE
Patrick Delaunayc5112242020-03-18 09:24:55 +010015bool stm32prog_get_tee_partitions(void);
Patrick Delaunay1008a502021-07-26 11:21:38 +020016#endif
Patrick Delaunayc5112242020-03-18 09:24:55 +010017
18bool stm32prog_get_fsbl_nor(void);