diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-03-25 10:55:50 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-29 20:34:34 +0000 |
commit | cfa7951b967a24a843af7b2e820f1e9bae13e8c9 (patch) | |
tree | ab8ffc59b3e47c6058b0fe62e8cf07ae87733092 /zephyr/projects/volteer/volteer/include/pwm_map.h | |
parent | 4adf9a75431bf5e00875e15de54c7848c6f81c6c (diff) | |
download | chrome-ec-cfa7951b967a24a843af7b2e820f1e9bae13e8c9.tar.gz |
zephyr: restructure volteer and delbin project directories
Move volteer and delbin directories into under a volteer directory for
the baseboard.
This is purely just a file-rename CL. The combination into a common
Zephyr board is done in a follow-up.
Post submit task (jrosenth@): update table on go/zephyr-care with new
file names.
BUG=b:183643832
BRANCH=none
TEST=zmake testall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I219ceada116651e7d324a099fb55dffe4cc83806
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785218
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/projects/volteer/volteer/include/pwm_map.h')
-rw-r--r-- | zephyr/projects/volteer/volteer/include/pwm_map.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/zephyr/projects/volteer/volteer/include/pwm_map.h b/zephyr/projects/volteer/volteer/include/pwm_map.h new file mode 100644 index 0000000000..2616bad589 --- /dev/null +++ b/zephyr/projects/volteer/volteer/include/pwm_map.h @@ -0,0 +1,28 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __ZEPHYR_CHROME_PWM_MAP_H +#define __ZEPHYR_CHROME_PWM_MAP_H + +#include <devicetree.h> + +#include "config.h" + +#include "pwm/pwm.h" + +/* + * TODO(b/177452529): eliminate the dependency on enum pwm_channel + * and configure this information directly from the device tree. + */ +#define PWM_CH_LED1_BLUE NAMED_PWM(led1_blue) +#define PWM_CH_LED2_GREEN NAMED_PWM(led2_green) +#define PWM_CH_LED3_RED NAMED_PWM(led3_red) +#define PWM_CH_LED4_SIDESEL NAMED_PWM(led3_sidesel) + +#define PWM_CH_KBLIGHT NAMED_PWM(kblight) + +#define PWM_CH_FAN NAMED_PWM(fan) + +#endif /* __ZEPHYR_CHROME_PWM_MAP_H */ |