avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
21
u-boot/drivers/mtd/mtd-uclass.c
Normal file
21
u-boot/drivers/mtd/mtd-uclass.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <errno.h>
|
||||
#include <mtd.h>
|
||||
|
||||
/*
|
||||
* Implement a MTD uclass which should include most flash drivers.
|
||||
* The uclass private is pointed to mtd_info.
|
||||
*/
|
||||
|
||||
UCLASS_DRIVER(mtd) = {
|
||||
.id = UCLASS_MTD,
|
||||
.name = "mtd",
|
||||
.per_device_auto_alloc_size = sizeof(struct mtd_info),
|
||||
};
|
||||
Reference in New Issue
Block a user