Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
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
29
struct
tisci_clock_config
{
30
uint32_t
dev_id
;
31
uint32_t
clk_id
;
32
};
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
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
tisci_clock_config
Clock configuration structure.
Definition
tisci_clock_control.h:29
tisci_clock_config::clk_id
uint32_t clk_id
Clock ID within the device.
Definition
tisci_clock_control.h:31
tisci_clock_config::dev_id
uint32_t dev_id
Device ID associated with the clock.
Definition
tisci_clock_control.h:30
zephyr
drivers
clock_control
tisci_clock_control.h
Generated on
for Zephyr API by
1.17.0