Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Files

file  tisci_clock_control.h
 Clock control definitions for the TI TISCI (System Controller) interface.

Data Structures

struct  tisci_clock_config
 Clock configuration structure. More...

Macros

#define TISCI_GET_CLOCK(node_id)
 Get the clock controller device referenced by a node's clocks phandle.
#define TISCI_GET_CLOCK_DETAILS(node_id)
 Initialize a tisci_clock_config from a node's clock specifier.
#define TISCI_GET_CLOCK_BY_INST(inst)
 Equivalent to TISCI_GET_CLOCK() for a DT instance.
#define TISCI_GET_CLOCK_DETAILS_BY_INST(inst)
 Equivalent to TISCI_GET_CLOCK_DETAILS() for a DT instance.

Detailed Description

Macro Definition Documentation

◆ TISCI_GET_CLOCK

#define TISCI_GET_CLOCK ( node_id)

#include <zephyr/drivers/clock_control/tisci_clock_control.h>

Value:
DEVICE_DT_GET(DT_PHANDLE(node_id, clocks))
#define DEVICE_DT_GET(node_id)
Get a device reference from a devicetree node identifier.
Definition device.h:317
#define DT_PHANDLE(node_id, prop)
Get a node identifier for a phandle property's value.
Definition devicetree.h:1922

Get the clock controller device referenced by a node's clocks phandle.

Parameters
node_idDevicetree node identifier.

◆ TISCI_GET_CLOCK_BY_INST

#define TISCI_GET_CLOCK_BY_INST ( inst)

#include <zephyr/drivers/clock_control/tisci_clock_control.h>

Value:
#define TISCI_GET_CLOCK(node_id)
Get the clock controller device referenced by a node's clocks phandle.
Definition tisci_clock_control.h:39
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:4333

Equivalent to TISCI_GET_CLOCK() for a DT instance.

Parameters
instDT instance number.

◆ TISCI_GET_CLOCK_DETAILS

#define TISCI_GET_CLOCK_DETAILS ( node_id)

#include <zephyr/drivers/clock_control/tisci_clock_control.h>

Value:
{ \
.dev_id = DT_CLOCKS_CELL(node_id, devid), \
.clk_id = DT_CLOCKS_CELL(node_id, clkid) \
}
#define DT_CLOCKS_CELL(node_id, cell)
Equivalent to DT_CLOCKS_CELL_BY_IDX(node_id, 0, cell).
Definition clocks.h:254

Initialize a tisci_clock_config from a node's clock specifier.

Parameters
node_idDevicetree node identifier.

◆ TISCI_GET_CLOCK_DETAILS_BY_INST

#define TISCI_GET_CLOCK_DETAILS_BY_INST ( inst)

#include <zephyr/drivers/clock_control/tisci_clock_control.h>

Value:
#define TISCI_GET_CLOCK_DETAILS(node_id)
Initialize a tisci_clock_config from a node's clock specifier.
Definition tisci_clock_control.h:46

Equivalent to TISCI_GET_CLOCK_DETAILS() for a DT instance.

Parameters
instDT instance number.