]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: i2c-cdns.c: Update driver to read fifo-depth from device tree
authorPei Yue Ho <peiyue.ho@starfivetech.com>
Mon, 13 Feb 2023 08:02:41 +0000 (00:02 -0800)
committerHeiko Schocher <hs@denx.de>
Mon, 13 Feb 2023 08:58:27 +0000 (09:58 +0100)
commitf536fda99fa2c1c88f68d8da54ed6233cec3532e
treefd3918bfb7edf9bb6d6c750756e6b506ab42b5f7
parent8511a7fc85ac1d1e3aea44d0e97fab26ace10ab2
i2c: i2c-cdns.c: Update driver to read fifo-depth from device tree

Enable driver to fetch the optional parameter (fifo-depth) from device
tree. If the parameter is not found in the device tree, it will use
the default value declared in the driver.

Signed-off-by: Pei Yue Ho <peiyue.ho@starfivetech.com>
Reviewed-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
Reviewed-by: Eng Lee Teh <englee.teh@starfivetech.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-cdns.c