msp432p4xx: replace DT_ARM_CORTEX_*_CLOCK_FREQUENCY with new dt macros

Replace DT_ARM_CORTEX_*_0_CLOCK_FREQUENCY with a PATH based reference
to cpu@0 (DT_PATH(cpus, cpu_0)) and than getting the clock_frequency
property:

    DT_ARM_CORTEX_*_CLOCK_FREQUENCY ->
        DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-04-30 09:10:33 -05:00 committed by Kumar Gala
parent 7dcbff2d59
commit 7cdfe31375
5 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@
// <12000000> 12 MHz
// <24000000> 24 MHz
// <48000000> 48 MHz
#define __SYSTEM_CLOCK DT_ARM_CORTEX_M4F_0_CLOCK_FREQUENCY
#define __SYSTEM_CLOCK DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)
/*--------------------- Power Regulator Configuration -----------------------*/
// Power Regulator Mode

View File

@ -69,7 +69,7 @@
// <12000000> 12 MHz
// <24000000> 24 MHz
// <48000000> 48 MHz
#define __SYSTEM_CLOCK DT_ARM_CORTEX_M4F_0_CLOCK_FREQUENCY
#define __SYSTEM_CLOCK DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)
/*--------------------- Power Regulator Configuration -----------------------*/
// Power Regulator Mode

View File

@ -69,7 +69,7 @@
// <12000000> 12 MHz
// <24000000> 24 MHz
// <48000000> 48 MHz
#define __SYSTEM_CLOCK DT_ARM_CORTEX_M4F_0_CLOCK_FREQUENCY
#define __SYSTEM_CLOCK DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)
/*--------------------- Power Regulator Configuration -----------------------*/
// Power Regulator Mode

View File

@ -69,7 +69,7 @@
// <12000000> 12 MHz
// <24000000> 24 MHz
// <48000000> 48 MHz
#define __SYSTEM_CLOCK DT_ARM_CORTEX_M4F_0_CLOCK_FREQUENCY
#define __SYSTEM_CLOCK DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)
/*--------------------- Power Regulator Configuration -----------------------*/
// Power Regulator Mode

View File

@ -69,7 +69,7 @@
// <12000000> 12 MHz
// <24000000> 24 MHz
// <48000000> 48 MHz
#define __SYSTEM_CLOCK DT_ARM_CORTEX_M4F_0_CLOCK_FREQUENCY
#define __SYSTEM_CLOCK DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)
/*--------------------- Power Regulator Configuration -----------------------*/
// Power Regulator Mode