drivers: watchdog: sam0: Remove defines from dts_fixup.h
Move SAM0 GPIO to use the raw defines generated from the DTS parsing. Signed-off-by: Derek Hageman <hageman@inthat.cloud>
This commit is contained in:
parent
4204700ae4
commit
06caf27436
4 changed files with 8 additions and 20 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(wdt_sam0);
|
||||
|
||||
#define WDT_REGS ((Wdt *)DT_WDT_SAM0_BASE_ADDRESS)
|
||||
#define WDT_REGS ((Wdt *)DT_ATMEL_SAM0_WATCHDOG_0_BASE_ADDRESS)
|
||||
|
||||
struct wdt_sam0_dev_data {
|
||||
wdt_callback_t cb;
|
||||
|
@ -208,16 +208,16 @@ static int wdt_sam0_init(struct device *dev)
|
|||
| GCLK_CLKCTRL_GEN_GCLK2
|
||||
| GCLK_CLKCTRL_CLKEN;
|
||||
|
||||
IRQ_CONNECT(DT_WDT_SAM0_IRQ,
|
||||
DT_WDT_SAM0_IRQ_PRIORITY, wdt_sam0_isr,
|
||||
IRQ_CONNECT(DT_ATMEL_SAM0_WATCHDOG_0_IRQ_0,
|
||||
DT_ATMEL_SAM0_WATCHDOG_0_IRQ_0_PRIORITY, wdt_sam0_isr,
|
||||
DEVICE_GET(wdt_sam0), 0);
|
||||
irq_enable(DT_WDT_SAM0_IRQ);
|
||||
irq_enable(DT_ATMEL_SAM0_WATCHDOG_0_IRQ_0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct wdt_sam0_dev_data wdt_sam0_data;
|
||||
|
||||
DEVICE_AND_API_INIT(wdt_sam0, DT_WDT_SAM0_LABEL, wdt_sam0_init,
|
||||
DEVICE_AND_API_INIT(wdt_sam0, DT_ATMEL_SAM0_WATCHDOG_0_LABEL, wdt_sam0_init,
|
||||
&wdt_sam0_data, NULL, PRE_KERNEL_1,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &wdt_sam0_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue