projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.denx.de/u-boot-net
[platform/kernel/u-boot.git]
/
include
/
nand.h
diff --git
a/include/nand.h
b/include/nand.h
index
bc5dd81
..
93cbe1e
100644
(file)
--- a/
include/nand.h
+++ b/
include/nand.h
@@
-1,9
+1,8
@@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* (C) Copyright 2005
* 2N Telekomunikace, a.s. <www.2n.cz>
* Ladislav Michl <michl@2n.cz>
/*
* (C) Copyright 2005
* 2N Telekomunikace, a.s. <www.2n.cz>
* Ladislav Michl <michl@2n.cz>
- *
- * SPDX-License-Identifier: GPL-2.0
*/
#ifndef _NAND_H_
*/
#ifndef _NAND_H_
@@
-32,7
+31,7
@@
unsigned long nand_size(void);
#include <linux/compat.h>
#include <linux/mtd/mtd.h>
#include <linux/compat.h>
#include <linux/mtd/mtd.h>
-#include <linux/mtd/nand.h>
+#include <linux/mtd/
raw
nand.h>
int nand_mtd_to_devnum(struct mtd_info *mtd);
int nand_mtd_to_devnum(struct mtd_info *mtd);
@@
-44,7
+43,6
@@
extern int board_nand_init(struct nand_chip *nand);
#endif
extern int nand_curr_device;
#endif
extern int nand_curr_device;
-extern struct mtd_info *nand_info[];
static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len,
u_char *buf)
static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len,
u_char *buf)
@@
-145,4
+143,13
@@
int spl_nand_erase_one(int block, int page);
/* platform specific init functions */
void sunxi_nand_init(void);
/* platform specific init functions */
void sunxi_nand_init(void);
+/*
+ * get_nand_dev_by_index - Get the nand info based in index.
+ *
+ * @dev - index to the nand device.
+ *
+ * returns pointer to the nand device info structure or NULL on failure.
+ */
+struct mtd_info *get_nand_dev_by_index(int dev);
+
#endif /* _NAND_H_ */
#endif /* _NAND_H_ */