Zephyr Project API 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mspm0_clock.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 Texas Instruments Inc.
3 * Copyright 2025 Linumiz
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_MSPM0_CLOCK_H
9#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_MSPM0_CLOCK_H
10
11#define MSPM0_CLOCK(clk, bit) ((clk << 8) | bit)
12
13/* Peripheral clock source selection register mask */
14#define MSPM0_CLOCK_PERIPH_REG_MASK(X) (X & 0xFF)
15
16/* Clock references */
17#define MSPM0_CLOCK_SYSOSC MSPM0_CLOCK(0x0, 0x0)
18#define MSPM0_CLOCK_LFCLK MSPM0_CLOCK(0x1, 0x2)
19#define MSPM0_CLOCK_MFCLK MSPM0_CLOCK(0x2, 0x4)
20#define MSPM0_CLOCK_BUSCLK MSPM0_CLOCK(0x3, 0x8)
21#define MSPM0_CLOCK_ULPCLK MSPM0_CLOCK(0x4, 0x8)
22#define MSPM0_CLOCK_MCLK MSPM0_CLOCK(0x5, 0x8)
23#define MSPM0_CLOCK_MFPCLK MSPM0_CLOCK(0x6, 0x0)
24#define MSPM0_CLOCK_CANCLK MSPM0_CLOCK(0x7, 0x0)
25#define MSPM0_CLOCK_CLK_OUT MSPM0_CLOCK(0x8, 0x0)
26
27#endif