mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
arch/arm/src/s32k1xx/s32k14x and boards/arm/s32k1xx/s32k146evb/src: Numerous fixes to get a clean build of the S32K146EVB.
This commit is contained in:
@@ -16,9 +16,10 @@ Status
|
||||
|
||||
2019-08-148 Configuration created but entirely untested. This
|
||||
configuration is intended, initially, to verify s32k14x architecture
|
||||
support. This is VERY much a work in progress and you should not
|
||||
use this configuration unless you are interested in assisting with
|
||||
the bring-up.
|
||||
support. The configuration builds and linkes without error but has
|
||||
not yet been tested. This is VERY much a work in progress and you
|
||||
should not use this configuration unless you are interested in
|
||||
assisting with the bring-up.
|
||||
|
||||
Serial Console
|
||||
==============
|
||||
|
||||
@@ -114,11 +114,11 @@ const struct clock_configuration_s g_initial_clkconfig =
|
||||
},
|
||||
.spll =
|
||||
{
|
||||
.mode = SCG_SPLL_MONITOR_DISABLE, /* SPLLCM */
|
||||
.div1 = SCG_ASYNC_CLOCK_DIV_BY_1, /* SPLLDIV1 */
|
||||
.div2 = SCG_ASYNC_CLOCK_DIV_BY_1, /* SPLLDIV2 */
|
||||
.prediv = SCG_SPLL_CLOCK_PREDIV_BY_1, /* PREDIV */
|
||||
.mult = SCG_SPLL_CLOCK_MULTIPLY_BY_28, /* MULT */
|
||||
.mode = SCG_SPLL_MONITOR_DISABLE, /* SPLLCM */
|
||||
.div1 = SCG_ASYNC_CLOCK_DIV_BY_1, /* SPLLDIV1 */
|
||||
.div2 = SCG_ASYNC_CLOCK_DIV_BY_1, /* SPLLDIV2 */
|
||||
.prediv = 1, /* PREDIV */
|
||||
.mult = 28, /* MULT */
|
||||
.src = 0, /* SOURCE */
|
||||
.initialize = true, /* Initialize */
|
||||
.stopmode = false, /* */
|
||||
|
||||
@@ -80,77 +80,77 @@
|
||||
const struct peripheral_clock_config_s g_peripheral_clockconfig0[] =
|
||||
{
|
||||
{
|
||||
.clkname = PCC_ADC0_CLOCK,
|
||||
.clkname = ADC0_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_FIRC,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_ADC1_CLOCK,
|
||||
.clkname = ADC1_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_FIRC,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_LPTMR0_CLOCK,
|
||||
.clkname = LPTMR0_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_SIRC,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_LPUART0_CLOCK,
|
||||
.clkname = LPUART0_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_SIRC,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_LPUART1_CLOCK,
|
||||
.clkname = LPUART1_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_SIRC,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_LPUART2_CLOCK,
|
||||
.clkname = LPUART2_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_SIRC,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_PORTA_CLOCK,
|
||||
.clkname = PORTA_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_OFF,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_PORTB_CLOCK,
|
||||
.clkname = PORTB_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_OFF,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_PORTC_CLOCK,
|
||||
.clkname = PORTC_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_OFF,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_PORTD_CLOCK,
|
||||
.clkname = PORTD_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_OFF,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
.divider = DIVIDE_BY_ONE,
|
||||
},
|
||||
{
|
||||
.clkname = PCC_PORTE_CLOCK,
|
||||
.clkname = PORTE_CLK,
|
||||
.clkgate = true,
|
||||
.clksrc = CLK_SRC_OFF,
|
||||
.frac = MULTIPLY_BY_ONE,
|
||||
|
||||
Reference in New Issue
Block a user