diff --git a/arch/arm/src/sam34/Kconfig b/arch/arm/src/sam34/Kconfig index d813016ad1..fa4b7bd999 100644 --- a/arch/arm/src/sam34/Kconfig +++ b/arch/arm/src/sam34/Kconfig @@ -226,10 +226,16 @@ config ARCH_CHIP_SAM3U config ARCH_CHIP_SAM3X bool default n + select SAM34_HAVE_GPIOD_IRQ + select SAM34_HAVE_GPIOE_IRQ + select SAM34_HAVE_GPIOF_IRQ config ARCH_CHIP_SAM3A bool default n + select SAM34_HAVE_GPIOD_IRQ + select SAM34_HAVE_GPIOE_IRQ + select SAM34_HAVE_GPIOF_IRQ config ARCH_CHIP_SAM4CM bool @@ -247,6 +253,9 @@ config ARCH_CHIP_SAM4E select ARCH_HAVE_EXTNAND select ARCH_HAVE_EXTSRAM0 select ARCH_HAVE_EXTSRAM1 + select SAM34_HAVE_GPIOD_IRQ + select SAM34_HAVE_GPIOE_IRQ + select SAM34_HAVE_GPIOF_IRQ config ARCH_CHIP_SAM4S bool @@ -865,6 +874,18 @@ endmenu # External Memory Configuration menu "AT91SAM3/4 GPIO Interrupt Configuration" +config SAM34_HAVE_GPIOD_IRQ + bool + default n + +config SAM34_HAVE_GPIOE_IRQ + bool + default n + +config SAM34_HAVE_GPIOF_IRQ + bool + default n + config SAM34_GPIO_IRQ bool "GPIO pin interrupts" ---help--- @@ -887,17 +908,17 @@ config SAM34_GPIOC_IRQ config SAM34_GPIOD_IRQ bool "GPIOD interrupts" default n - depends on ARCH_CHIP_SAM3X || ARCH_CHIP_SAM3A + depends on SAM34_HAVE_GPIOD_IRQ config SAM34_GPIOE_IRQ bool "GPIOE interrupts" default n - depends on ARCH_CHIP_SAM3X || ARCH_CHIP_SAM3A + depends on SAM34_HAVE_GPIOE_IRQ config SAM34_GPIOF_IRQ bool "GPIOF interrupts" default n - depends on ARCH_CHIP_SAM3X || ARCH_CHIP_SAM3A + depends on SAM34_HAVE_GPIOF_IRQ endif # SAM34_GPIO_IRQ endmenu # AT91SAM3/4 GPIO Interrupt Configuration diff --git a/configs/sama5d4-ek/src/sam_ethernet.c b/configs/sama5d4-ek/src/sam_ethernet.c index 6c9c4b890d..9d87840856 100644 --- a/configs/sama5d4-ek/src/sam_ethernet.c +++ b/configs/sama5d4-ek/src/sam_ethernet.c @@ -249,7 +249,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable) #ifdef CONFIG_SAMA5_EMAC0 phydbg("EMAC0: devname=%s\n", SAMA5_EMAC0_DEVNAME); #endif -#ifdef CONFIG_SAMA5_EMAC0 +#ifdef CONFIG_SAMA5_EMAC1 phydbg("EMAC1: devname=%s\n", SAMA5_EMAC1_DEVNAME); #endif