diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-02-09 14:24:14 -0800 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2017-02-15 16:47:46 -0800 |
commit | 66efdcd187473fe461642caf0675dae666c83027 (patch) | |
tree | 0b1d9ce6c97748e4e3f32a94124f8f800b73088a /examples/imx7_colibri_m4/clock_freq.c | |
parent | 0c5d4d438d4118c7931e6168fc59192e5f253762 (diff) |
add defines for Colibri standard SPI
The Colibri standard SPI is connected to the SoCs ECSPI3 instance. Add
defines as BOARD_ECSPI_... Also add board level pinmux and clock
readout support.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'examples/imx7_colibri_m4/clock_freq.c')
-rw-r--r-- | examples/imx7_colibri_m4/clock_freq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/imx7_colibri_m4/clock_freq.c b/examples/imx7_colibri_m4/clock_freq.c index 3c5715b..a60b4ce 100644 --- a/examples/imx7_colibri_m4/clock_freq.c +++ b/examples/imx7_colibri_m4/clock_freq.c @@ -95,6 +95,10 @@ uint32_t get_ecspi_clock_freq(ECSPI_Type* base) root = CCM_GetRootMux(CCM, ccmRootEcspi2); CCM_GetRootDivider(CCM, ccmRootEcspi2, &pre, &post); break; + case ECSPI3_BASE: + root = CCM_GetRootMux(CCM, ccmRootEcspi3); + CCM_GetRootDivider(CCM, ccmRootEcspi3, &pre, &post); + break; default: return 0; } |