12 unsigned int txdiv0, txdiv1;
15 if (data_rate >= 2000 *
MHz) {
18 }
else if (data_rate >= 1000 *
MHz) {
21 }
else if (data_rate >= 500 *
MHz) {
24 }
else if (data_rate > 250 *
MHz) {
41 pcw = (
u64)data_rate * (1 << txdiv0) * (1 << txdiv1);
static void write32(void *addr, uint32_t val)
#define assert(statement)
@ DSI_FORCE_COMMIT_ALWAYS
@ DSI_FORCE_COMMIT_USE_MMSYS
static struct dsi_regs *const dsi0
#define setbits32(addr, set)
#define clrsetbits32(addr, clear, set)
#define clrbits32(addr, clear)
void mtk_dsi_configure_mipi_tx(u32 data_rate, u32 lanes)