summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-layerscape/include/mach/bbu.h
blob: d018ec9a9dbf78458e7ae0e93e0d81854b17165d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __MACH_LAYERSCAPE_BBU_H
#define __MACH_LAYERSCAPE_BBU_H

#include <bbu.h>

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

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

#endif /* __MACH_LAYERSCAPE_BBU_H */