coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mipi-phy.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DSI_TBIT_Factorized(Freq)   (((1000) * (1000))/(Freq))
 
#define DSI_TBIT(Freq)   (DSI_TBIT_Factorized(Freq)/(1000))
 
#define DSI_TBYTE(Freq)   ((DSI_TBIT_Factorized(Freq)) * (8))
 
#define DSI_PHY_TIMING_DIV(X, Freq)   ((X*1000) / (DSI_TBYTE(Freq)))
 
#define DSI_THSTRAIL_VAL(Freq)    (MAX(((8) * (DSI_TBIT(Freq))), ((60) + ((4) * (DSI_TBIT(Freq))))))
 

Functions

int mipi_dphy_set_timing (struct tegra_dsi *dsi)
 

Macro Definition Documentation

◆ DSI_PHY_TIMING_DIV

#define DSI_PHY_TIMING_DIV (   X,
  Freq 
)    ((X*1000) / (DSI_TBYTE(Freq)))

Definition at line 16 of file mipi-phy.h.

◆ DSI_TBIT

#define DSI_TBIT (   Freq)    (DSI_TBIT_Factorized(Freq)/(1000))

Definition at line 10 of file mipi-phy.h.

◆ DSI_TBIT_Factorized

#define DSI_TBIT_Factorized (   Freq)    (((1000) * (1000))/(Freq))

Definition at line 9 of file mipi-phy.h.

◆ DSI_TBYTE

#define DSI_TBYTE (   Freq)    ((DSI_TBIT_Factorized(Freq)) * (8))

Definition at line 15 of file mipi-phy.h.

◆ DSI_THSTRAIL_VAL

#define DSI_THSTRAIL_VAL (   Freq)     (MAX(((8) * (DSI_TBIT(Freq))), ((60) + ((4) * (DSI_TBIT(Freq))))))

Definition at line 22 of file mipi-phy.h.

Function Documentation

◆ mipi_dphy_set_timing()

int mipi_dphy_set_timing ( struct tegra_dsi dsi)

Definition at line 14 of file mipi-phy.c.

References tegra_dsi::clk_rate, DSI_BTA_TIMING, DSI_PHY_TIMING_0, DSI_PHY_TIMING_1, DSI_PHY_TIMING_2, DSI_PHY_TIMING_DIV, DSI_TBIT, DSI_THSTRAIL_VAL, tegra_dsi_writel(), and value.

Referenced by tegra_dsi_set_phy_timing().

Here is the call graph for this function:
Here is the caller graph for this function: