summaryrefslogtreecommitdiff
path: root/board/esd/common/auto_update.h
diff options
context:
space:
mode:
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>2008-04-21 14:42:06 +0200
committerStefan Roese <sr@denx.de>2008-04-22 13:47:49 +0200
commit83975d02e225e231960784972e7820a8b303756b (patch)
tree2cac6424c8b4517fa84312e6d95e6c0570d15f47 /board/esd/common/auto_update.h
parentb9233fe5d59cb25d975071616bd1035d6f4c2285 (diff)
downloadu-boot-imx-83975d02e225e231960784972e7820a8b303756b.zip
u-boot-imx-83975d02e225e231960784972e7820a8b303756b.tar.gz
u-boot-imx-83975d02e225e231960784972e7820a8b303756b.tar.bz2
ppc4xx: update esd's common auto_update code for 405 boards
- Coding style cleanup (long lines) - improve handling of protected flash regions - remove dead code Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'board/esd/common/auto_update.h')
-rw-r--r--board/esd/common/auto_update.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/board/esd/common/auto_update.h b/board/esd/common/auto_update.h
index e2af3c7..3ed0e16 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;