forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: SAMSUNG: Add new PWM platform device
This patch adds new samsung_device_pwm platform device that represents the whole PWM/timer block and includes memory and IRQ resources. Signed-off-by: Tomasz Figa <[email protected]> Reviewed-by: Sylwester Nawrocki <[email protected]> Tested-by: Heiko Stuebner <[email protected]> Tested-by: Mark Brown <[email protected]> Tested-by: Sylwester Nawrocki <[email protected]> Acked-by: Arnd Bergmann <[email protected]>
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright 2013 Tomasz Figa <[email protected]> | ||
* | ||
* Samsung PWM controller platform data helpers. | ||
* | ||
* 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. | ||
*/ | ||
|
||
#ifndef __ASM_ARCH_PWM_CORE_H | ||
#define __ASM_ARCH_PWM_CORE_H __FILE__ | ||
|
||
#include <clocksource/samsung_pwm.h> | ||
|
||
#ifdef CONFIG_SAMSUNG_DEV_PWM | ||
extern void samsung_pwm_set_platdata(struct samsung_pwm_variant *pd); | ||
#else | ||
static inline void samsung_pwm_set_platdata(struct samsung_pwm_variant *pd) { } | ||
#endif | ||
|
||
#endif /* __ASM_ARCH_PWM_CORE_H */ |