blob: da5c214d3ad399efda7b58d28f1401050effd03e (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef __MACH_BBU_H
#define __MACH_BBU_H
#include <bbu.h>
#ifdef CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO
int am33xx_bbu_spi_nor_mlo_register_handler(const char *name, char *devicefile);
#else
static inline int am33xx_bbu_spi_nor_mlo_register_handler(const char *name, char *devicefile)
{
return 0;
}
#endif
static inline int am33xx_bbu_spi_nor_register_handler(const char *name, char *devicefile)
{
return bbu_register_std_file_update(name, 0, devicefile, filetype_arm_barebox);
}
#ifdef CONFIG_BAREBOX_UPDATE_AM33XX_NAND
int am33xx_bbu_nand_xloadslots_register_handler(const char *name,
char **devicefile,
int num_devicefiles);
int am33xx_bbu_nand_register_handler(const char *name, char *devicefile);
#else
static inline int am33xx_bbu_nand_xloadslots_register_handler(const char *name,
char **devicefile,
int num_devicefiles)
{
return 0;
}
static inline int am33xx_bbu_nand_register_handler(const char *name, char *devicefile)
{
return 0;
}
#endif
#endif
|