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