imx233: add small framework for LED

It handles GPIO and PWM based LEDs, possibly with several channels (red-green
LED for example). The debug allows one to play with the setting.
Currently the code supports the ZEN, ZEN X-Fi, and ZEN Mozaic.

Change-Id: I8c3b66e6ba21778acdb123daabb724280a7d1a4f
This commit is contained in:
Amaury Pouly 2017-01-11 16:58:30 +01:00 committed by Gerrit Rockbox
parent 759a78e5df
commit b23b7088cb
6 changed files with 312 additions and 5 deletions

View file

@ -44,6 +44,7 @@
#include "button.h"
#include "fmradio_i2c.h"
#include "powermgmt-imx233.h"
#include "led-imx233.h"
#include "regs/digctl.h"
#include "regs/usbphy.h"
@ -202,6 +203,7 @@ void system_init(void)
imx233_power_init();
imx233_i2c_init();
imx233_powermgmt_init();
imx233_led_init();
/* setup watchdog */
watchdog_init();