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

Files

file  mchp_sam_pmc.h
 Power Management Controller (PMC) clock helpers for Microchip SAM devices.

Data Structures

struct  sam_sckc_config
 Slow Clock Controller (SCKC) configuration. More...
struct  sam_clk_cfg
 PMC clock configuration for a single peripheral clock. More...
struct  sam_pmc_cfg
 PMC device constant configuration parameters. More...
struct  sam_pmc_data
 PMC device run-time data. More...

Macros

#define SAM_DT_CLOCK_PMC_CFG(clock, node_id)
 Initialize a sam_clk_cfg from a clock specifier.
#define SAM_DT_INST_CLOCK_PMC_CFG(inst)
 Equivalent to SAM_DT_CLOCK_PMC_CFG() for the first clock of a DT instance.
#define SAM_DT_CLOCKS_PMC_CFG(node_id)
 Initialize an array of sam_clk_cfg for all clocks of a node.
#define SAM_DT_INST_CLOCKS_PMC_CFG(inst)
 Equivalent to SAM_DT_CLOCKS_PMC_CFG() for a DT instance.

Detailed Description

Macro Definition Documentation

◆ SAM_DT_CLOCK_PMC_CFG

#define SAM_DT_CLOCK_PMC_CFG ( clock,
node_id )

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

Value:
{ \
.clock_type = DT_CLOCKS_CELL_BY_IDX(node_id, \
clock, \
clock_type), \
.clock_id = DT_CLOCKS_CELL_BY_IDX(node_id, \
clock, \
peripheral_id) \
}
#define DT_CLOCKS_CELL_BY_IDX(node_id, idx, cell)
Get a clock specifier's cell value at an index.
Definition clocks.h:208

Initialize a sam_clk_cfg from a clock specifier.

Parameters
clockIndex of the clock specifier within the node's clocks property.
node_idDevicetree node identifier owning the clocks property.

◆ SAM_DT_CLOCKS_PMC_CFG

#define SAM_DT_CLOCKS_PMC_CFG ( node_id)

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

Value:
{ \
LISTIFY(DT_NUM_CLOCKS(node_id), \
SAM_DT_CLOCK_PMC_CFG, (,), node_id) \
}
#define SAM_DT_CLOCK_PMC_CFG(clock_id, node_id)
Initialize an atmel_sam_pmc_config from a clock specifier.
Definition atmel_sam_pmc.h:40
#define DT_NUM_CLOCKS(node_id)
Get the number of elements in a clocks property.
Definition clocks.h:108

Initialize an array of sam_clk_cfg for all clocks of a node.

Parameters
node_idDevicetree node identifier owning the clocks property.

◆ SAM_DT_INST_CLOCK_PMC_CFG

#define SAM_DT_INST_CLOCK_PMC_CFG ( inst)

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

Value:
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:4333

Equivalent to SAM_DT_CLOCK_PMC_CFG() for the first clock of a DT instance.

Parameters
instDT instance number.

◆ SAM_DT_INST_CLOCKS_PMC_CFG

#define SAM_DT_INST_CLOCKS_PMC_CFG ( inst)

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

Value:
#define SAM_DT_CLOCKS_PMC_CFG(node_id)
Initialize an array of atmel_sam_pmc_config for all clocks of a node.
Definition atmel_sam_pmc.h:58

Equivalent to SAM_DT_CLOCKS_PMC_CFG() for a DT instance.

Parameters
instDT instance number.