Re: [PATCH 1/3] ARM64: entry: save/restore potentially clobbered registers

2019-12-20 Thread Ahmad Fatoum
Hi, On 12/20/19 4:42 PM, Lucas Stach wrote: >> I did the same in <20191002075754.9257-1-a.fat...@pengutronix.de>, except for >> x4-x6 instead of x19-x21, but Rouven* [was missing here] > reported that his i.MX8 still didn't boot. > > I have not thoroughly analyzed the called cache maintenance f

[PATCH 09/10] usb: Add dwc2 host driver

2019-12-20 Thread Sascha Hauer
This adds a driver for the dwc2 controller in host mode. The driver is taken from U-Boot-2019.10 and tested on a Raspberry Pi 3. Signed-off-by: Sascha Hauer --- drivers/usb/host/Kconfig |3 + drivers/usb/host/Makefile |1 + drivers/usb/host/dwc2.c | 1132 ++

Re: [PATCH 1/3] ARM64: entry: save/restore potentially clobbered registers

2019-12-20 Thread Lucas Stach
Hi Ahmad, On Fr, 2019-12-20 at 16:34 +0100, Ahmad Fatoum wrote: > Hello Lucas, > > On 12/19/19 10:13 AM, Lucas Stach wrote: > > While the comment is correct that currently arm_early_mmu_cache_invalidate() > > is only a call to to v8_invalidate_icache_all() , which doesn't clobber > > x0-x2, > >

Re: [PATCH 1/3] ARM64: entry: save/restore potentially clobbered registers

2019-12-20 Thread Ahmad Fatoum
Hello Lucas, On 12/19/19 10:13 AM, Lucas Stach wrote: > While the comment is correct that currently arm_early_mmu_cache_invalidate() > is only a call to to v8_invalidate_icache_all() , which doesn't clobber x0-x2, > this starts to fall apart as soon as we do something more in this function. > > M

Re: [PATCH v2] habv4: imx change signing area from full to the executed image

2019-12-20 Thread Sascha Hauer
On Wed, Dec 18, 2019 at 01:57:17PM +0100, Maik Otto wrote: > the whole barebox with mbr and partition table were be signed by default. > change the signing to the executed image without signing the mbr, > partition table and header_gap by imx8mq > additional delete option full, from-dcdofs and sk

Re: [PATCH] fixup! ARM: zii-imx8mq-dev: add DT fixups

2019-12-20 Thread Sascha Hauer
On Thu, Dec 19, 2019 at 12:06:00PM +0100, Lucas Stach wrote: > --- > arch/arm/boards/zii-imx8mq-dev/board.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21

Re: [PATCH 1/4] ARM: nxp-imx8mq-evk: switch to SPDX license header

2019-12-20 Thread Sascha Hauer
On Thu, Dec 19, 2019 at 04:19:26PM +0100, Lucas Stach wrote: > Signed-off-by: Lucas Stach > --- > arch/arm/boards/nxp-imx8mq-evk/lowlevel.c | 11 +-- > 1 file changed, 1 insertion(+), 10 deletions(-) Applied, thanks Sascha -- Pengutronix e.K. |

Re: [PATCH 0/3] ARM64 early cache fixes

2019-12-20 Thread Sascha Hauer
On Thu, Dec 19, 2019 at 10:13:07AM +0100, Lucas Stach wrote: > This is a resend of the 2 ARM64 early cache fixes by Ahmad. They were > not applied at the time, as there was a report of them breaking Barebox > on i.MX8M. I finally had time to look into that, the first patch by > me cleans the stage,

Re: [PATCH v2] lds: align RO_DATA_SECTION members

2019-12-20 Thread Sascha Hauer
On Thu, Dec 19, 2019 at 10:01:01AM +0100, Lucas Stach wrote: > From: Lucas Stach > > When using the RO_DATA_SECTION macro, all the individual components > are put into the rodata section. As they now end up in the same > section there is no alignment enforced between them anymore. This > leads to

Re: [PATCH 1/4] clk: zynq: add QSPI reference clock

2019-12-20 Thread Sascha Hauer
On Wed, Dec 18, 2019 at 11:43:46PM +0100, Lucas Stach wrote: > Signed-off-by: Lucas Stach > --- > drivers/clk/zynq/clkc.c | 3 +++ > 1 file changed, 3 insertions(+) Applied, thanks Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21

Re: [PATCH] ARM: aarch64: Add support for passing initrd to Linux

2019-12-20 Thread Sascha Hauer
On Wed, Dec 18, 2019 at 07:08:41AM -0800, Andrey Smirnov wrote: > This adds basic support for passing intird to Linux > > Signed-off-by: Andrey Smirnov > --- > arch/arm/lib64/armlinux.c | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) Applied, thanks Sascha -- Pengutron

[PATCH] ARM: i.MX: Fix PBL size test

2019-12-20 Thread Sascha Hauer
MAX_PBL_MEMORY_SIZE needs the start symbol name without any suffix. Fix this to make the PBL size tests effective. Reported-by: Ulrich Ölmann Signed-off-by: Sascha Hauer --- images/Makefile.imx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/Makefile.imx b/images/

[PATCH 07/10] rpi: Enable USB Power domain during startup

2019-12-20 Thread Sascha Hauer
Enable the USB Power domain during startup. The power domain is abstracted as a regulator in barebox, but modelled as a power domain in the device tree. Until this is sorted out just enable the power domain or regulator in the board code. Signed-off-by: Sascha Hauer --- arch/arm/boards/raspberry

[PATCH 05/10] usb: Add usbroothubdes.h

2019-12-20 Thread Sascha Hauer
Taken from U-Boot, needed for the upcoming dwc2 driver. Signed-off-by: Sascha Hauer --- include/usb/usbroothubdes.h | 128 1 file changed, 128 insertions(+) create mode 100644 include/usb/usbroothubdes.h diff --git a/include/usb/usbroothubdes.h b/include/us

[PATCH 03/10] device: Introduce dma_offset

2019-12-20 Thread Sascha Hauer
For devices that do not have a 1:1 mapping between DMA and CPU we need a dma_offset. This adds dma_offset to struct device_d and starts honoring it in ARM dma_(un)map_single(). Also we add some comments to functions that would normally need a device argument to make the DMA <-> CPU translations dev

[PATCH 00/10] Add Raspberry Pi USB support

2019-12-20 Thread Sascha Hauer
This series adds USB host support for the Raspberry Pi. The dwc2 USB host driver is ported from U-Boot and tested on a Raspberry Pi 3b with the USB ethernet adapter found on that board. Finally we have ethernet support on the Raspberry Pi \o/ Sascha Sascha Hauer (10): usb: Make timeout unit cl

[PATCH 08/10] usb: Forward error code from usb_set_configuration

2019-12-20 Thread Sascha Hauer
Instead of returning -1 forward the error code and take the opportunity to print the error string. Signed-off-by: Sascha Hauer --- drivers/usb/core/usb.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index ad3bacf23

[PATCH 04/10] of: Read dma_offset from device tree

2019-12-20 Thread Sascha Hauer
This reads the dma-ranges property from the device tree and sets dma_offset in the devices accordingly. The code is mostly taken from the Kernel as of v5.5-rc1. of_dma_configure() is trimmed down to the cases we want to support currently. Signed-off-by: Sascha Hauer --- drivers/of/address.c | 1

[PATCH 02/10] of: Add of_bus_n_xxx_cells()

2019-12-20 Thread Sascha Hauer
Added straight from the Kernel. Signed-off-by: Sascha Hauer --- drivers/of/base.c | 46 -- include/of.h | 12 2 files changed, 40 insertions(+), 18 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 80ceeab13b..9ed

[PATCH 06/10] regulator: add function to get regulator by its name

2019-12-20 Thread Sascha Hauer
Useful for getting regulators that are not correctly associated with a device. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 30 +- include/regulator.h | 1 + 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/core.c b/

[PATCH 10/10] ARM: rpi_defconfig: Enable networking support

2019-12-20 Thread Sascha Hauer
Now that we have USB support for the Raspberry Pi enable USB and USB network support. Signed-off-by: Sascha Hauer --- arch/arm/configs/rpi_defconfig | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/configs/rpi_defconfig b/arch/arm/configs/rpi_defconfig index 0ae0c42b12

[PATCH 01/10] usb: Make timeout unit clear

2019-12-20 Thread Sascha Hauer
The usb_*_msg() functions take a timeout parameter. Make clear which unit is expected by adding a _ms suffix to the variable name. Signed-off-by: Sascha Hauer --- drivers/usb/core/usb.c | 8 include/usb/usb.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --gi