i2c: thunderx: Adding ioclk support
authorPiyush Malgujar <pmalgujar@marvell.com>
Tue, 23 Apr 2024 07:46:08 +0000 (00:46 -0700)
committerAndi Shyti <andi.shyti@kernel.org>
Sun, 5 May 2024 22:56:41 +0000 (00:56 +0200)
commit53e3d528ba723c8fd5bf968f517c9bc6a369f3ea
tree00a1e2dcb54a04a065ec70d6131d021bd6df9c91
parentb9960b902f42c80ef436bf172666f20acbda32ac
i2c: thunderx: Adding ioclk support

Read the ioclk property as reference clock if sclk not present in acpi
table to make it SOC agnostic.
In case, it's not populated from dts/acpi table, use the default clock
of 800 MHz which is optimal in either case of sclk/ioclk.

Signed-off-by: Piyush Malgujar <pmalgujar@marvell.com>
Acked-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-thunderx-pcidrv.c