u-boot/drivers
Andre Przywara e3e2d662a2 uart: pl011: Add proper DM clock support
Even though the PL011 UART driver claims to be DM compliant, it does not
really a good job with parsing DT nodes. U-Boot seems to adhere to a
non-standard binding, either requiring to have a "skip-init" property in
the node, or to have an extra "clock" property holding the base
*frequency* value for the baud rate generator.
DTs in the U-Boot tree seem to have been hacked to match this
requirement.

The official binding does not mention any of these properties, instead
recommends a standard "clocks" property to point to the baud base clock.

Some boards use simple "fixed-clock" providers, which U-Boot readily
supports, so let's add some simple DM clock code to the PL011 driver to
learn the rate of the first clock, as described by the official binding.

These clock nodes seem to be not ready very early in the boot process,
so provide a fallback value, by re-using the already existing
CONFIG_PL011_CLOCK variable.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
[trini: Add <clock_legacy.h> for get_bus_freq() for layerscape
platforms]
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-05-07 09:01:42 -04:00
..
adc
ata
axi
bios_emulator
block block: ide: use definitions from include/libata.h 2020-04-17 12:32:36 -04:00
board
bootcount bootcount_ext: Add flag to enable/disable bootcount 2020-04-24 10:10:00 -04:00
cache cache: l2x0: Fix missing write to Auxiliary Control Register 2020-05-06 15:12:48 -04:00
clk i.MX for 2020.07 2020-05-04 09:29:42 -04:00
core dm: core: Add function to get child count of ofnode or device 2020-05-02 12:32:28 +02:00
cpu cpu: Support querying the address width 2020-04-16 14:36:28 +08:00
crypto drivers: crypto: rsa_mod_exp: avoid DM_FLAG_PRE_RELOC 2020-04-16 08:12:32 +02:00
ddr arm: mvebu: drivers/ddr: remove redundant assignment 2020-04-14 13:16:42 +02:00
demo
dfu
dma
fastboot
firmware Xilinx changes for v2020.07 2020-04-07 17:13:35 -04:00
fpga
gpio test: pinmux: add pincontrol-gpio for pin configuration 2020-04-16 23:06:54 -04:00
hwspinlock
i2c Merge tag 'for-v2020.07' of https://gitlab.denx.de/u-boot/custodians/u-boot-i2c 2020-04-21 08:28:13 -04:00
input
led
mailbox
memory
misc imx8: Configure SNVS 2020-05-01 13:46:22 +02:00
mmc mmc: zynq: parse dt when probing 2020-04-27 13:53:13 +02:00
mtd Merge https://gitlab.denx.de/u-boot/custodians/u-boot-spi 2020-04-30 18:05:15 -04:00
net i.MX for 2020.07 2020-05-04 09:29:42 -04:00
nvme
pch
pci pci: Avoid auto-config when chain loading 2020-04-30 17:40:16 +08:00
pci_endpoint
phy phy: phy-mtk-tphy: add a new reference clock 2020-05-02 12:32:28 +02:00
pinctrl dm: pinctrl: Use right device pointer for configuring pinctrl 2020-04-23 08:25:37 -04:00
power pmic: pfuze100: Change error message level to debug 2020-04-18 12:59:37 +02:00
pwm mediatek: pwm: add pwm driver for MediaTek SoCs 2020-04-17 12:32:36 -04:00
qe doc: fix references to README.qe_firmware 2020-05-04 09:12:37 +05:30
ram configs: stm32mp1: replace STM32MP1_TRUSTED by TFABOOT 2020-04-15 09:08:37 +02:00
remoteproc remoteproc: k3-r5: Fix rproc init failure on Split-mode _only_ devices 2020-03-16 12:33:19 +05:30
reset
rng rockchip: rng: Add a driver for random number generator(rng) device 2020-04-29 10:30:55 +08:00
rtc rtc: pt7c4338: Add driver model support 2020-05-04 09:12:36 +05:30
scsi
serial uart: pl011: Add proper DM clock support 2020-05-07 09:01:42 -04:00
smem
soc
sound
spi spi: sifive: Fix QPP transfer 2020-04-30 22:34:20 +05:30
spmi
sysreset sysreset: add reset controller based reboot driver 2020-04-27 20:29:33 +02:00
tee tee: optee: use dev_info in print_os_revision 2020-04-17 12:32:36 -04:00
thermal
timer timer MediaTek use upstream compatible 2020-05-01 11:34:01 -04:00
tpm tpm: Don't cleanup unless an error happens 2020-04-16 14:36:28 +08:00
ufs
usb xhci: mediatek: Add support for MTK xHCI host controller 2020-05-02 12:32:28 +02:00
video i.MX for 2020.07 2020-05-04 09:29:42 -04:00
virtio
w1
w1-eeprom
watchdog watchdog MediaTek add upstream compatible 2020-05-01 11:34:01 -04:00
Kconfig
Makefile