k64: Remove port clock enables from the soc init The mcux pinmux driver enables the port clocks, so the soc init no longer needs to enable them. Also removes some soc defines that were used only by the legacy k64 pinmux driver. Change-Id: I63174bef4024b5a09a73f941cea0aec691c759d3 Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
diff --git a/arch/arm/soc/nxp_kinetis/k6x/soc.c b/arch/arm/soc/nxp_kinetis/k6x/soc.c index 0ce944e..889072e 100644 --- a/arch/arm/soc/nxp_kinetis/k6x/soc.c +++ b/arch/arm/soc/nxp_kinetis/k6x/soc.c
@@ -168,11 +168,6 @@ /* disable interrupts */ oldLevel = irq_lock(); - /* enable the port clocks */ - SIM->SCGC5 |= (SIM_SCGC5_PORTA(1) | SIM_SCGC5_PORTB(1) | - SIM_SCGC5_PORTC(1) | SIM_SCGC5_PORTD(1) | - SIM_SCGC5_PORTE(1)); - /* release I/O power hold to allow normal run state */ PMC->REGSC |= PMC_REGSC_ACKISO_MASK;
diff --git a/arch/arm/soc/nxp_kinetis/k6x/soc.h b/arch/arm/soc/nxp_kinetis/k6x/soc.h index f261aa0..6fc7df9 100644 --- a/arch/arm/soc/nxp_kinetis/k6x/soc.h +++ b/arch/arm/soc/nxp_kinetis/k6x/soc.h
@@ -179,12 +179,6 @@ #endif /* CONFIG_UART_K20 */ -#define PORT_K64_A_BASE_ADDR 0x40049000 -#define PORT_K64_B_BASE_ADDR 0x4004A000 -#define PORT_K64_C_BASE_ADDR 0x4004B000 -#define PORT_K64_D_BASE_ADDR 0x4004C000 -#define PORT_K64_E_BASE_ADDR 0x4004D000 - /* * PWM/FTM configuration settings */ @@ -218,15 +212,6 @@ #endif /* CONFIG_SPI_K64 */ -/* - * PINMUX configuration settings - */ -#if defined(CONFIG_PINMUX) - -#define PINMUX_NUM_PINS 160 - -#endif /* CONFIG_PINMUX */ - #endif /* !_ASMLANGUAGE */ #ifdef __cplusplus