How to use the DVFS low work point in iMX28 WinCE 6.0 BSP -blog archive

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

How to use the DVFS low work point in iMX28 WinCE 6.0 BSP -blog archive

1,192件の閲覧回数
qiang_li-mpu_se
NXP Employee
NXP Employee

    The functions BSPClockSetpointRequest() and BSPClockSetpointRelease() are used to allow other drivers or applications to control some aspects of the DVFS operation, in this case, we prohibited the low work point to be set from application or other drivers. (The reason: when LCD, USB, ENET is working, set to low work point has chance to hang up the system).

    But we haven’t prohibited the low work point, as I mentioned in old mail, the OAL cpu loading checking code OALTimerNotifyReschedule() will check the run time CPU loading and notify DVFC driver to switch the work point, in this mode, the low point will also be used. To show such information, you can do the followed testing:

  1. Enable the DVFC driver debug messages: in file “wince600\platform\imx28-evk-pdk1_9\src\drivers\dvfc\dvfc.c”, change “#define DVFC_VERBOSE” from FALSE to TRUE.
  2. Built in the DVFC driver, in WinCE catalog, select it.
  3. Remove the ENET driver from WinCR catalog.
  4. Built out WinCE image and downloaded it to board.
  5. Set WinCE timeout setting as followed for both AC and Battery power mode:
  6. Disconnected the USB cable and wait. (After removed the USB cable, USB clock will be turned off by freescale USB driver; after WinCE timeout to system IDLE mode, display will be turned off and ELCDIF clock will be turned off, the CPU will run into low work point from interrupt of OALTimerNotifyReschedule().)
  7. From debug serial port, you can see debug messages as “Setpoint HIGH”, “Setpoint MED”, “Setpoint LOW”.

 

    For another words, the two functions BSPClockSetpointRequest() and BSPClockSetpointRelease()  are not the must functions for DVFC function, the DVFC driver can run only based on CPU loading checking. Those two functions gave the interface for other drivers and applications wo switch the DVFC mode directly. They are the two way for CPU work point switching.

81-BattPower.PNG83-ACPower.PNG

タグ(1)
0 件の賞賛
返信
2 返答(返信)

726件の閲覧回数
lee_ee
Contributor II

Dear Qiang:Ian,

Dose the imx28 wince bsp supports STR(suspend-to-ram) function, how to implement it?

Thanks,

0 件の賞賛
返信

726件の閲覧回数
qiang_li-mpu_se
NXP Employee
NXP Employee

The default WinCE BSP can only support the suspend to RAM function with ARM CPU idle mode.

If you need suspend to RAM with ARM CPU off mode, it is supported in last Linux release, 2.6.35_1.1.0 SDK, you can reference to it.

0 件の賞賛
返信