summaryrefslogtreecommitdiff
path: root/chip/npcx/hwtimer.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-08-22 09:43:17 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-09-04 21:03:57 -0700
commite192f71aed932b88f3c42df4653a430a2e8ba10e (patch)
tree013f50b4bf3abe796d7594c9e02d53b7ebc69d3d /chip/npcx/hwtimer.c
parentd6fc2d450496df392e99fc6ce2605fec0e9cfead (diff)
downloadchrome-ec-e192f71aed932b88f3c42df4653a430a2e8ba10e.tar.gz
chip/npcx: Tidy up comments for init_hw_timer()
The comments suggest that this function only operates with ITIM16 timers but it seems to support ITIM32 as well. Also it allows selecting the clock source. Update the comments, hopefully making them correct. BUG=chromium:876737 BRANCH=none TEST= make buildall -j50 Change-Id: Ic4ec2457cde2de55d51371f781d49bae80365989 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1185225
Diffstat (limited to 'chip/npcx/hwtimer.c')
-rw-r--r--chip/npcx/hwtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/npcx/hwtimer.c b/chip/npcx/hwtimer.c
index 38a8fce548..76f1822a94 100644
--- a/chip/npcx/hwtimer.c
+++ b/chip/npcx/hwtimer.c
@@ -46,7 +46,7 @@ static volatile uint32_t cur_cnt_us_dbg;
/* Internal functions */
void init_hw_timer(int itim_no, enum ITIM_SOURCE_CLOCK_T source)
{
- /* Use internal 32K clock/APB2 for ITIM16 */
+ /* Select which clock to use for this timer */
UPDATE_BIT(NPCX_ITCTS(itim_no), NPCX_ITCTS_CKSEL,
source != ITIM_SOURCE_CLOCK_APB2);