X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fesd%2Fcommon%2Fauto_update.h;h=3ed0e16372f1af2306b5973ebaf09b6cc9bbf3fa;hb=12ae615fba9ac962df97d1367291c9563bfb6da4;hp=e2af3c7b15551e120bb51ee8596cc1bf9f03afd8;hpb=0621f6f9d33e7b9949a0f1b6d296ee1da6fb0198;p=u-boot diff --git a/board/esd/common/auto_update.h b/board/esd/common/auto_update.h index e2af3c7b15..3ed0e16372 100644 --- a/board/esd/common/auto_update.h +++ b/board/esd/common/auto_update.h @@ -29,16 +29,21 @@ #define AU_MAGIC_FILE "__auto_update" -#define AU_SCRIPT 1 -#define AU_FIRMWARE 2 -#define AU_NOR 3 -#define AU_NAND 4 +#define AU_TYPEMASK 0x000000ff +#define AU_FLAGMASK 0xffff0000 + +#define AU_PROTECT 0x80000000 + +#define AU_SCRIPT 0x01 +#define AU_FIRMWARE (0x02 | AU_PROTECT) +#define AU_NOR 0x03 +#define AU_NAND 0x04 struct au_image_s { char name[80]; ulong start; ulong size; - int type; + ulong type; }; typedef struct au_image_s au_image_t;