u-boot-brain/drivers/clk
Simon Glass 8a38abfc43 dm: Use driver_info index instead of pointer
At present we use a 'node' pointer in the of-platadata phandle_n_arg
structs. This is a pointer to the struct driver_info for a particular
device, and we can use it to obtain the struct udevice pointer itself.

Since we don't know the struct udevice pointer until it is allocated in
memory, we have to fix up the phandle_n_arg.node at runtime. This is
annoying since it requires that SPL's data is writable and adds a small
amount of extra (generated) code in the dm_populate_phandle_data()
function.

Now that we can find a driver_info by its index, it is easier to put the
index in the phandle_n_arg structures.

Update dtoc to do this, add a new device_get_by_driver_info_idx() to look
up a device by drive_info index and update the tests to match.

Signed-off-by: Simon Glass <sjg@chromium.org>
2020-10-29 14:42:18 -06:00
..
altera clk: agilex: Additional membus writes for HPS PLL 2020-10-09 17:53:10 +08:00
analogbits clk: sifive: Sync-up WRPLL library with upstream Linux 2019-07-19 14:24:51 +08:00
aspeed clock:aspeed: Sync with Linux kernel clock header define 2020-09-09 16:57:35 -04:00
at91 clk: at91: sama7g5: add 5th divisor for mck0 layout and characteristics 2020-10-19 09:19:53 +03:00
exynos treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
imx clk: imx6: Add definition for IMX6QDL_CLK_ENET_REF clock 2020-08-24 11:03:26 +02:00
intel x86: remove dead code in intel_clk_get_rate() 2020-03-05 18:19:40 +08:00
kendryte clk: kendryte: no need to check argument of free() 2020-10-26 09:27:13 +08:00
mediatek clk: mt7622: add needed clocks for ssusb-node 2020-08-24 14:11:31 -04:00
meson common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mtmips clk: add clock driver for MediaTek MT76x8 platform 2019-10-25 17:20:44 +02:00
mvebu common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
owl clk: actions: Add Ethernet clocks 2020-07-07 16:09:22 -04:00
renesas clk: renesas: Import R8A774C0 clock tables from Linux 5.9 2020-10-20 12:56:52 +02:00
rockchip treewide: Fix wrong CONFIG_IS_ENABLED() handling 2020-10-14 11:16:34 -04:00
sifive clk: sifive: Include device_compat.h 2020-10-15 18:36:55 -04:00
sunxi common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tegra common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
uniphier treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
clk_bcm6345.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_boston.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_fixed_factor.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
clk_fixed_rate.c dm: test: Add a test for of-platdata phandles 2020-10-29 14:42:18 -06:00
clk_octeon.c clk: clk_octeon: Add simple MIPS Octeon clock driver 2020-08-03 21:11:41 +02:00
clk_pic32.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_sandbox_ccf.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk_sandbox_test.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
clk_sandbox.c dm: test: Add a test for of-platdata phandles 2020-10-29 14:42:18 -06:00
clk_scmi.c clk: add clock driver for SCMI agents 2020-09-30 11:55:23 -04:00
clk_stm32f.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_stm32h7.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_stm32mp1.c arm: stm32mp: add weak function to save vddcore 2020-07-07 16:01:23 +02:00
clk_versal.c clk: versal: Move pm_query_id out of clock driver 2020-08-20 10:57:46 +02:00
clk_vexpress_osc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk_zynq.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
clk_zynqmp.c xilinx: drivers: Use '_' instead of '-' in driver name 2020-09-23 10:31:40 +02:00
clk-cdce9xx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk-composite.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk-divider.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk-fixed-factor.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk-gate.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk-hsdk-cgu.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk-mux.c clk: ccf: replace the get_rate helper 2020-10-22 11:26:14 -04:00
clk-ti-sci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
clk-uclass.c dm: Use driver_info index instead of pointer 2020-10-29 14:42:18 -06:00
clk.c clk: check hw and hw->dev before dereference it 2020-09-22 11:27:18 +03:00
ics8n3qv01.c clk: ICS8N3QV01 remove superfluous code 2020-08-24 11:03:26 +02:00
Kconfig clk: add clock driver for SCMI agents 2020-09-30 11:55:23 -04:00
Makefile clk: add clock driver for SCMI agents 2020-09-30 11:55:23 -04:00
mpc83xx_clk.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mpc83xx_clk.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00