xref: /openbmc/u-boot/drivers/mtd/mtd-uclass.c (revision d9b23e26)
1 /*
2  * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #include <common.h>
8 #include <dm.h>
9 #include <errno.h>
10 #include <mtd.h>
11 
12 /*
13  * Implement a MTD uclass which should include most flash drivers.
14  * The uclass private is pointed to mtd_info.
15  */
16 
17 UCLASS_DRIVER(mtd) = {
18 	.id		= UCLASS_MTD,
19 	.name		= "mtd",
20 	.per_device_auto_alloc_size = sizeof(struct mtd_info),
21 };
22