How to use I2C1 in MCIMX287 to support the SGTL5000?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use I2C1 in MCIMX287 to support the SGTL5000?

1,083 Views
袁杰
Contributor I

Hi,guys:

I have a problom which is very tough. I have a third party custom board. The SGTL5000 is connected to the I2C1 of i.MAX287 phsycally, That  is the problom, because I have got the drivers of SGTL5000 from freescale board. In the wince6.0 kernal ,If I chose the I2C2 , then I cannot chose audio driver.  The I2C2 in wince6.0 kernal is to I2C1 of i.max287 physical.

So, how can i modify the kernal to let me use the SGTL5000 which is connected imax287 on I2C1?

Thanks .

Labels (2)
0 Kudos
4 Replies

837 Views
igorpadykov
NXP Employee
NXP Employee

Hi 袁

please refer to attached WinCE6 manual Chapter 2,11

and set suitable BSP Environment Variables BSP_I2CBUS1=1 or

BSP_I2CBUS2=1.

Best regards

igor

0 Kudos

837 Views
袁杰
Contributor I

HI igorpadykov:


According the EVK_imx28_WinCE60_RM.pdf(Windows Embedded CE 6.0 Reference Manual), if I want to use SGTL5000, I must set the BSP Environment Variables like that,

BSP_NONUDIO=
BSP_AUDIO_SGTL5000=1
BSP_I2CBUS1=1

if I set BSP_I2CBUS2=1, then I can not add the Audio driver to kernal at the catalog Items view in VS2005.

My prolom is that on my third party board, the SGTL5000 is connected with the i.MAX287 to  I2C1 in pysical. That's to say I shoud chose BSP_I2CBUS2=1, then I can not add the driver to kernal.

So, is there any method to solve the problem?

0 Kudos

837 Views
igorpadykov
NXP Employee
NXP Employee

had you set BSP_I2CBUS1=0 ?

0 Kudos

837 Views
袁杰
Contributor I

Thanks,igorpadykov. The hardware engineer help me connect the i.MAX287 with SGTL5000 through the I2C0. So my problem is solved. Thanks very much.

It's very very kind of you to help me so much.

0 Kudos