blob: 7b7c48ec5adf6e7893f9f9436c75be6e56e4bedc [file] [log] [blame]
Thomas Choue51b65e2015-11-07 14:20:31 +08001/*
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
17UCLASS_DRIVER(mtd) = {
18 .id = UCLASS_MTD,
19 .name = "mtd",
20 .per_device_auto_alloc_size = sizeof(struct mtd_info),
21};