summaryrefslogtreecommitdiffstats
path: root/sys/boot/uboot/lib
diff options
context:
space:
mode:
authorgber <gber@FreeBSD.org>2012-05-18 14:41:14 +0000
committergber <gber@FreeBSD.org>2012-05-18 14:41:14 +0000
commit7e0300ab96b6bd2cedfc911afba92138074ee6a0 (patch)
tree049df761b5b20a666600f644f192274f9235cc9e /sys/boot/uboot/lib
parent3362e8f75f0725e5d2959c357aab85744c55f3ad (diff)
downloadFreeBSD-src-7e0300ab96b6bd2cedfc911afba92138074ee6a0.zip
FreeBSD-src-7e0300ab96b6bd2cedfc911afba92138074ee6a0.tar.gz
Add architecture dependent code to support NAND Framework on Marvell SoCs.
Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks
Diffstat (limited to 'sys/boot/uboot/lib')
-rw-r--r--sys/boot/uboot/lib/api_public.h1
-rw-r--r--sys/boot/uboot/lib/glue.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/boot/uboot/lib/api_public.h b/sys/boot/uboot/lib/api_public.h
index b0140c5..9537479 100644
--- a/sys/boot/uboot/lib/api_public.h
+++ b/sys/boot/uboot/lib/api_public.h
@@ -132,6 +132,7 @@ typedef unsigned long lbastart_t;
#define DT_STOR_SCSI 0x0020
#define DT_STOR_USB 0x0040
#define DT_STOR_MMC 0x0080
+#define DT_STOR_NAND 0x0100
#define DEV_STA_CLOSED 0x0000 /* invalid, closed */
#define DEV_STA_OPEN 0x0001 /* open i.e. active */
diff --git a/sys/boot/uboot/lib/glue.c b/sys/boot/uboot/lib/glue.c
index f154dc6..df12a7d 100644
--- a/sys/boot/uboot/lib/glue.c
+++ b/sys/boot/uboot/lib/glue.c
@@ -407,6 +407,9 @@ ub_stor_type(int type)
if (type & DT_STOR_MMC)
return ("MMC");
+ if (type & DT_STOR_NAND)
+ return ("NAND");
+
return ("Unknown");
}
OpenPOWER on IntegriCloud