ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_mipi_phy_pll_t Struct Reference

D-PHY PLL coefficients written into DPHYPLFCR. More...

#include <ra8_mipi_phy_types.h>

Data Fields

ra8_mipi_phy_pll_idiv_t idiv
 IDIV[1:0] input divisor.
ra8_mipi_phy_pll_pmul_t pmul
 PMUL[1:0] output divisor.
ra8_mipi_phy_pll_nfmul_t nfmul
 NFMUL[1:0] fractional N.
uint16_t nmul_int
 NMUL[8:0] integer N (40..375).

Detailed Description

D-PHY PLL coefficients written into DPHYPLFCR.

Caller supplies pre-validated coefficients. The driver packs them into DPHYPLFCR per HUM Ch 64.2.2 p 3823 and validates against the PMUL band table on p 3824 before committing.

Final PLL output: f = f_main * (1/IDIV) * (NMUL_int + NFMUL_frac) * (1/PMUL). Line rate per lane = f / 2 (HUM 64.2.2 p 3824).

cppcheck cannot see tests/ so it flags every field as unused; each member is read in ra8_mipi_phy_init.

Definition at line 267 of file ra8_mipi_phy_types.h.

Field Documentation

◆ idiv

ra8_mipi_phy_pll_idiv_t ra8_mipi_phy_pll_t::idiv

IDIV[1:0] input divisor.

Definition at line 268 of file ra8_mipi_phy_types.h.

Referenced by internal_mipi_phy_pack_plfcr(), and priv_mipi_phy_compute_freq().

◆ nfmul

ra8_mipi_phy_pll_nfmul_t ra8_mipi_phy_pll_t::nfmul

NFMUL[1:0] fractional N.

Definition at line 270 of file ra8_mipi_phy_types.h.

Referenced by internal_mipi_phy_pack_plfcr(), and priv_mipi_phy_compute_freq().

◆ nmul_int

uint16_t ra8_mipi_phy_pll_t::nmul_int

NMUL[8:0] integer N (40..375).

Definition at line 271 of file ra8_mipi_phy_types.h.

Referenced by internal_mipi_phy_pack_plfcr(), internal_mipi_phy_validate_pll(), and priv_mipi_phy_compute_freq().

◆ pmul

ra8_mipi_phy_pll_pmul_t ra8_mipi_phy_pll_t::pmul

PMUL[1:0] output divisor.

Definition at line 269 of file ra8_mipi_phy_types.h.

Referenced by internal_mipi_phy_pack_plfcr(), priv_mipi_phy_compute_freq(), and ra8_mipi_phy_validate_pll_band().


The documentation for this struct was generated from the following file: