aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/pwm.h
blob: 04030cd87684d9290a787f107759e6050c065733 (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
26
27
28
29
/*
 *    Copyright (c) 2010 Grant Erickson <marathon96@gmail.com>
 *
 *    This program is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU General Public License
 *    version 2 as published by the Free Software Foundation.
 *
 *    Description:
 *      This file is defines platform-specific configuration data for
 *      the OMAP generic PWM platform driver.
 */

#ifndef _OMAP2_PWM_H
#define _OMAP2_PWM_H

/**
 * struct omap2_pwm_platform_config - OMAP platform-specific data for PWMs
 * @timer_id: the OMAP dual-mode timer ID.
 * @polarity: the polarity (active-high or -low) of the PWM.
 *
 * This identifies the OMAP dual-mode timer (dmtimer) that will be bound
 * to the PWM.
 */
struct omap2_pwm_platform_config {
	int timer_id;
	bool polarity;
};

#endif /* _OMAP2_PWM_H */