Adds support for using GPT as the hardware timer source (as opposed to systick) for all RT1xxx platforms. This requires moving the clock frequency of these devices into a defconfig so it can be overridden by the GPT clock frequency. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
29 lines
366 B
Text
29 lines
366 B
Text
# i.MX RT1021
|
|
|
|
# Copyright (c) 2018, NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if SOC_MIMXRT1021
|
|
|
|
config SOC
|
|
default "mimxrt1021"
|
|
|
|
config NUM_IRQS
|
|
default 142
|
|
|
|
config ARM_DIV
|
|
default 0
|
|
|
|
config AHB_DIV
|
|
default 0
|
|
|
|
config IPG_DIV
|
|
default 3
|
|
|
|
config GPIO
|
|
default y
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
default 500000000 if CORTEX_M_SYSTICK
|
|
|
|
endif # SOC_MIMXRT1021
|