Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Chew | 301f84c | 2014-02-10 16:36:53 -0800 | [diff] [blame] | 2 | |
| 3 | #ifndef __SOC_NVIDIA_TEGRA_PWM_H |
| 4 | #define __SOC_NVIDIA_TEGRA_PWM_H |
| 5 | |
| 6 | #include <types.h> |
| 7 | |
| 8 | /* Register definitions for the Tegra pwm controller */ |
| 9 | #define NV_PWM_CSR_ENABLE_SHIFT 31 |
| 10 | #define NV_PWM_CSR_PULSE_WIDTH_SHIFT 16 |
| 11 | |
| 12 | struct pwm_reg { |
| 13 | u32 csr; |
| 14 | u32 rsvd[3]; |
| 15 | }; |
| 16 | |
| 17 | struct pwm_controller { |
| 18 | struct pwm_reg pwm[4]; |
| 19 | }; |
| 20 | |
| 21 | #endif /* __SOC_NVIDIA_TEGRA_PWM_H */ |