3 * Stefan Roese, esd gmbh germany, stefan.roese@esd-electronics.com
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef _AUTO_UPDATE_H_
9 #define _AUTO_UPDATE_H_
11 #define MBR_MAGIC 0x07081967
12 #define MBR_MAGIC_ADDR 0x100 /* offset 0x100 should be free space */
14 #define AU_MAGIC_FILE "__auto_update"
16 #define AU_TYPEMASK 0x000000ff
17 #define AU_FLAGMASK 0xffff0000
19 #define AU_PROTECT 0x80000000
21 #define AU_SCRIPT 0x01
22 #define AU_FIRMWARE (0x02 | AU_PROTECT)
33 typedef struct au_image_s au_image_t;
35 int do_auto_update(void);
36 #ifdef CONFIG_AUTO_UPDATE_SHOW
37 void board_auto_update_show(int au_active);
40 #endif /* #ifndef _AUTO_UPDATE_H_ */