sc9832e 增強mipi驅動能力

2021-08-29 20:28:39 字數 1818 閱讀 2361

可以配置0x25暫存器的bit[2:0],值越大驅動能力越大。

path: /sys/class/display/dphy0:

reg_read  可讀可寫屬性,讀dphy暫存器

operation:

echo reg  len > reg_read  (len表示從reg為基位址開始讀取的暫存器的個數)

cat reg_read

reg_write :只寫屬性,寫dphy 暫存器

opertion:

echo reg value > reg_write

臨時驗證方法:ps c:\users\administrator> adb shell

sp8541e_srvm:/ $ su

susp8541e_srvm:/ # cd /sys/class/display/dphy0

cd /sys/class/display/dphy0

sp8541e_srvm:/sys/class/display/dphy0 # echo 0x25 1 > reg_read

echo 0x25 1 > reg_read

sp8541e_srvm:/sys/class/display/dphy0 # cat reg_read

cat reg_read

addr | value

------+------

0x25 | 0x04

sp8541e_srvm:/sys/class/display/dphy0 # echo 0x25 0x7 > reg_write

echo 0x25 0x7 > reg_write

sp8541e_srvm:/sys/class/display/dphy0 # echo 0x25 1 > reg_read

echo 0x25 1 > reg_read

sp8541e_srvm:/sys/class/display/dphy0 #  cat reg_read

cat reg_read

addr | value

------+------

0x25 | 0x07

sp8541e_srvm:/sys/class/display/dphy0 # ps c:\users\administrator>

原始碼整合修改:

diff --git a/drivers/video/adf/sprd/drv/dphy/pll/megacores_sharkle.c b/drivers/video/adf/sprd/drv/dphy/pll/megacores_sharkle.c

index 852f708..79042b9 100644

--- a/drivers/video/adf/sprd/drv/dphy/pll/megacores_sharkle.c

+++ b/drivers/video/adf/sprd/drv/dphy/pll/megacores_sharkle.c

@@ -559,6 +559,7 @@ static int dphy_hop_start(struct dphy_context *ctx)

/* start hopping */

regs._04.bits.hop_trig = !regs._04.bits.hop_trig;

regmap_write(regmap, 0x04, regs._04.val);

+       regmap_write(regmap, 0x25, 0x07);//mipi 驅動能力從預設0x04改為最大0x07 2018-10-24 sunhz

mdelay(1);

---------------------

原文:

NT9832x 使能串列埠

nt9832x 預設sdk只使能了uart0 ttys0 用於除錯 uart1 uart2 並未使能 1.參考nt9832x ui pinctrl pinmux tool en.pdf 2.參考bsp linux kernel arch arm plat novatek include plat n...

sc輸入輸出

輸入輸出語句 為了從控制台讀寫資料,可以使用以read為字首的方法,包括 readint readdouble readbyte readshort readfloat readlong readchar readboolean及readline,分別對應9種基本資料型別,其中前8種方法沒有引數,r...

SC 刪除Windows服務

sc 刪除windows服務選項2008 07 15 14 25比如要刪除windows的時間服務,操作如下 sc delete w32time sc 刪除windows服務選項 sc windows乙個很有用的命令 sc delete servicename 使用這個命令即可,查詢其它功能用sc ...