> -----邮件原件-----
> 发件人: Marek Vasut <[email protected]>
> 发送时间: 2025年10月14日 19:27
> 收件人: Alice Guo (OSS) <[email protected]>; [email protected];
> dl-uboot-imx <[email protected]>; [email protected];
> [email protected]; [email protected]; [email protected]
> 抄送: Ye Li <[email protected]>; Alice Guo <[email protected]>; Peng Fan
> <[email protected]>; Jacky Bai <[email protected]>; [email protected];
> [email protected]
> 主题: Re: [PATCH v1 1/4] spi: nxp_xspi: Add new driver for NXP XSPI controller
> 
> On 10/14/25 1:17 PM, [email protected] wrote:
> 
> Hi,
> 
> > +++ b/drivers/spi/nxp_xspi.c
> > @@ -0,0 +1,889 @@
> > +// SPDX-License-Identifier: GPL-2.0+
> > +/*
> > + * Copyright 2025 NXP
> > + */
> > +
> > +#include <asm/arch/clock.h>
> > +#include <asm/io.h>
> > +#include <clk.h>
> > +#include <dm.h>
> > +#include <dm/device_compat.h>
> > +#include <linux/bitops.h>
> > +#include <linux/bug.h>
> > +#include <linux/err.h>
> > +#include <linux/iopoll.h>
> > +#include <linux/kernel.h>
> > +#include <linux/sizes.h>
> > +#include <log.h>
> > +#include <malloc.h>
> > +#include <spi.h>
> > +#include <spi-mem.h>
> > +
> > +#include "nxp_xspi.h"
> > +
> > +static inline void xspi_writel(struct nxp_xspi *x, u32 val, u32 addr)
> > +{
> > +   void __iomem *_addr = (void __iomem *)(uintptr_t)addr;
> > +
> > +   if (x->devtype_data->little_endian)
> > +           out_le32(_addr, val);
> > +   else
> > +           out_be32(_addr, val);
> > +};
> Is the BE mode ever used ?

Hi Marek,

As far as I know, the i.MX943 operates in little-endian mode, and the BE mode 
is not used. Do you think it is necessary to remove the big-endian related code?

Best regards,
Alice Guo

Reply via email to