1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
11 static int atmel_ebi_probe(struct udevice *dev)
16 ret = uclass_get_device_by_driver(UCLASS_MTD,
17 DM_DRIVER_GET(atmel_nand_controller),
20 printf("Failed to probe nand driver (err = %d)\n", ret);
25 static const struct udevice_id atmel_ebi_match[] = {
26 {.compatible = "microchip,sam9x60-ebi"},
27 {.compatible = "atmel,sama5d3-ebi"},
31 U_BOOT_DRIVER(atmel_ebi) = {
34 .of_match = atmel_ebi_match,
35 .probe = atmel_ebi_probe,
36 .bind = dm_scan_fdt_dev,