How do disable pull-down in SCU_GPIO0_00 in SCU

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How do disable pull-down in SCU_GPIO0_00 in SCU

1,251件の閲覧回数
Maddis
Contributor IV

Hi,

In our i.MX8QX HW we have pull-up on SCU_GPIO0_00 - pin and by default it has pull-down resulting non-ideal state until system reached either U-boot or Linux.

I tried to disable the pull-down in SCU firmware with command: 

(void) sc_pad_set_gp(pt_sc, SC_P_SCU_GPIO0_00, 0x00000060);

Called from function : void board_config_sc(sc_rm_pt_t pt_sc)

But it did nothing. We release that pin in SCU firmware (or make it 'movable' as it's called there) so I already know that the SCU modifications will go through in use.

I tried different values for the last one, but none of them didn't seem to work and couldn't really find examples/better documentation.

Is that even correct function call and what control value I should use?

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,180件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi mc

also one can look at pads initialization examples in ../mx8qx_mek/board.c file

function pmic_init() and ...svc/pad/svc.h

SCFW Porting Kit

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,180件の閲覧回数
Maddis
Contributor IV

I looked at the function mentioned. Seems it's using function: sc_pad_set_gp_28fdsoi so I changed my call to sc_pad_set_gp_28fdsoi(pt_sc, SC_P_SCU_GPIO0_00, SC_PAD_28FDSOI_DSE_18V_1MA, SC_PAD_28FDSOI_PS_NONE);

Didn't work. Obviously there is something I'm doing wrong, but I have no idea what.  Luckily this is not critical issue, but it'd be good to get working properly.

0 件の賞賛
返信

1,180件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

try without "sc_", there is call in pmic_init() :

pad_set_gp_28fdsoi(SC_PT, SC_P_PMIC_I2C_SDA, SC_PAD_28FDSOI_DSE_18V_1MA, SC_PAD_28FDSOI_PS_PU);

one can check if it works on i.MX8QXP MEK board with Demo Image

Linux Binary Demo Files - i.MX 8QXPlus MEK

Best regards
igor

0 件の賞賛
返信