Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tisci_clock_control.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Texas Instruments
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_TISCI_CLOCK_CONTROL_H_
7#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_TISCI_CLOCK_CONTROL_H_
8
9#include <stdint.h>
10
28
29#define TISCI_GET_CLOCK(node_id) DEVICE_DT_GET(DT_PHANDLE(node_id, clocks))
30
31#define TISCI_GET_CLOCK_DETAILS(node_id) \
32 { \
33 .dev_id = DT_CLOCKS_CELL(node_id, devid), \
34 .clk_id = DT_CLOCKS_CELL(node_id, clkid) \
35 }
36
37#define TISCI_GET_CLOCK_BY_INST(inst) TISCI_GET_CLOCK(DT_DRV_INST(inst))
38
39#define TISCI_GET_CLOCK_DETAILS_BY_INST(DT_DRV_INST) TISCI_GET_CLOCK_DETAILS(DT_DRV_INST(inst))
40
41#endif
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Clock configuration structure.
Definition tisci_clock_control.h:24
uint32_t clk_id
Definition tisci_clock_control.h:26
uint32_t dev_id
Definition tisci_clock_control.h:25