[PATCH 3/4] nand: add NXP IFC nand driver

2021-07-28 Thread Renaud Barbier
Add the NXP IFC nand driver support. This driver can be used with the NXP QorIQ cores. Signed-off-by: Renaud Barbier --- .../mach-layerscape/include/mach/fsl_ifc.h| 16 + .../mach-layerscape/include/mach/layerscape.h |3 + drivers/mtd/nand/Kconfig |6 + drivers

[PATCH 0/4] NXP IFC nand driver

2021-07-28 Thread Renaud Barbier
These patches add the NXP IFC nand driver and enables it for the Layescape SOC. Tested on the ls1046ardb evaluation board with UBI/UBIFS. The driver makes use of the ls10146ardb DTS to probe the device. Originally, adapted for our NXP P1014 based platforms(not upstream), it allows to pass the chip

[PATCH 4/4] ls1046ardb: enable IFC NAND.

2021-07-28 Thread Renaud Barbier
Set the NAND timings and enable the IFC NAND driver. Signed-off-by: Renaud Barbier --- arch/arm/boards/ls1046ardb/board.c| 26 ++ arch/arm/configs/layerscape_defconfig | 12 2 files changed, 38 insertions(+) diff --git a/arch/arm/boards/ls1046ardb/board.

[PATCH 1/4] ARM: atomic.h: add 64-bit counter support

2021-07-28 Thread Renaud Barbier
In preparation for the introduction of the FSL IFC nand driver for the layerscape CPU, add 64-bit counter support. Signed-off-by: Renaud Barbier --- include/asm-generic/atomic-long.h | 3 +- include/asm-generic/atomic.h | 49 +++ 2 files changed, 51 insertions(+

[PATCH 2/4] arm: 64-bit device specific operation

2021-07-28 Thread Renaud Barbier
In preparation for the introduction of the NXP FSL IFC nand driver, add memcpy_ directional I/O operation. Code based on NXP Linux support: git://source.codeaurora.org/external/qoriq/qoriq-components/linux Signed-off-by: Renaud Barbier --- arch/arm/lib64/Makefile | 2 +- arch/arm/lib64/io.c

Re: Not successful if statements returning error code

2021-07-28 Thread Denis Osterland-Heim
Hi, Am Mittwoch, den 28.07.2021, 10:56 +0200 schrieb Ahmad Fatoum: > Hello Andrej, > > On 23.07.21 12:18, Andrej Picej wrote: > > Hi all, > > > > I have a question about Hush shell and the use of its conditional > > statements. > > We have come upon an interesting behaviour with its return values

Re: Not successful if statements returning error code

2021-07-28 Thread Ahmad Fatoum
Hello Andrej, On 23.07.21 12:18, Andrej Picej wrote: > Hi all, > > I have a question about Hush shell and the use of its conditional statements. > We have come upon an interesting behaviour with its return values. > > If the condition of the if statement is not true then the return value is 1 >