]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
usb: gadget: atmel: Add SAM9X60 support
authorZixun LI <admin@hifiphile.com>
Mon, 31 Mar 2025 16:26:07 +0000 (18:26 +0200)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Thu, 10 Apr 2025 08:02:06 +0000 (10:02 +0200)
Compared to SAM9X5 the only difference is the DPRAM memory from the
USB High Speed Device Port (UDPHS) hardware block was increased,
so we can reuse the same endpoint data.

Also add compatible "microchip,sam9x60-udc".

Signed-off-by: Zixun LI <admin@hifiphile.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Link: https://lore.kernel.org/r/20250331162611.1557759-2-admin@hifiphile.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
arch/arm/mach-at91/include/mach/atmel_usba_udc.h
drivers/usb/gadget/atmel_usba_udc.c

index 835b47d91bab6918d118956009f605d2cc1f2a08..23c71985c90e97847946f66370ed3073ab522c4d 100644 (file)
@@ -20,7 +20,7 @@
        }
 
 #if defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \
-       defined(CONFIG_AT91SAM9X5)
+       defined(CONFIG_AT91SAM9X5) || defined(CONFIG_SAM9X60)
 static struct usba_ep_data usba_udc_ep[] = {
        EP("ep0", 0, 64, 1, 0, 0),
        EP("ep1", 1, 1024, 2, 1, 1),
index a77037a70944f194fa9c829db0cf238ea18c0785..f9326f0a7e7d913bcf201ba3e4aeca9a099e7be7 100644 (file)
@@ -1443,6 +1443,7 @@ static const struct udevice_id usba_udc_ids[] = {
        { .compatible = "atmel,at91sam9rl-udc" },
        { .compatible = "atmel,at91sam9g45-udc" },
        { .compatible = "atmel,sama5d3-udc" },
+       { .compatible = "microchip,sam9x60-udc" },
        {}
 };