diff --git a/arch/arm/src/samdl/sam_serial.c b/arch/arm/src/samdl/sam_serial.c index 66ec49c5de..a5c5bccbe4 100644 --- a/arch/arm/src/samdl/sam_serial.c +++ b/arch/arm/src/samdl/sam_serial.c @@ -977,9 +977,9 @@ void up_earlyserialinit(void) sam_disableallints(TTYS5_DEV.priv); #endif +#ifdef HAVE_SERIAL_CONSOLE /* Mark the serial console (if any) */ -#ifdef HAVE_SERIAL_CONSOLE CONSOLE_DEV.isconsole = true; #endif } diff --git a/arch/arm/src/samdl/saml_clockconfig.c b/arch/arm/src/samdl/saml_clockconfig.c index edb86611cf..b428db467f 100644 --- a/arch/arm/src/samdl/saml_clockconfig.c +++ b/arch/arm/src/samdl/saml_clockconfig.c @@ -277,6 +277,23 @@ static const struct sam_gclkconfig_s g_gclkconfig[] = .clksrc = (uint8_t)(BOARD_GCLK7_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT), } #endif + + /* GCLK generator 8 */ + +#ifdef BOARD_GCLK8_ENABLE + , + { + .gclk = 8, +#ifdef BOARD_GCLK8_RUN_IN_STANDBY + .runstandby = true; +#endif +#ifdef BOARD_GCLK8_OUTPUT_ENABLE + .output = true; +#endif + .prescaler = BOARD_GCLK8_PRESCALER, + .clksrc = (uint8_t)(BOARD_GCLK8_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT), + } +#endif }; #define NGCLKS_ENABLED (sizeof(g_gclkconfig) / sizeof(struct sam_gclkconfig_s))