forked from OERV-BSP/u-boot
pinctrl: nxp: Add i.MX94 daisy register offset
Define the daisy register offset for i.MX94 at 0x608 within the iomuxc register space. This enables correct pad selection for daisy chain configuration on i.MX94 platforms. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Signed-off-by: Alice Guo <alice.guo@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include "pinctrl-imx.h"
|
||||
|
||||
#define DAISY_OFFSET_IMX95 0x408
|
||||
#define DAISY_OFFSET_IMX94 0x608
|
||||
|
||||
/* SCMI pin control types */
|
||||
#define PINCTRL_TYPE_MUX 192
|
||||
@@ -133,6 +134,8 @@ static int imx_scmi_pinctrl_probe(struct udevice *dev)
|
||||
|
||||
if (IS_ENABLED(CONFIG_IMX95))
|
||||
priv->daisy_offset = DAISY_OFFSET_IMX95;
|
||||
else if (IS_ENABLED(CONFIG_IMX94))
|
||||
priv->daisy_offset = DAISY_OFFSET_IMX94;
|
||||
else
|
||||
return -EINVAL;
|
||||
|
||||
@@ -141,7 +144,7 @@ static int imx_scmi_pinctrl_probe(struct udevice *dev)
|
||||
|
||||
static int imx_scmi_pinctrl_bind(struct udevice *dev)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_IMX95))
|
||||
if (IS_ENABLED(CONFIG_IMX95) || IS_ENABLED(CONFIG_IMX94))
|
||||
return 0;
|
||||
|
||||
return -ENODEV;
|
||||
|
||||
Reference in New Issue
Block a user