u-boot/drivers
Hai Pham 4dbbc3f373 clk: renesas: Switch to new SD clock handling
The old SD handling code was huge and could not handle all the details
which showed up on R-Car Gen3 SoCs meanwhile. It is time to switch to
another design. Have SDnH a separate clock, use the existing divider
clocks and move the errata handling from the clock driver to the SDHI
driver where it belongs.

Based on Linux series by Wolfram Sang, commit bb6d3fa98a41 ("clk:
renesas: rcar-gen3: Switch to new SD clock handling") and commit
e5f7e81ee430a ("mmc: renesas_sdhi: Parse DT for SDnH")

Signed-off-by: Hai Pham <hai.pham.ud@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Marek: - Add rcar_clk_* prefix to all functions
       - Fix missing ~ in GENMASK(a, b), use clrsetbits_le32 instead
       - Use DIV_ROUND_CLOSEST, else if parent clock = 199999992 and
         rate = 200000000, the divider would be 0 and table lookup
	 would fail.
       - Turn rcar_clk_get_table_val into signed integer, so it can
         return 0 as a valid value and negative values as errors.
       - Make the code operate on correct clock and add comment
         which explains the reasoning behind it.
       - Rebase on changes to
         clk: renesas: Introduce and use rcar_clk_get_rate64_div_table function
2023-02-02 01:49:20 +01:00
..
adc adc: stm32mp15: add calibration support 2023-01-12 16:25:51 +01:00
ata ata: Don't try to use non-existent ports 2023-01-23 18:11:40 -05:00
axi WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
bios_emulator video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
block bootstd: Add a new pre-scan priority for bootdevs 2023-01-23 18:11:41 -05:00
bootcount global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
bus bus: Optionally include TI sysc driver in SPL/TPL 2022-12-02 08:39:00 -05:00
button button: gpio: add DM_GPIO dependency 2022-08-23 12:39:06 +02:00
cache drivers: cache: ncore: Disable snoop filter 2022-06-17 16:27:05 +08:00
clk clk: renesas: Switch to new SD clock handling 2023-02-02 01:49:20 +01:00
core dm: core: Use full printf() format when possible 2023-01-26 10:47:45 -07:00
cpu event: Correct dependencies on the EVENT framework 2023-01-18 12:46:13 -05:00
crypto global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
ddr ddr: imx: Handle both 3733 and 3732 MTps rates 2023-01-30 21:02:27 +01:00
demo demo: migrate uclass to livetree 2021-10-05 08:50:15 -04:00
dfu blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
dma ddr: fsl: Remove CONFIG_MEM_INIT_VALUE 2022-12-22 10:31:48 -05:00
fastboot fastboot: Add OEM run command 2023-01-11 15:02:24 -05:00
firmware firmware: ti_sci: fix typo in boot authentication message name 2023-01-18 13:11:13 -05:00
fpga global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
fuzz sandbox: Implement fuzzing engine driver 2022-06-23 12:58:19 -04:00
fwu-mdata FWU: Add FWU metadata access driver for GPT partitioned block devices 2022-10-31 14:47:32 -04:00
gpio pinctrl: renesas: Synchronize PFC core with Linux 6.1.7 2023-02-02 01:49:20 +01:00
hwspinlock treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
i2c global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
input input: Remove legacy KEYBOARD option 2022-10-21 13:47:56 -04:00
iommu iommu: Implement mapping IOMMUs for PCI devices 2023-01-27 14:47:58 -05:00
led led: led_pwm: typo 'iverted' on code comment 2022-11-02 13:58:17 -04:00
mailbox mailbox: zynqmp: Enable ipi mailbox driver for Versal NET 2022-09-26 14:23:29 +02:00
memory memory: atmel-ebi: add Atmel EBI (External Bus Interface) driver 2022-12-08 18:06:27 +02:00
mfd mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
misc Merge tag 'fsl-qoriq-2023-2-1' of https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq 2023-02-01 09:31:17 -05:00
mmc clk: renesas: Switch to new SD clock handling 2023-02-02 01:49:20 +01:00
mtd Xilinx chnages for v2023.04-rc1 2023-01-27 10:15:39 -05:00
mux treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
net Xilinx chnages for v2023.04-rc1 2023-01-27 10:15:39 -05:00
nvme bootstd: Add a new pre-scan priority for bootdevs 2023-01-23 18:11:41 -05:00
pch treewide: Simply conditions with the new OF_REAL 2021-09-25 09:46:15 -06:00
pci pci: Add Apple PCIe controller driver 2023-01-27 14:47:58 -05:00
pci_endpoint dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
phy global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
pinctrl pinctrl: renesas: r8a7796: Add R8A77961 PFC support 2023-02-02 01:49:20 +01:00
power pmic: pca9450: Make warm reset on WDOG_B assertion 2023-01-30 23:23:01 +01:00
pwm global: Migrate CONFIG_IMX6_PWM_PER_CLK to CFG 2022-12-23 10:10:40 -05:00
qe global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
ram global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
reboot-mode reboot-mode: Add NVMEM reboot mode 2023-01-11 11:54:50 -05:00
remoteproc remoteproc: ipu: Add driver to bring up ipu 2022-02-08 11:00:03 -05:00
reset reset: at91: Add reset driver for basic assert/deassert operations 2023-01-05 10:06:35 +02:00
rng drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY 2022-09-14 15:23:03 -04:00
rtc rtc: abx8xx: Add support for reading RAM 2023-01-11 11:54:50 -05:00
scsi bootstd: Add a new pre-scan priority for bootdevs 2023-01-23 18:11:41 -05:00
serial serial: mxc: Speed-up character transmission 2023-01-30 23:23:02 +01:00
smem smem: msm: add missing <linux/sizes.h> 2022-10-12 08:56:24 -04:00
soc soc: zynqmp: Fix IDcode for xck24 2023-01-24 13:55:05 +01:00
sound test: test sandbox sound driver more rigorously 2022-12-05 17:43:21 +01:00
spi spi: cadence_qspi: use STIG mode for small reads 2023-01-26 21:01:56 +05:30
spmi spmi: msm: add arbiter version 5 support 2021-10-31 08:46:44 -04:00
sysinfo dm: core: Switch uclass_*_device_err to use uclass_*_device_check 2022-10-29 07:36:33 -06:00
sysreset reset: at91: Add reset driver for basic assert/deassert operations 2023-01-05 10:06:35 +02:00
tee tee: optee: fix uuid comparisons on service discovery 2023-01-20 10:04:56 +02:00
thermal thermal: add sandbox driver 2022-10-11 16:03:03 -04:00
timer global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
tpm tpm2: ftpm: add the device in the OP-TEE services list 2023-01-20 10:04:56 +02:00
ufs global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
usb - jethub j100: add rescue boot from microSD 2023-01-31 10:15:39 -05:00
video video: sunxi: dw-hdmi: Read address from DT node 2023-01-23 01:18:31 +00:00
virtio bootstd: Add a new pre-scan priority for bootdevs 2023-01-23 18:11:41 -05:00
w1 dm: treewide: Do not use the return value of simple uclass iterator 2022-10-29 07:36:33 -06:00
w1-eeprom dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
watchdog watchdog: Clean up defaults for imx_watchdog / ulp_wdog 2023-01-20 12:27:23 -05:00
xen xen: pvblock: Use uclass_probe_all 2022-11-02 13:58:17 -04:00
Kconfig mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
Makefile mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00