WSL2-Linux-Kernel/drivers/soc
Douglas Anderson 4497c2b37f soc: rockchip: Set the proper PWM for rk3288
[ Upstream commit bbdc00a7de ]

The rk3288 SoC has two PWM implementations available, the "old"
implementation and the "new" one.  You can switch between the two of
them by flipping a bit in the grf.

The "old" implementation is the default at chip power up but isn't the
one that's officially supposed to be used.  ...and, in fact, the
driver that gets selected in Linux using the rk3288 device tree only
supports the "new" implementation.

Long ago I tried to get a switch to the right IP block landed in the
PWM driver (search for "rk3288: Switch to use the proper PWM IP") but
that got rejected.  In the mean time the grf has grown a full-fledged
driver that already sets other random bits like this.  That means we
can now get the fix landed.

For those wondering how things could have possibly worked for the last
4.5 years, folks have mostly been relying on the bootloader to set
this bit.  ...but occasionally folks have pointed back to my old patch
series [1] in downstream kernels.

[1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1391597.html

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-15 11:54:55 +02:00
..
actions soc: actions: owl-sps: Factor out owl_sps_set_pg() for power-gating 2017-06-23 17:43:27 +02:00
amlogic meson-gx-socinfo: Fix package id parsing 2018-02-25 11:07:56 +01:00
atmel ARM: at91: add armv7m SoC detection 2017-06-02 10:11:49 +02:00
bcm soc: bcm: brcmstb: Don't leak device tree node reference 2019-02-12 19:46:00 +01:00
dove License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fsl soc: fsl: qbman: avoid race in clearing QMan interrupt 2019-03-13 14:03:19 -07:00
imx soc: imx: gpc: restrict register range for regmap access 2018-08-24 13:09:19 +02:00
lantiq MIPS: lantiq: gphy: Drop reboot/remove reset asserts 2018-06-05 11:41:58 +02:00
mediatek soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher 2019-06-15 11:54:55 +02:00
qcom soc: qcom: gsbi: Fix error handling in gsbi_probe() 2019-04-05 22:31:36 +02:00
renesas License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rockchip soc: rockchip: Set the proper PWM for rk3288 2019-06-15 11:54:55 +02:00
samsung Samsung soc drivers changes for v4.14 2017-08-23 21:46:12 +02:00
sunxi drivers: soc: sunxi: add support for A64 and its SRAM C 2017-08-18 14:30:21 +08:00
tegra soc/tegra: pmc: Drop locking from tegra_powergate_is_powered() 2019-04-20 09:15:06 +02:00
ti soc: ti: QMSS: Fix usage of irq_set_affinity_hint 2018-11-21 09:24:09 +01:00
ux500 ARM: ux500: move soc_id driver to drivers/soc 2016-07-12 11:24:09 +02:00
versatile soc: versatile: remove unnecessary static in realview_soc_probe() 2017-08-16 22:28:27 +02:00
zte soc: zte: Restrict SOC_ZTE to ARCH_ZX or COMPILE_TEST 2017-07-27 13:12:34 +02:00
Kconfig soc: Add Amlogic SoC Information driver 2017-07-28 09:25:07 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00