summaryrefslogtreecommitdiff
path: root/zephyr/projects/volteer/volteer/include/pwm_map.h
blob: 67ab70936f8cadc1ee8b3d982d34b89e21a5cbb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* 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_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 */