mtd-uclass.c 418 B

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