From b2f97cf279c54c51741539455116ec3393a871ea Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Fri, 18 Jul 2014 06:07:19 +0200 Subject: pwm, imx6: add support for pwm modul on imx6 add basic support for the pwm modul found on imx6. Pieces of this code are based on linux code from drivers/pwm/pwm-imx.c Commit "cd3de83f1476 Linux 3.16-rc4" Signed-off-by: Heiko Schocher Acked-by: Stefano Babic Cc: Wolfgang Denk --- drivers/pwm/pwm-imx-util.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 drivers/pwm/pwm-imx-util.h (limited to 'drivers/pwm/pwm-imx-util.h') diff --git a/drivers/pwm/pwm-imx-util.h b/drivers/pwm/pwm-imx-util.h new file mode 100644 index 00000000000..45465c4fde5 --- /dev/null +++ b/drivers/pwm/pwm-imx-util.h @@ -0,0 +1,16 @@ +/* + * (C) Copyright 2014 + * Heiko Schocher, DENX Software Engineering, hs@denx.de. + * + * Basic support for the pwm modul on imx6. + * + * SPDX-License-Identifier: GPL-2.0 + */ + +#ifndef _pwm_imx_util_h_ +#define _pwm_imx_util_h_ + +struct pwm_regs *pwm_id_to_reg(int pwm_id); +int pwm_imx_get_parms(int period_ns, int duty_ns, unsigned long *period_c, + unsigned long *duty_c, unsigned long *prescale); +#endif -- cgit v1.2.3