]> git.baikalelectronics.ru Git - uboot.git/commitdiff
pwm: sunxi: Remove non-DM pin setup
authorSamuel Holland <samuel@sholland.org>
Sat, 28 Aug 2021 16:50:51 +0000 (11:50 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 4 Apr 2022 22:24:17 +0000 (23:24 +0100)
This is now handled automatically by the pinctrl driver.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/include/asm/arch-sunxi/gpio.h
drivers/pwm/sunxi_pwm.c

index cf5afdac6a291e5663b580e32ac43ee18e45beff..9f07d907e5adbf8287227fc498d5d19ca60bad1d 100644 (file)
@@ -159,7 +159,6 @@ enum sunxi_gpio_number {
 
 #define SUNXI_GPD_LCD0         2
 #define SUNXI_GPD_LVDS0                3
-#define SUNXI_GPD_PWM          2
 
 #define SUNIV_GPE_UART0                5
 
index e3d5ee456b003b59b4e59d1c0b6ce086d1239164..bb1bec05ec34a3c8ea23c029592c9658179c09ad 100644 (file)
@@ -13,7 +13,6 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/pwm.h>
-#include <asm/arch/gpio.h>
 #include <power/regulator.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -45,14 +44,6 @@ static const u32 prescaler_table[] = {
        1,      /* 1111 */
 };
 
-static int sunxi_pwm_config_pinmux(void)
-{
-#ifdef CONFIG_MACH_SUN50I
-       sunxi_gpio_set_cfgpin(SUNXI_GPD(22), SUNXI_GPD_PWM);
-#endif
-       return 0;
-}
-
 static int sunxi_pwm_set_invert(struct udevice *dev, uint channel,
                                bool polarity)
 {
@@ -137,8 +128,6 @@ static int sunxi_pwm_set_enable(struct udevice *dev, uint channel, bool enable)
                return 0;
        }
 
-       sunxi_pwm_config_pinmux();
-
        if (priv->invert)
                v &= ~SUNXI_PWM_CTRL_CH0_ACT_STA;
        else