summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-08-14 09:28:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-08-14 09:28:10 +0200
commit65778b63d2f0b6d5b3405010eedc72271bce20e0 (patch)
treec4c3e859387a3dce7da811edff04a3b79cb9f5fd /include/driver.h
parent59f72431f42753e1f61bd19176eb67029e2ef77c (diff)
downloadbarebox-65778b63d2f0b6d5b3405010eedc72271bce20e0.tar.gz
barebox-65778b63d2f0b6d5b3405010eedc72271bce20e0.tar.xz
Partition: Add an own device id for partitions
Add an own device id for partitions. This is necessary to allow the partition layer to check if the given device is really a partition. Also, check for readonly flag in erase. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h
index fb31ada610..e2b6d669dc 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -36,7 +36,8 @@
#define DEVICE_TYPE_MIIPHY 6
#define DEVICE_TYPE_NAND 7
#define DEVICE_TYPE_NAND_BB 8
-#define MAX_DEVICE_TYPE 8
+#define DEVICE_TYPE_PARTITION 9
+#define MAX_DEVICE_TYPE 9
#include <param.h>