artik053: initialize timers at boot
Now that the MCT of S5J is supported, let's initialize timers at boot so
that users may access them through /dev/timerN.
#include "s5j_adc.h"
#include "s5j_rtc.h"
+#include "s5j_mct.h"
#include "up_internal.h"
#include <apps/shell/tash.h>
@@ -296,6 +297,18 @@ int board_app_initialize(void)
}
#endif /* CONFIG_RTC_DRIVER */
+#ifdef CONFIG_TIMER
+ {
+ int i;
+ char path[CONFIG_PATH_MAX];
+
+ for (i = 0; i < CONFIG_S5J_MCT_NUM; i++) {
+ sprintf(path, "/dev/timer%d", i);
+ s5j_timer_initialize(path, i);
+ }
+ }
+#endif
+
artik053_adc_setup();
scsc_wpa_ctrl_iface_init();
