Zephyr API Documentation 4.4.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
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_TISCI_CLOCK_CONTROL_H_
14#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_TISCI_CLOCK_CONTROL_H_
15
16#include <stdint.h>
17
23
33
39#define TISCI_GET_CLOCK(node_id) DEVICE_DT_GET(DT_PHANDLE(node_id, clocks))
40
46#define TISCI_GET_CLOCK_DETAILS(node_id) \
47 { \
48 .dev_id = DT_CLOCKS_CELL(node_id, devid), \
49 .clk_id = DT_CLOCKS_CELL(node_id, clkid) \
50 }
51
57#define TISCI_GET_CLOCK_BY_INST(inst) TISCI_GET_CLOCK(DT_DRV_INST(inst))
58
64#define TISCI_GET_CLOCK_DETAILS_BY_INST(inst) TISCI_GET_CLOCK_DETAILS(DT_DRV_INST(inst))
65
67
68#endif
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Clock configuration structure.
Definition tisci_clock_control.h:29
uint32_t clk_id
Clock ID within the device.
Definition tisci_clock_control.h:31
uint32_t dev_id
Device ID associated with the clock.
Definition tisci_clock_control.h:30