mtd-uclass.c 415 B

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