spi: fsl_qspi: add clock handling #1
Reference in New Issue
Block a user
Delete Branch "ChuanN-sudo/u-boot:k3-dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add QSPI support for K3 in DT and board config, and update
fsl_qspi to handle the clocks required by the controller.
Please do not submit a Pull Request via github. Our project makes use of
mailing lists for patch submission and review. For more details please
see https://u-boot.readthedocs.io/en/latest/develop/sending_patches.html
The only exception to this is in order to trigger a CI loop on Azure prior
to posting of patches.
还需要拆分patch,只提交fsl改动。k3使能的部分不需要推PR
@@ -272,2 +279,4 @@void __iomem *iobase;void __iomem *ahb_addr;#if CONFIG_IS_ENABLED(CLK)struct clk clk_en, clk;拆多行
已修改
@@ -821,2 +831,4 @@dm_bus->max_hz = fdtdec_get_int(blob, node, "spi-max-frequency",66000000);#if CONFIG_IS_ENABLED(CLK)ret = clk_get_by_index(bus, 0, &q->clk_en);用name别用写死的index,name从dt拿
参考 Linux 的流程
已经改成通过name拿clocks
riscv: dts: k3: add QSPI support with fsl_qspi clocksto spi: fsl_qspi: add clock support for SpacemiT K3@@ -267,3 +268,3 @@.little_endian = true,};static const struct fsl_qspi_devtype_data spacemit_k3_data = {K3 部分移出 fsl patch,还有底部的 compatible
已完成修改
spi: fsl_qspi: add clock support for SpacemiT K3to spi: fsl_qspi: add clock handling85d927d2bdto037ffcf5e5037ffcf5e5to6c470cd980Pull request closed