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.
 
 
 
 
 
 
u-boot/include/mtd.h

23 lines
445 B

/*
* Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef _MTD_H_
#define _MTD_H_
#include <linux/mtd/mtd.h>
/*
* Get mtd_info structure of the dev, which is stored as uclass private.
*
* @dev: The MTD device
* @return: pointer to mtd_info, NULL on error
*/
static inline struct mtd_info *mtd_get_info(struct udevice *dev)
{
return dev_get_uclass_priv(dev);
}
#endif /* _MTD_H_ */