Now that the MCT of S5J is supported, let's initialize timers at boot so
that users may access them through /dev/timerN.
Change-Id: I48adf261e9c4358070b5992e51a3385013ffd55a
Signed-off-by: Jihun Ahn <jhun.ahn@samsung.com>
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
#include "s5j_adc.h"
#include "s5j_rtc.h"
+#include "s5j_mct.h"
#include "up_internal.h"
#include <apps/shell/tash.h>
}
#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();