Lighting (i.MX31): Unterschied zwischen den Versionen
en>Peter K (1 Version importiert) |
Peter (Diskussion | Beiträge) K (1 Version importiert) |
(kein Unterschied)
|
Aktuelle Version vom 31. Oktober 2023, 09:03 Uhr
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.