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