linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* NOR access from ARM-BE toolchain
@ 2018-08-17 10:54 Prabhakar Kushwaha
  2018-08-17 12:05 ` Boris Brezillon
  0 siblings, 1 reply; 2+ messages in thread
From: Prabhakar Kushwaha @ 2018-08-17 10:54 UTC (permalink / raw)
  To: Boris Brezillon, linux-mtd@lists.infradead.org

Hi Boris,

I am trying to access NOR flash with ARM running in big-endian mode.  But it is causing error as " do_map_probe() failed for type cfi_probe"

On our platform, The connection between Flash controller and NOR flash is little-endian.
Here, ARM core running in littler endian mode with MTD_CFI_NOSWAP every things work fine. 

if we change ARM mode as big-endian, it start showing error as mentioned above. 
Error is same even with MTD_CFI_BE_BYTE_SWAP option.   
As per my understanding MTD_CFI_BE_BYTE_SWAP or MTD_CFI_LE_BYTE_SWAP deals with flash controller and flash connection.
Not sure, if take care of Core endianness also. 

Please suggest!!

Regards,
Prabhakar

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: NOR access from ARM-BE toolchain
  2018-08-17 10:54 NOR access from ARM-BE toolchain Prabhakar Kushwaha
@ 2018-08-17 12:05 ` Boris Brezillon
  0 siblings, 0 replies; 2+ messages in thread
From: Boris Brezillon @ 2018-08-17 12:05 UTC (permalink / raw)
  To: Prabhakar Kushwaha; +Cc: linux-mtd@lists.infradead.org

On Fri, 17 Aug 2018 10:54:24 +0000
Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> wrote:

> Hi Boris,
> 
> I am trying to access NOR flash with ARM running in big-endian mode.  But it is causing error as " do_map_probe() failed for type cfi_probe"
> 
> On our platform, The connection between Flash controller and NOR flash is little-endian.
> Here, ARM core running in littler endian mode with MTD_CFI_NOSWAP every things work fine. 
> 
> if we change ARM mode as big-endian, it start showing error as mentioned above. 
> Error is same even with MTD_CFI_BE_BYTE_SWAP option.   
> As per my understanding MTD_CFI_BE_BYTE_SWAP or MTD_CFI_LE_BYTE_SWAP deals with flash controller and flash connection.

If it works in little endian, you should enable MTD_CFI_LE_BYTE_SWAP
(or add the little-endian prop to the flash node in your DT).

> Not sure, if take care of Core endianness also. 
> 
> Please suggest!!
> 
> Regards,
> Prabhakar
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-17 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-17 10:54 NOR access from ARM-BE toolchain Prabhakar Kushwaha
2018-08-17 12:05 ` Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).