drivers: pwm: sam: move SAM V71 register fixup from SoC to PWM driver

Move the SAM V71 register name fixup from the SoC code into the PWM driver
next to the other PWM driver fixup.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2025-01-09 15:30:32 +00:00 committed by Benjamin Cabé
commit fd5b97690d
3 changed files with 8 additions and 20 deletions

View file

@ -1,17 +0,0 @@
/*
* Copyright (c) 2021 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _ATMEL_SAM_PWM_FIXUP_H_
#define _ATMEL_SAM_PWM_FIXUP_H_
/* The SAMV71 HALs change the name of the field, so we need to
* define it this way to match how the other SoC variants name it
*/
#if defined(CONFIG_SOC_SERIES_SAMV71)
#define PWM_CH_NUM PwmChNum
#endif
#endif /* _ATMEL_SAM_PWM_FIXUP_H_ */

View file

@ -79,6 +79,4 @@
#endif /* _ASMLANGUAGE */
#include "pwm_fixup.h"
#endif /* _SOC_ATMEL_SAM_SAMV71_SOC_H_ */