upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
/*
|
|
* Header file for OneNAND support for U-Boot
|
|
*
|
|
* Adaptation from kernel to U-Boot
|
|
*
|
|
* Copyright (C) 2005-2007 Samsung Electronics
|
|
* Kyungmin Park <kyungmin.park@samsung.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __UBOOT_ONENAND_H
|
|
#define __UBOOT_ONENAND_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/mtd/mtd.h>
|
|
|
|
struct mtd_info;
|
|
struct erase_info;
|
|
|
|
extern struct mtd_info onenand_mtd;
|
|
|
|
/* Functions */
|
|
extern void onenand_init(void);
|
|
extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,
|
|
size_t * retlen, u_char * buf);
|
|
extern int onenand_read_oob(struct mtd_info *mtd, loff_t from,
|
|
struct mtd_oob_ops *ops);
|
|
extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len,
|
|
size_t * retlen, const u_char * buf);
|
|
extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr);
|
|
|
|
extern int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len);
|
|
|
|
extern char *onenand_print_device_info(int device);
|
|
|
|
#endif /* __UBOOT_ONENAND_H */
|
|
|