bcm963158: add nand support
[oweals/u-boot.git] / include / jffs2 / load_kernel.h
index dd0d23fa52a48fafab5ea2d29c56c9771ef8afc0..9346d7ee9f1b6376097337181565f6202bc12f1b 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 #ifndef load_kernel_h
 #define load_kernel_h
 /*-------------------------------------------------------------------------
@@ -7,9 +8,6 @@
  * Author:        Russ Dill <Russ.Dill@asu.edu>
  * Description:   header for load kernel modules
  *-----------------------------------------------------------------------*/
-/*
- * SPDX-License-Identifier:    GPL-2.0+
- */
 
 #include <linux/list.h>
 
 #define MTD_DEV_TYPE_NOR       0x0001
 #define MTD_DEV_TYPE_NAND      0x0002
 #define MTD_DEV_TYPE_ONENAND   0x0004
+#define MTD_DEV_TYPE_SPINAND   0x0008
 
-#define MTD_DEV_TYPE(type) ((type == MTD_DEV_TYPE_NAND) ? "nand" :     \
-                       (type == MTD_DEV_TYPE_ONENAND) ? "onenand" : "nor")
+#define MTD_DEV_TYPE(type) (type == MTD_DEV_TYPE_NAND ? "nand" :       \
+                           (type == MTD_DEV_TYPE_NOR ? "nor" :         \
+                            (type == MTD_DEV_TYPE_ONENAND ? "onenand" : \
+                             "spi-nand")))                             \
 
 struct mtd_device {
        struct list_head link;