From 39fd4b142ef9dced7522dcd18c9995133684ae1b Mon Sep 17 00:00:00 2001 From: Tyler Miller Date: Thu, 21 Dec 2023 15:16:48 +0100 Subject: bsp/tms570: Remove double pin configuration Do not set pins to the default function before the actual setting is applied. If a pin setting needs to be done in a certain order, then this should be done explicitly through multiple calls to tms570_bsp_pinmmr_config(). Update #4982. --- bsps/arm/tms570/start/pinmux.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'bsps') diff --git a/bsps/arm/tms570/start/pinmux.c b/bsps/arm/tms570/start/pinmux.c index d9c52cd00d..9277a36431 100644 --- a/bsps/arm/tms570/start/pinmux.c +++ b/bsps/arm/tms570/start/pinmux.c @@ -182,16 +182,6 @@ tms570_bsp_pinmmr_config(const uint32_t *pinmmr_values, int reg_start, int reg_c pval = pinmmr_values; cnt = reg_count; - do { - *pinmmrx = *pinmmrx & *pval; - pinmmrx++; - pval++; - } while( --cnt ); - - pinmmrx = (&TMS570_IOMM.PINMUX.PINMMR0) + reg_start; - pval = pinmmr_values; - cnt = reg_count; - do { *pinmmrx = *pval; pinmmrx++; -- cgit v1.2.3