From 403e6f1b99a733a7ee0d6dc404ec41202dbbd041 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 25 Jun 2019 12:48:01 +0200 Subject: [PATCH] soc/arm: Add a fixup for counter/alarm sample to compile with MEC1501 There are 2 other timers that could be selected, let's just take the first 32bits one. This should be sufficient to verify the driver. Enabling the timer in relevant board's dts file as well. Signed-off-by: Tomasz Bursztyka --- boards/arm/mec15xxevb_assy6853/mec15xxevb_assy6853.dts | 4 ++++ soc/arm/microchip_mec/mec1501/dts_fixup.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/boards/arm/mec15xxevb_assy6853/mec15xxevb_assy6853.dts b/boards/arm/mec15xxevb_assy6853/mec15xxevb_assy6853.dts index 099dbb6ab24..8989b1efac7 100644 --- a/boards/arm/mec15xxevb_assy6853/mec15xxevb_assy6853.dts +++ b/boards/arm/mec15xxevb_assy6853/mec15xxevb_assy6853.dts @@ -48,3 +48,7 @@ vw_girq = <24>; pc_girq = <15>; }; + +&timer3 { + status = "okay"; +}; diff --git a/soc/arm/microchip_mec/mec1501/dts_fixup.h b/soc/arm/microchip_mec/mec1501/dts_fixup.h index 3a26ff5e5f5..c6516fa0b49 100644 --- a/soc/arm/microchip_mec/mec1501/dts_fixup.h +++ b/soc/arm/microchip_mec/mec1501/dts_fixup.h @@ -134,4 +134,6 @@ #endif /* DT_MICROCHIP_XEC_TIMER_40000CA0_BASE_ADDRESS */ +#define DT_RTC_0_NAME DT_MICROCHIP_XEC_TIMER_40000CA0_LABEL + #define DT_WDT_0_NAME DT_INST_0_MICROCHIP_XEC_WATCHDOG_LABEL