Lighting (i.MX31)

Aus BECOM Systems Support
Version vom 22. August 2023, 20:35 Uhr von en>Peter (1 Version importiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Kernel Configuration

Run

ltib --configure.

Make sure you have selected the package mxc-misc in the device configuration when running LTIB. Enter the Kernel Configuration and make sure the following options are set to Y: Device Drivers -> MXC Support Drivers -> MXC PMIC Support -> MC13783 Light and Backlight Support

Lighting System

Testing the Lighting System of the PMIC is a straight forward task. Connect a keypad module the the keypad connector, boot the device, then run the following command on the target:

./unit_tests/mxc_pmic_test/pmic_testapp_light -T 8

This will flash all the LEDs on the keypad module for four times.

Building your own application

The source code for the lighting system can be in the package mxc-misc. To unpack this package, run the following command on the host:

./ltib -m prep -p mxc-misc

This will unpack all the files to the directory ~/ltib5/rpm/BUILD/misc. To find more on how to build your own first kernel driver, check out the tutorial "First Kernel driver" which can be found in this Wiki.