Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Thomas Chou | d858799 | 2015-11-07 14:20:31 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw> |
Thomas Chou | d858799 | 2015-11-07 14:20:31 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <dm.h> |
| 8 | #include <errno.h> |
| 9 | #include <mtd.h> |
| 10 | |
| 11 | /* |
| 12 | * Implement a MTD uclass which should include most flash drivers. |
| 13 | * The uclass private is pointed to mtd_info. |
| 14 | */ |
| 15 | |
| 16 | UCLASS_DRIVER(mtd) = { |
| 17 | .id = UCLASS_MTD, |
| 18 | .name = "mtd", |
| 19 | .per_device_auto_alloc_size = sizeof(struct mtd_info), |
| 20 | }; |