blob: 4ab84de5531058db90bcb1b83ec6f9706d8f7e74 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Thomas Choue51b65e2015-11-07 14:20:31 +08002/*
3 * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
Thomas Choue51b65e2015-11-07 14:20:31 +08004 */
5
6#include <common.h>
7#include <dm.h>
Miquel Raynalaa168ac2018-09-29 12:58:24 +02008#include <dm/device-internal.h>
Thomas Choue51b65e2015-11-07 14:20:31 +08009#include <errno.h>
10#include <mtd.h>
11
Thomas Choue51b65e2015-11-07 14:20:31 +080012/*
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",
Simon Glass8a2b47f2020-12-03 16:55:17 -070020 .per_device_auto = sizeof(struct mtd_info),
Thomas Choue51b65e2015-11-07 14:20:31 +080021};