diff options
author | Tom Rini <trini@konsulko.com> | 2022-04-05 08:33:32 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-05 08:33:32 -0400 |
commit | 4de720e98d552dfda9278516bf788c4a73b3e56f (patch) | |
tree | 063af389b20d9b742486a1a834978676d1f42e87 /drivers/pwm | |
parent | 01f1ab67f38882dc7665a0a6eca4bbeba6d84f81 (diff) | |
parent | 69a0ea007826bf27584943591e61ee087683fdca (diff) | |
download | u-boot-4de720e98d552dfda9278516bf788c4a73b3e56f.tar.gz u-boot-4de720e98d552dfda9278516bf788c4a73b3e56f.tar.bz2 u-boot-4de720e98d552dfda9278516bf788c4a73b3e56f.zip |
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi
A big part is the DM pinctrl driver, which allows us to get rid of quite
some custom pinmux code and make the whole port much more robust. Many
thanks to Samuel for that nice contribution! There are some more or less
cosmetic warnings about missing clocks right now, I will send the trivial
fixes for that later.
Another big chunk is the mkimage upgrade, which adds RISC-V and TOC0
(secure images) support. Both features are unused at the moment, but I
have an always-secure board that will use that once the DT lands in the
kernel.
On top of those big things we have some smaller fixes, improving the
I2C DM support, fixing some H6/H616 early clock setup and improving the
eMMC boot partition support.
The gitlab CI completed successfully, including the build test for all
161 sunxi boards. I also boot tested on a A64, A20, H3, H6, and F1C100
board. USB, SD card, eMMC, and Ethernet all work there (where applicable).
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/sunxi_pwm.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/pwm/sunxi_pwm.c b/drivers/pwm/sunxi_pwm.c index e3d5ee456b..bb1bec05ec 100644 --- a/drivers/pwm/sunxi_pwm.c +++ b/drivers/pwm/sunxi_pwm.c @@ -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 |