mtd-uclass.c 469 B

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