summaryrefslogblamecommitdiffstats
path: root/arch/arm/mach-stm32mp/include/mach/bbu.h
blob: b469cdeb7c93d9c753f5b3e8c78f513536531ed7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                           









                                                                          
                                                                          

 















                                                                          
                                
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef MACH_STM32MP_BBU_H_
#define MACH_STM32MP_BBU_H_

#include <bbu.h>

static inline int stm32mp_bbu_mmc_register_handler(const char *name,
						   const char *devicefile,
						   unsigned long flags)
{
	return bbu_register_std_file_update(name, flags, devicefile,
					    filetype_stm32_image_ssbl_v1);
}

#ifdef CONFIG_BAREBOX_UPDATE

int stm32mp_bbu_mmc_fip_register(const char *name, const char *devicefile,
				 unsigned long flags);

#else

static inline int stm32mp_bbu_mmc_fip_register(const char *name,
					       const char *devicefile,
					       unsigned long flags)
{
	return -ENOSYS;
}

#endif

#endif /* MACH_STM32MP_BBU_H_ */