Re: [PATCH] input: add handler for reset and power key input events

2019-08-28 Thread Oleksij Rempel
Hi On 29.08.19 07:28, Ahmad Fatoum wrote: Kernel device trees may indicate linux,code = KEY_POWER or KEY_RESTART, mostly for gpio-keys. Make barebox able to act on them by registering an appropriate input notifier. Suggested-by: Oleksij Rempel Signed-off-by: Ahmad Fatoum --- drivers/input/K

[PATCH] input: add handler for reset and power key input events

2019-08-28 Thread Ahmad Fatoum
Kernel device trees may indicate linux,code = KEY_POWER or KEY_RESTART, mostly for gpio-keys. Make barebox able to act on them by registering an appropriate input notifier. Suggested-by: Oleksij Rempel Signed-off-by: Ahmad Fatoum --- drivers/input/Kconfig | 6 ++ drivers/input/Makefi

[PATCH] mtd: spi-nor: Add support for s25fl128s0 s25fl128s1 flashes from Linux

2019-08-28 Thread iu87m888m
From: DU HUANPENG These definitions are taken from Linux's spi-nor driver as of v5.2-rc4 Signed-off-by: DU HUANPENG --- drivers/mtd/spi-nor/spi-nor.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 9dbc830..f38db7c 100

[PATCH] mtd: spi-nor: Add support for s25fl128s0 s25fl128s1 flashes from Linux

2019-08-28 Thread iu87m888m
From: DU HUANPENG These definitions are taken from Linux's spi-nor driver as of v5.2-rc4 Signed-off-by: DU HUANPENG --- drivers/mtd/spi-nor/spi-nor.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 9dbc830..f38db7c 100

[PATCH] mtd: spi-nor: Add support for s25fl128s0 s25fl128s1 flashes from Linux

2019-08-28 Thread iu87m888m
From: DU HUANPENG These definitions are taken from Linux's spi-nor driver as of v5.2-rc4 Signed-off-by: DU HUANPENG --- drivers/mtd/spi-nor/spi-nor.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 9dbc830..f38db7c 100

[PATCH 2/2] commands: go: add -m option to keep MMU on

2019-08-28 Thread Ahmad Fatoum
For testing or for running bare metal applications while the caches are on, it can be beneficial to have barebox do the memory setup and handing over control with the MMU still on. Extend go by a -m parameter that does this. Other parts of barebox (e.g. DMA) are still shut down. Signed-off-by: Ahm

[PATCH 1/2] ARM: allow booting with MMU enabled

2019-08-28 Thread Ahmad Fatoum
Linux expects the MMU to be off on boot as does barebox, when being chainloaded. However for running executables or for testing things, booting with the MMU (and thus the caches) on can be nice. Support this, by having architectures define HAVE_MMU_OFF_FOR_BOOT, if they are turning off the MMU. Th

Re: [PATCH 5/6] sandbox: hostfile: allow probing from device tree

2019-08-28 Thread Ahmad Fatoum
Hello Sascha, On 8/28/19 1:49 PM, Sascha Hauer wrote: > This file doesn't belong into this patch. The file contains an example of how a barebox,hostfile node looks like. Would you prefer I split if off into a separate patch? Cheers Ahmad -- Pengutronix e.K. |

Re: [PATCH 5/6] sandbox: hostfile: allow probing from device tree

2019-08-28 Thread Sascha Hauer
On Tue, Aug 27, 2019 at 04:32:38PM +0200, Ahmad Fatoum wrote: > When testing things like barebox state in sandbox, it's nice to be able > to refer to a partition on a hostfile by phandle. Support this by > checking for reading the barebox,filename property. > > Signed-off-by: Ahmad Fatoum > --- >

Re: [PATCH] ARM: zii-vf610-dev: Use CTRL-C as autoboot abort

2019-08-28 Thread Sascha Hauer
On Mon, Aug 26, 2019 at 08:02:25PM +, Cory Tusar wrote: > This brings the various VF610-based units in line with other ZII > platforms. > > Signed-off-by: Cory Tusar > --- > .../zii-vf610-dev/defaultenv-zii-vf610-dev/nv/autoboot_abort_key | 1 + > 1 file changed, 1 insertion(+) > create mod

Re: [PATCH] ARM: dts: vf610-zii-cfu1: Fix indentation

2019-08-28 Thread Sascha Hauer
On Mon, Aug 26, 2019 at 07:47:41PM +, Cory Tusar wrote: > Whitespace only - no functional changes. > > Signed-off-by: Cory Tusar > --- > arch/arm/dts/vf610-zii-cfu1.dts | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) Applied, thanks Sascha -- Pengutronix e.K.

Re: [PATCH v1 1/3] MIPS: ath79: enable watchdog support

2019-08-28 Thread Sascha Hauer
On Mon, Aug 26, 2019 at 01:38:52PM +0200, Oleksij Rempel wrote: > all ath79 based SoCs have watchdog. Make sure, it can be used. > > Signed-off-by: Oleksij Rempel > --- > arch/mips/configs/ath79_defconfig | 4 > 1 file changed, 4 insertions(+) Applied, thanks Sascha -- Pengutronix e.K.

Re: [PATCH] images/.gitignore: ignore i.MX8MQ HAB files

2019-08-28 Thread Sascha Hauer
On Mon, Aug 26, 2019 at 06:40:52AM +0200, Rouven Czerwinski wrote: > Ignore the new image files with .pimximg and .psimximg extensions and > the sha256 sum files. > > Signed-off-by: Rouven Czerwinski > --- > images/.gitignore | 4 > 1 file changed, 4 insertions(+) Applied, thanks Sascha

Re: [PATCH v2 0/7] clean up and complement reset source handling

2019-08-28 Thread Sascha Hauer
On Sun, Aug 25, 2019 at 05:58:37PM +0200, Uwe Kleine-König wrote: > Hello, > > compared to the sent earlier (implicit) v1 there is a new patch to fix > the ordering of exported functions and patched 4 to 7 add the concept of > a reset_source device. Also v1 had some whitespace problems that are >

Re: MMC hardware partitioning

2019-08-28 Thread gianluca
On 08/28/2019 12:45 PM, Sascha Hauer wrote: Hi Gianluca, On Tue, Aug 27, 2019 at 03:38:46PM +0200, gianluca wrote: Hello everyone! I am wondering if there is some way to enable the partition protection for eMMC partition (usually to avoid data corruption due to a powerloss) in Barebox, as seen

Re: [PATCH v3] console: fix out-of-bounds read in dputc(/dev/*, ...)

2019-08-28 Thread Sascha Hauer
On Fri, Aug 23, 2019 at 11:25:31AM +0200, Ahmad Fatoum wrote: > Trying to output a single character via > echo -a /dev/serial0-1 > currently results in garbage output after the newline, because console.c's > fops_write discards the buffer length and passes the buffer to > (struct cdev)::puts

Re: MMC hardware partitioning

2019-08-28 Thread Sascha Hauer
Hi Gianluca, On Tue, Aug 27, 2019 at 03:38:46PM +0200, gianluca wrote: > Hello everyone! > I am wondering if there is some way to enable the partition protection for > eMMC partition (usually to avoid data corruption due to a powerloss) in > Barebox, as seen is mmc command in the bootloader counte

[PATCH 5/6] mtd: peb: Add function to write file

2019-08-28 Thread Sascha Hauer
This adds a function to the mtd peb API to write a file spanning multiple blocks to a mtd device. Bad blocks are automatically skipped and before anything is done we check if the image will fit into the remaining space (honouring bad blocks). Signed-off-by: Sascha Hauer --- drivers/mtd/peb.c

[PATCH 3/6] mtd: nand: gpmc: Add BCH16 support

2019-08-28 Thread Sascha Hauer
This adds support for BCH16 ECC encoding. The support is mostly taken from Linux-5.3-rc6. One major change is the different wrap mode used. The Kernel uses wrapmode 1, which means "pass all data through the BCH engine". Still the Kernel has to skip the OOB marker which is done by reading all user d

[PATCH 4/6] net: cpsw: Make phy its own driver

2019-08-28 Thread Sascha Hauer
This makes of_phy_device_connect() work properly when the phy is specified in the device tree. Without it of_mdio_find_phy() will not find the right device. It will match: bus->parent->device_node == phy_node->parent Without this patch bus->parent->device_node will be the ethernet node and phy_no

[PATCH 2/6] mtd: nand: gpmc: Add support for ELM

2019-08-28 Thread Sascha Hauer
This adds support for the ELM (Error Location Module) found on not-too-old OMAP SoCs. The driver has been taken from Linux-5.3-rc6 with interrupt support removed. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/Kconfig| 10 + drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/omap_elm.c

[PATCH 6/6] ARM: OMAP: bbu: Add an all-in-one NAND update handler

2019-08-28 Thread Sascha Hauer
This adds a NAND update handler which automatically detects on the filetype which stage shall be updated. It takes a single partition for both the xload images and the barebox images. It uses a fixed layout on this partition, so there's no need to configure anything on the board side. Signed-off-b

[PATCH 0/6] OMAP updates

2019-08-28 Thread Sascha Hauer
This series has a few updates for OMAP. First of all BCH16 support is added to the GPMC NAND driver which is needed for NAND chips with bigger OOB sizes. Changes to the CPSW driver allow to specify the phy in th device tree. Finally a new type of NAND barebox update handler is added that is easier

[PATCH 1/6] ARM: omap: am35xx_emif4: Fix bit polling

2019-08-28 Thread Sascha Hauer
((x & (1 << 10)) == 0x1) can never be true as the compiler mourns about. Fix this to actually do what the comment says: Wait till bit 10 is cleared. Looking at the corresponding U-Boot code also suggests that this is the right thing to do. Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/am35x