[PATCH] Changing pwm pinmux to use better register definitions

Christian Mauderer oss at c-mauderer.de
Mon Jul 13 15:56:30 UTC 2020


Hello James,

like said in the other Thread: I squashed it together with your first
patch and pushed it.

Thanks for the fix.

Best regards

Christian

On 13/07/2020 11:53, James Fitzsimons wrote:
> ---
>  bsps/arm/beagle/pwm/pwm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/bsps/arm/beagle/pwm/pwm.c b/bsps/arm/beagle/pwm/pwm.c
> index 9a346995aa..81ace1254e 100644
> --- a/bsps/arm/beagle/pwm/pwm.c
> +++ b/bsps/arm/beagle/pwm/pwm.c
> @@ -102,9 +102,9 @@ bool beagle_pwm_pinmux_setup(bbb_pwm_pin_t pin_no, BBB_PWMSS pwm_id)
>  	} else if (pin_no == BBB_P8_36_1A) {
>  	  REG(AM335X_PADCONF_BASE + BBB_CONTROL_CONF_LCD_DATA(10)) = BBB_MUXMODE(BBB_P8_36_MUX_PWM);
>  	} else if (pin_no == BBB_P9_14_1A) {
> -	  REG(AM335X_PADCONF_BASE + BBB_CONTROL_CONF_GPMC_AD(18)) = BBB_MUXMODE(BBB_P9_14_MUX_PWM);
> +	  REG(AM335X_PADCONF_BASE + AM335X_CONF_GPMC_A2) = BBB_MUXMODE(BBB_P9_14_MUX_PWM);
>  	} else if (pin_no == BBB_P9_16_1B) {
> -	  REG(AM335X_PADCONF_BASE + BBB_CONTROL_CONF_GPMC_AD(19)) = BBB_MUXMODE(BBB_P9_16_MUX_PWM);
> +	  REG(AM335X_PADCONF_BASE + AM335X_CONF_GPMC_A3) = BBB_MUXMODE(BBB_P9_16_MUX_PWM);
>  	} else { 
>  	  is_valid = false;
>          }
> 


More information about the devel mailing list