[PATCH 07/13] firmware: socfpga: change function prefixes

2021-01-21 Thread Steffen Trumtrar
From: Steffen Trumtrar Since there is now a fpgamgr framework in barebox, the function names are misleading. Change that to be SoCFPGA specific. Signed-off-by: Steffen Trumtrar --- drivers/firmware/socfpga.c | 58 +++--- 1 file changed, 29 insertions(+), 29

[PATCH 01/13] ARM: add fncpy.h from linux v4.6

2021-01-21 Thread Steffen Trumtrar
From: Steffen Trumtrar Description from the linux commit 5756e9dd0de6d5c307773f8f734c0684b3098fdd: ARM: 6640/1: Thumb-2: Symbol manipulation macros for function body copying In low-level board support code, there is sometimes a need to copy a function body to another location at

[PATCH 04/13] reset: add of_reset_control_get to header

2021-01-21 Thread Steffen Trumtrar
From: Steffen Trumtrar Signed-off-by: Steffen Trumtrar --- drivers/reset/core.c | 2 +- include/linux/reset.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/reset/core.c b/drivers/reset/core.c index 26a54f21df..1c9eeaec54 100644 --- a/drivers/reset/core.c +++ b

[PATCH 03/13] firmware: socfpga: set APPLYCFG after loading bitstream

2021-01-21 Thread Steffen Trumtrar
From: Steffen Trumtrar To make changes to the SDRAM controller effective, the APPLYCFG bit must be set after programming the bitstream to the FPGA. This has to be done without any SDRAM usage. Therefore copy the function to execute to the OCRAM and execute it from there. Signed-off-by: Steffen

[PATCH 11/13] commands: firmwareload: allow loading firmware from dt

2021-01-21 Thread Steffen Trumtrar
From: Steffen Trumtrar firmwareload can only load a bitstream into an FPGA without any knowledge of possible additional needs (e.g. FPGA bridges). These are defined in the fpga-region nodes in the devicetree. The fpga-region describes the layout of the FPGA and the bridges it needs en/disabled

[PATCH 12/13] drivers: firmware: socfpga: remove bridges shutdown

2021-01-21 Thread Steffen Trumtrar
From: Steffen Trumtrar The bridges are now handled via the bridges driver. There is no need to hardcode the memory writes anymore. Signed-off-by: Steffen Trumtrar --- drivers/firmware/socfpga.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/firmware/socfpga.c b/drivers

[PATCH 02/13] ARM: mmu: inherit pte flags from pmd

2021-01-21 Thread Steffen Trumtrar
From: Sascha Hauer When creating a 2nd level page table from a section inherit the flags from the section rather than assuming the section was mapped cached previously. This fixes creating a 2nd level pagetable when the section was mapped differently than we expected. Signed-off-by: Sascha Hauer

[PATCH 13/13] firmware: add support for compressed images

2021-01-21 Thread Steffen Trumtrar
From: Steffen Trumtrar At least bitstreams for FPGAs can consist of a lot of zeros depending on device utilization. These bitstreams can be compressed very effectively. Let the firmware code accept these images and decompress them before handing it to the firmware-manager in question. Signed

[PATCH 09/13] of: kconfig: of_overlay uses firmwaremgr_load_file

2021-01-21 Thread Steffen Trumtrar
As of_firmware.c uses the firmwaremgr_load_file function, it depends on FIRMWARE. Signed-off-by: Steffen Trumtrar --- drivers/of/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 23be25d85d..e58fe50f70 100644 --- a/drivers/of/Kconfig +++ b

[PATCH] imd: change disabled checksum tag info to debug

2021-01-12 Thread Steffen Trumtrar
From: Steffen Trumtrar When the checksum tag is disabled the CRC is most likely invalid. And if the checksum tag is disabled and the CRC is actually invalid the user doesn't care for it anyway. This information only confuses the user so make it a debug message. Signed-off-by: Steffen Tru

[PATCH 2/2] image-sparse: change chunk_data_sz to u64

2021-01-11 Thread Steffen Trumtrar
chunk_data_sz is set to the result of a __le32 * __le32 multiplication: chunk_data_sz = si->sparse.blk_sz * si->chunk.chunk_sz; This will overflow. Signed-off-by: Steffen Trumtrar --- lib/image-sparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib

[PATCH 1/2] image-sparse: change retlen to size_t

2021-01-11 Thread Steffen Trumtrar
retlen can potentially overflow. Also, write_full() in fastboot_handle_sparse() expects size_t anyway. Signed-off-by: Steffen Trumtrar --- common/fastboot.c | 2 +- include/image-sparse.h | 2 +- lib/image-sparse.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH 1/3] i.MX7: Add CCM definitions for UART3

2020-12-16 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- arch/arm/mach-imx/include/mach/imx7-ccm-regs.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/include/mach/imx7-ccm-regs.h b/arch/arm/mach-imx/include/mach/imx7-ccm-regs.h index de6eb1bbd10d..5c60794ca74f 100644 --- a/arch/arm/mach

[PATCH 3/3] eeprom: at24: add support for 24cs64

2020-12-16 Thread Steffen Trumtrar
The 24cs64 is a 64-Kbit eeprom with 32 byte write pages. Signed-off-by: Steffen Trumtrar --- drivers/eeprom/at24.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c index 568aa02a4c8c..8c04c5684b61 100644 --- a/drivers/eeprom/at24.c +++ b/drivers

[PATCH 2/3] net: mdio:gpio: fix typos in dev_dbg

2020-12-16 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- drivers/net/phy/mdio-gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c index affa31ae2c9b..80d2394f4b11 100644 --- a/drivers/net/phy/mdio-gpio.c +++ b/drivers/net/phy/mdio

[PATCH 4/4] imd: add buildsystem version to metadata

2020-09-23 Thread Steffen Trumtrar
To have information about the exact state of a barebox binary from userspace, add the buildsystem version to the IMD. Signed-off-by: Steffen Trumtrar --- common/imd-barebox.c | 1 + common/imd.c | 3 +++ include/image-metadata.h | 1 + 3 files changed, 5 insertions(+) diff

[PATCH 3/4] common: globalvar: add variable for buildsystem_version_string

2020-09-23 Thread Steffen Trumtrar
Now that the buildsystem version is available, make it accessible as a global variable for runtime usage. If the buildsystem version is not present (i.e. empty), don't add the variable at all. Signed-off-by: Steffen Trumtrar --- common/globalvar.c | 3 +++ 1 file changed, 3 insertions(+)

[PATCH 2/4] common: print buildsystem version in barebox banner

2020-09-23 Thread Steffen Trumtrar
When the barebox banner is enabled and printed during startup, also show information about the buildsystem version: the exact state of the barebox binary and its config. Signed-off-by: Steffen Trumtrar --- common/version.c | 6 ++ include/common.h | 1 + 2 files changed, 7 insertions

[PATCH 1/2] scripts: bareboximd: fix write_file error handling

2020-05-04 Thread Steffen Trumtrar
write will never return 0 on POSIX conformant systems. Remove this error path. Also, close the file on error. Signed-off-by: Steffen Trumtrar --- scripts/bareboximd.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/scripts/bareboximd.c b/scripts

[PATCH 2/2] common: imd: handle error in imd_write_crc32

2020-05-04 Thread Steffen Trumtrar
Don't just ignore the return value of write_file. Signed-off-by: Steffen Trumtrar --- common/imd.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/imd.c b/common/imd.c index 526308effa3c..5544a0131cc9 100644 --- a/common/imd.c +++ b/common/imd.c @@ -370,6 +

Re: [PATCH 1/2] scripts: imd: fix uninitialized variable read

2020-05-04 Thread Steffen Trumtrar
onix e.K.| Dipl.-Inform. Steffen Trumtrar | Steuerwalder Str. 21| https://www.pengutronix.de/| 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-| ___

[PATCH] fixup! imd: add support for checksum generation/verification

2020-02-07 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- CRC32 is now needed for imd, but was selected by accident. In situations where barebox is stripped down (e.g. socfpga-xload, where there is no environment, globalvars or command_support), barebox won't compile anymore. common/Kconfig | 1 + 1 file chang

[PATCH v4 2/3] imd: add support for checksum generation/verification

2020-01-27 Thread Steffen Trumtrar
Add a new imd type "checksum". This type consists of the CRC32 checksum of the whole barebox image minus the checksum itself. The checksum can be written to the imd field with the bareboximd host-tool. It can be verified with said tool or with "imd" on the target. Signed-off-

[PATCH v4 1/3] imd: replace magicvalue with sizeof(struct)

2020-01-27 Thread Steffen Trumtrar
Instead of using "8" as the size of an imd_header, use the sizeof operator. Signed-off-by: Steffen Trumtrar --- common/imd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/imd.c b/common/imd.c index 913a01de87bf..e0dab69644c0 100644 --- a/common/i

[PATCH v4 3/3] commands: bbu: add support for imd checksum

2020-01-27 Thread Steffen Trumtrar
Add support for verifying an image by use of the imd checksum. If the checksum that is saved in the image and the one that is calculated over the image differ, barebox_update aborts. Signed-off-by: Steffen Trumtrar --- common/bbu.c | 4 1 file changed, 4 insertions(+) diff --git a/common

[PATCH v3 2/3] imd: add support for checksum generation/verification

2020-01-20 Thread Steffen Trumtrar
Add a new imd type "checksum". This type consists of the CRC32 checksum of the whole barebox image minus the checksum itself. The checksum can be written to the imd field with the bareboximd host-tool. It can be verified with said tool or with "imd" on the target. Signed-off-

[PATCH v3 3/3] commands: bbu: add support for imd checksum

2020-01-20 Thread Steffen Trumtrar
Add support for verifying an image by use of the imd checksum. If the checksum that is saved in the image and the one that is calculated over the image differ, barebox_update aborts. Signed-off-by: Steffen Trumtrar --- common/bbu.c | 4 1 file changed, 4 insertions(+) diff --git a/common

[PATCH v3 1/3] imd: replace magicvalue with sizeof(struct)

2020-01-20 Thread Steffen Trumtrar
Instead of using "8" as the size of an imd_header, use the sizeof operator. Signed-off-by: Steffen Trumtrar --- common/imd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/imd.c b/common/imd.c index 913a01de87bf..e0dab69644c0 100644 --- a/common/i

[PATCH v2 3/4] imd: add support for checksum generation/verification

2019-12-09 Thread Steffen Trumtrar
Add a new imd type "checksum". This type consists of the CRC32 checksum of the whole barebox image minus the checksum itself. The checksum can be written to the imd field with the bareboximd host-tool. It can be verified with said tool or with "imd" on the target. Signed-off-

[PATCH v2 4/4] commands: bbu: add support for imd checksum

2019-12-09 Thread Steffen Trumtrar
Add support for verifying an image by use of the imd checksum. If the checksum that is saved in the image and the one that is calculated over the image differ, barebox_update aborts. Signed-off-by: Steffen Trumtrar --- common/bbu.c | 4 1 file changed, 4 insertions(+) diff --git a/common

[PATCH v2 1/4] imd: replace magicvalue with sizeof(struct)

2019-12-09 Thread Steffen Trumtrar
Instead of using "8" as the size of an imd_header, use the sizeof operator. Signed-off-by: Steffen Trumtrar --- common/imd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/imd.c b/common/imd.c index 913a01de87bf..e0dab69644c0 100644 --- a/common/i

[PATCH v2 2/4] image-metadata: add flags field to imd_header

2019-12-09 Thread Steffen Trumtrar
To allow marking an imd tag with properties, add a flags field to the imd_header. Signed-off-by: Steffen Trumtrar --- include/image-metadata.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/image-metadata.h b/include/image-metadata.h index 5904d95acd37..ca73e6cf6ec6

[PATCH 1/2] imd: add support for checksum generation/verification

2019-12-03 Thread Steffen Trumtrar
Add a new imd type "checksum". This type consists of the CRC32 checksum of the whole barebox image minus the checksum itself. The checksum can be written to the imd field with the bareboximd host-tool. It can be verified with said tool or with "imd" on the target. Signed-off-

[PATCH 2/2] commands: bbu: add support for imd checksum

2019-12-03 Thread Steffen Trumtrar
Add support for verifying an image by use of the imd checksum. If the checksum that is saved in the image and the one that is calculated over the image differ, barebox_update aborts. Signed-off-by: Steffen Trumtrar --- commands/barebox-update.c | 9 +++-- common/bbu.c | 6

[PATCH 1/3] net: designware: socfpga: fix phy setup for Arria10

2019-10-17 Thread Steffen Trumtrar
binding: "altr,socfpga-stmmac-a10-s10". Signed-off-by: Dinh Nguyen Signed-off-by: David S. Miller The new DTS binding is already part of v2019.10.0 and the driver doesn't probe on Arria10 without the new binding introduced in this patch. Signed-off-by: S

[PATCH 3/3] ARM: socfpga: defconfig: enable state_drv

2019-10-17 Thread Steffen Trumtrar
The Arria10 DTS uses the state framework. Enable the driver so it gets probed. Signed-off-by: Steffen Trumtrar --- arch/arm/configs/socfpga-arria10_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/socfpga-arria10_defconfig b/arch/arm/configs/socfpga

[PATCH 2/3] ARM: socfpga: cyclone5-system-manager.h: remove defines

2019-10-17 Thread Steffen Trumtrar
These defines are common for arria10 and cyclone5. Instead of having them here, they are moved to drivers/net/designware_socfpga.c. Signed-off-by: Steffen Trumtrar --- .../include/mach/cyclone5-system-manager.h| 11 --- 1 file changed, 11 deletions(-) diff --git a/arch/arm

[PATCH 2/3] ARM: socfpga: clock-manager: fix Wmissing-prototypes

2019-10-16 Thread Steffen Trumtrar
~~ Signed-off-by: Steffen Trumtrar --- arch/arm/mach-socfpga/include/mach/arria10-clock-manager.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-socfpga/include/mach/arria10-clock-manager.h b/arch/arm/mach-socfpga/include/mach/arria10-clock-manager.h index ee2b9b3c5ec1..c0

[PATCH 3/3] ARM: socfpga: arria10-xload: fix Wmissing-prototypes

2019-10-16 Thread Steffen Trumtrar
Fix the warning: arch/arm/mach-socfpga/arria10-xload.c:17:5: warning: no previous prototype for 'a10_update_bits' [-Wmissing-prototypes] 17 | int a10_update_bits(unsigned int reg, unsigned int mask, | ^~~ Signed-off-by: Steffen Trumtrar --- arch/arm/ma

[PATCH 1/3] ARM: socfpga: reset-manager: fix Wmissing-prototypes

2019-10-16 Thread Steffen Trumtrar
als_q4(uint32_t *mask0, uint32_t *mask1) | ^~~~~~~~ Signed-off-by: Steffen Trumtrar --- arch/arm/mach-socfpga/include/mach/arria10-reset-manager.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-socfpga/include/mach/arria10-reset-manager.h b/arch/arm/mach-socfpga/in

[PATCH 2/2] ARM: Layerscape: ls1046a: enable GPIOs

2019-09-17 Thread Steffen Trumtrar
Enable GPIOs on LS1046a. Signed-off-by: Steffen Trumtrar --- arch/arm/dts/fsl-ls1046a-rdb.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/fsl-ls1046a-rdb.dts b/arch/arm/dts/fsl-ls1046a-rdb.dts index e16948bc8a51..e3ae75e42dd5 100644 --- a/arch/arm/dts/fsl

[PATCH 1/2] gpio: add driver for MPC8xxx ip core

2019-09-17 Thread Steffen Trumtrar
Import GPIO-driver for MPC512x/8349/8572/8610/QorIQ and compatible from Linux v5.2. Signed-off-by: Steffen Trumtrar --- drivers/gpio/Kconfig| 8 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mpc8xxx.c | 122 3 files changed, 131

[PATCH 4/6] usb: dwc3: add support for gadget mode

2019-09-16 Thread Steffen Trumtrar
Expand the DWC3 usb core with gadget support. Patches imported and adopted from Linux v5.2. Signed-off-by: Steffen Trumtrar --- drivers/usb/dwc3/Kconfig | 29 +- drivers/usb/dwc3/Makefile |7 +- drivers/usb/dwc3/core.c | 450 - drivers/usb/dwc3/core.h

[PATCH 6/6] ARM: Layerscape: LS1046a: configure USB ports

2019-09-16 Thread Steffen Trumtrar
The LS1046a has three USB ports: - 2 USB Host ports - 1 USB Device port Signed-off-by: Steffen Trumtrar --- arch/arm/dts/fsl-ls1046a-rdb.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/fsl-ls1046a-rdb.dts b/arch/arm/dts/fsl-ls1046a-rdb.dts index

[PATCH 3/6] usb/ch9.h: add USB 3.1 isoc endpoint define

2019-09-16 Thread Steffen Trumtrar
Add a new define for USB 3.1 endpoints Signed-off-by: Steffen Trumtrar --- include/usb/ch9.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/usb/ch9.h b/include/usb/ch9.h index 89d83e0d09be..85f3e64cac2b 100644 --- a/include/usb/ch9.h +++ b/include/usb/ch9.h @@ -234,6 +234,8

[PATCH 5/6] usb: gadget: composite: conditionally dequeue setup requests

2019-09-16 Thread Steffen Trumtrar
From: Sascha Hauer This is an adoption of Kernel commit a7c12eaf2 ("usb: gadget: composite: conditionally dequeue os_desc and setup requests"). Basically we only want to dequeue ep0 requests when they are actually queued. Drivers like dwc3 warn when unqueued requests are being tried to unqueued.

[PATCH 2/6] usb: gadget: add usb_gadget_udc_reset function

2019-09-16 Thread Steffen Trumtrar
Add a function to notify the udc core, that a bus reset occured. Signed-off-by: Steffen Trumtrar --- drivers/usb/gadget/udc-core.c | 15 +++ include/usb/gadget.h | 4 2 files changed, 19 insertions(+) diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget

[PATCH 1/6] barebox-wrapper: add IRQ_WAKE_THREAD

2019-09-16 Thread Steffen Trumtrar
Add a new irqreturn_t IRQ_WAKE_THREAD. Signed-off-by: Steffen Trumtrar --- include/linux/barebox-wrapper.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h index e998932d1201..fee02d052d94 100644 --- a/include/linux/barebox

[PATCH 3/4] ARM: Arria10: achilles: add named partitions

2019-08-19 Thread Steffen Trumtrar
Add labels for the barebox1/2 and bitstream1/2 partitions. Signed-off-by: Steffen Trumtrar --- arch/arm/dts/socfpga_arria10_achilles.dts | 32 +++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts b/arch/arm/dts

[PATCH 4/4] ARM: achilles: add bbu handler

2019-08-19 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- arch/arm/boards/reflex-achilles/board.c | 26 + 1 file changed, 26 insertions(+) diff --git a/arch/arm/boards/reflex-achilles/board.c b/arch/arm/boards/reflex-achilles/board.c index 29011ba5784e..2b8186e19f40 100644 --- a/arch/arm

[PATCH 2/4] ARM: Arria10: achilles: fix offsets in node names

2019-08-19 Thread Steffen Trumtrar
The node names do not match the actual reg values. Fix this up. Signed-off-by: Steffen Trumtrar --- arch/arm/dts/socfpga_arria10_achilles.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts b/arch/arm/dts

[PATCH 1/4] ARM: socfpga: fix xload on arria10

2019-08-19 Thread Steffen Trumtrar
evaluated. Signed-off-by: Steffen Trumtrar --- arch/arm/mach-socfpga/arria10-xload.c | 65 ++- images/Makefile.socfpga | 2 +- 2 files changed, 14 insertions(+), 53 deletions(-) diff --git a/arch/arm/mach-socfpga/arria10-xload.c b/arch/arm/mach-socfpga/arria10

[PATCH] scripts: socfgpa_import_preloader: simplify procedure

2019-07-02 Thread Steffen Trumtrar
Instead of jumping through hoops using the bsp-editor gui, just use the underlying python script for importing. --- Documentation/boards/socfpga.rst | 9 + scripts/socfpga_import_preloader | 11 --- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Documentation/boar

Re: [PATCH 02/10] spi: Generalize SPI "master" to "controller"

2019-05-16 Thread Steffen Trumtrar
. | Steffen Trumtrar | Industrial Linux Solutions| http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany| Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-

[PATCH] commands: spi: fix NULL pointer dereference

2019-05-16 Thread Steffen Trumtrar
ability. Assign it, so that spi drivers that are still using "spi->master" can be used. Signed-off-by: Steffen Trumtrar --- commands/spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/spi.c b/commands/spi.c index 55a0e255af17..d35aa1cd81c9 100644 --- a/commands/sp

[PATCH 10/10] mtd: devices: m25p80: use the spi_mem_xx() API

2019-05-03 Thread Steffen Trumtrar
ace is not implemented by the controller. Signed-off-by: Boris Brezillon Reviewed-by: Frieder Schrempf Tested-by: Frieder Schrempf Signed-off-by: Mark Brown Signed-off-by: Steffen Trumtrar --- drivers/mtd/devices/Kconfig | 1 +- drivers/mtd/devices/m25p80.c |

[PATCH 05/10] mtd: spi-nor: remove unused write_enable from write_reg

2019-05-03 Thread Steffen Trumtrar
The 'write_enable' argument is unused and unneeded, so remove it from the API. Signed-off-by: Jagan Teki Cc: David Woodhouse Cc: Han Xu [Brian: fixed for nxp-spifi.c] Signed-off-by: Brian Norris Signed-off-by: Steffen Trumtrar --- drivers/mtd/devi

[PATCH 07/10] spi: add driver for Freescale QSPI controller

2019-05-03 Thread Steffen Trumtrar
Reviewed-by: Yogesh Gaur Tested-by: Yogesh Gaur Tested-by: Han Xu Reviewed-by: Boris Brezillon Signed-off-by: Mark Brown Signed-off-by: Steffen Trumtrar --- drivers/spi/Kconfig| 11 +- drivers/spi/Makefile | 1 +- drivers/spi/spi-fsl-qs

[PATCH 06/10] mtd: spi-nor: remove unused read_xfer/write_xfer hooks

2019-05-03 Thread Steffen Trumtrar
struct spi_nor_xfer_cfg and read_xfer/write_xfer hooks were never used by any driver. Do some cleanup by removing them. Signed-off-by: Cyrille Pitchen Reviewed-by: Marek Vasut Signed-off-by: Brian Norris Signed-off-by: Steffen Trumtrar --- include/linux/mtd/spi-nor.h

[PATCH 04/10] spi: Extend the core to ease integration of SPI memory controllers

2019-05-03 Thread Steffen Trumtrar
attempt at defining a SPI memory interface which works for all kinds of SPI memories (NORs, NANDs, SRAMs). Signed-off-by: Boris Brezillon Reviewed-by: Frieder Schrempf Tested-by: Frieder Schrempf Signed-off-by: Mark Brown Signed-off-by: Steffen Trumtrar --- drivers

[PATCH 02/10] spi: Generalize SPI "master" to "controller"

2019-05-03 Thread Steffen Trumtrar
ield spi_device.controller is added, but spi_device.master is retained for compatibility (both are always initialized by spi_alloc_device()), - spi_flash_read() is used by SPI masters only. Signed-off-by: Geert Uytterhoeven Signed-off-by: Mark Brown Signed-off-b

[PATCH 08/10] mtd: spi-nor: introduce SPI 1-2-2 and SPI 1-4-4 protocols

2019-05-03 Thread Steffen Trumtrar
ry and controller hence selecting the relevant settings for (Fast) Read and Page Program operations. Signed-off-by: Cyrille Pitchen Reviewed-by: Marek Vasut Signed-off-by: Steffen Trumtrar --- drivers/mtd/devices/m25p80.c | 13 +- drivers/mtd/spi-nor/cadence-q

[PATCH 09/10] mtd: spi-nor: provide default erase_sector implementation

2019-05-03 Thread Steffen Trumtrar
drivers perform sector erase by duplicating their write_reg() command. Let's not require that the driver fill this out, and provide a default instead. Tested on m25p80.c and Medatek's MT8173 SPI NOR flash driver. Signed-off-by: Brian Norris Signed-off-by: Steffe

[PATCH 03/10] spi: Import more spi mode defines from Linux

2019-05-03 Thread Steffen Trumtrar
Sync with Linux v5.1-rc1. Define more spi mode flags. Signed-off-by: Steffen Trumtrar --- include/spi/spi.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/spi/spi.h b/include/spi/spi.h index 8c6927da4107..6eeaf254c713 100644 --- a/include/spi/spi.h +++ b/include/spi

[PATCH 00/10] spi: spi-mem and fsl-qspi support

2019-05-03 Thread Steffen Trumtrar
, is ported from linux; the older driver was removed from mainline linux and wasn't even working correctly. Finally drivers/mtd/devices/m25p80.c is simplified by using spi-mem. The series was tested with the Layerscape LS1046a and SocFPGA Cyclone5 SoCs. Best regards, Steffen Steffen Trumtra

[PATCH 01/10] mtd: spi-nor: cadence: add cqspi_set_protocol

2019-05-03 Thread Steffen Trumtrar
. Signed-off-by: Steffen Trumtrar --- drivers/mtd/spi-nor/cadence-quadspi.c | 176 +-- 1 file changed, 113 insertions(+), 63 deletions(-) diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor/cadence-quadspi.c index ed5377bd4ba0..4142f0de7dcb 100644

[PATCH 4/4] net: designware: return error value in mii_write

2018-11-29 Thread Steffen Trumtrar
Do not drop the error value and use it as a return value instead. Signed-off-by: Steffen Trumtrar --- drivers/net/designware.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 104258e21c51..cb7c4a13719c 100644 --- a

[PATCH 2/4] net: designware: refactor wait loop to own function

2018-11-29 Thread Steffen Trumtrar
The polling of the MII_BUSY bit is used three times. Instead of having the same code in all three locations, move it to an inline function. Signed-off-by: Steffen Trumtrar --- drivers/net/designware.c | 45 ++-- 1 file changed, 29 insertions(+), 16 deletions

[PATCH 3/4] net: designware: reorder execution of write and busy check

2018-11-29 Thread Steffen Trumtrar
Instead of first writing to the MII register and then checking if the MII operation is finished. Check if there is an ongoing operation and then write to the MII register. Signed-off-by: Steffen Trumtrar --- drivers/net/designware.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 1/4] net: designware: socfpga: return error value

2018-11-29 Thread Steffen Trumtrar
Instead of silently dropping the return value of socfpga_dwc_set_phy_mode, use it as the return value of the function, instead. Signed-off-by: Steffen Trumtrar --- drivers/net/designware_socfpga.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net

[PATCH 08/15] scripts: link-barebox: fix bash-ism

2018-11-29 Thread Steffen Trumtrar
* [vmlinux] Error 1 See the following document for behavior of posix shell trap instruction: http://pubs.opengroup.org/onlinepubs/95399/utilities/trap.html Cc: Ingo Molnar Signed-off-by: Sylvain BERTRAND Signed-off-by: Michal Marek Signed-off-by: Steffen Trumtrar --- sc

[PATCH 14/15] scripts: link-barebox: thin archives use P option to ar

2018-11-29 Thread Steffen Trumtrar
Piggin Signed-off-by: Masahiro Yamada Signed-off-by: Steffen Trumtrar --- scripts/link-barebox.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/link-barebox.sh b/scripts/link-barebox.sh index 9e2bc2afd04b..74516f65b74f 100755 --- a/scripts/link-barebox.sh

[PATCH 06/15] Makefile: improve line wrapping

2018-11-29 Thread Steffen Trumtrar
: Jiri Kosina Signed-off-by: Steffen Trumtrar --- Makefile | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ee6c8fc82d5a..ca9ee925cbef 100644 --- a/Makefile +++ b/Makefile @@ -331,8 +331,10 @@ export LDFLAGS_barebox # Files to ignore in

[PATCH 09/15] scripts: link-barebox: force error on kallsyms failure

2018-11-29 Thread Steffen Trumtrar
: Ard Biesheuvel Signed-off-by: Michal Marek Signed-off-by: Steffen Trumtrar --- scripts/link-barebox.sh | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/link-barebox.sh b/scripts/link-barebox.sh index bff2363a19d5..20375792a7f7 100755 --- a/scripts/link

[PATCH 12/15] scripts: link-barebox: minor improvement for thin archives build

2018-11-29 Thread Steffen Trumtrar
practice it seems like it doesn't matter because the archive symbol table does not change, but it is more logical to create the final archive as the last step. Signed-off-by: Nicholas Piggin Signed-off-by: Michal Marek Signed-off-by: Steffen Trumtrar --- scripts/link-bareb

[PATCH 02/15] Makefile: Correctly deal with make options which contain an "s"

2018-11-29 Thread Steffen Trumtrar
: Michal Marek Signed-off-by: Steffen Trumtrar --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dedb16d60069..cddff1267972 100644 --- a/Makefile +++ b/Makefile @@ -252,7 +252,7 @@ endif # If the user is running make -s (silent mode), s

[PATCH 01/15] Makefile: replace LINUXINCLUDE with BAREBOXINCLUDE

2018-11-29 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 10e1b74a6d60..dedb16d60069 100644 --- a/Makefile +++ b/Makefile @@ -295,15 +295,15 @@ LDFLAGS_MODULE = -T common/module.lds # even be read-only

[PATCH 07/15] Makefile: link of barebox moved to script

2018-11-29 Thread Steffen Trumtrar
-off-by: Michal Marek Signed-off-by: Steffen Trumtrar --- Makefile| 187 - scripts/link-barebox.sh | 223 2 files changed, 242 insertions(+), 168 deletions(-) create mode 100755 scripts/link-barebox.sh di

[PATCH 11/15] scripts: link-barebox: kallsyms allow 3-pass generation

2018-11-29 Thread Steffen Trumtrar
lsyms near the end of the image. The former is undesirable for debugging/tracing, and the latter is a more significant change that requires more testing and review. Signed-off-by: Nicholas Piggin Signed-off-by: Michal Marek Signed-off-by: Steffen Trumtrar --- scripts/link-bareb

[PATCH 13/15] scripts: link-barebox: close thin archives --whole-archives option

2018-11-29 Thread Steffen Trumtrar
, and they get duplicate symbols when they are brought under the --whole-archives option. This matches more closely with the incremental final link. Signed-off-by: Nicholas Piggin Signed-off-by: Masahiro Yamada Signed-off-by: Steffen Trumtrar --- scripts/link-barebox.sh | 2 +- 1

[PATCH 15/15] ARM: Kconfig: select THIN_ARCHIVES for ARM

2018-11-29 Thread Steffen Trumtrar
Use thin archives for all ARM platforms. Signed-off-by: Steffen Trumtrar --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 3b486f7b8bb8..d66d5e909ff0 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -4,6 +4,7 @@ config ARM

[PATCH 10/15] scripts: link-barebox: allow architectures to use thin archives instead of ld -r

2018-11-29 Thread Steffen Trumtrar
26.33s sys 4.10s 3.94s Signed-off-by: Steffen Trumtrar --- Makefile| 1 + common/Kconfig | 6 ++ scripts/Makefile.build | 30 -- scripts/link-barebox.sh | 14 +- 4 files changed, 44 insertions(+), 7 deleti

[PATCH 03/15] scripts/Kbuild.include: Fix portability problem of "echo -e"

2018-11-29 Thread Steffen Trumtrar
on another Unix operating system is quite a rare use case. Signed-off-by: Bernhard Walle Andreas Bießmann Signed-off-by: Michal Marek Signed-off-by: Steffen Trumtrar --- scripts/Kbuild.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Kbuild.inc

[PATCH 05/15] debug: Add CONFIG_DEBUG_READABLE_ASM

2018-11-29 Thread Steffen Trumtrar
partial functions. This is mainly to keep kernel hackers sane. Signed-off-by: Andi Kleen Link: http://lkml.kernel.org/r/1332960678-11879-2-git-send-email-a...@firstfloor.org Signed-off-by: H. Peter Anvin Signed-off-by: Steffen Trumtrar --- Makefile | 11

[PATCH 00/15] Makefile: sync with linux v4.13 and add thin archives support

2018-11-29 Thread Steffen Trumtrar
reaks anything for your hardware or not. Steffen Trumtrar (15): Makefile: replace LINUXINCLUDE with BAREBOXINCLUDE Makefile: Correctly deal with make options which contain an "s" scripts/Kbuild.include: Fix portability problem of "echo -e" scripts/Kbuild.include: rep

[PATCH 04/15] scripts/Kbuild.include: replace KBUILD_CPPFLAGS with CPPFLAGS

2018-11-29 Thread Steffen Trumtrar
The barebox Makefiles do not use KBUILD_CPPFLAGS but CPPFLAGS as variable name. Signed-off-by: Steffen Trumtrar --- scripts/Kbuild.include | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index e62bd35692d0..0cb3a70a6a42

[PATCH] mtd: nand: denali: quiet down driver

2018-11-26 Thread Steffen Trumtrar
Instead of always printing the timing registers, make it a debug information only. Signed-off-by: Steffen Trumtrar --- drivers/mtd/nand/nand_denali.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/nand_denali.c b/drivers/mtd/nand/nand_denali.c index

Re: [PATCH] ARM: socfpga: generate smaller images when multiple boards are selected

2018-11-19 Thread Steffen Trumtrar
scard unused functions. Signed-off-by: Sascha Hauer \o/ Tested-by: Steffen Trumtrar Thanks, Steffen -- Pengutronix e.K. | Steffen Trumtrar | Industrial Linux Solutions| http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany| Phone:

[PATCH 1/2] ARM: socfpga: update defconfig

2018-11-15 Thread Steffen Trumtrar
Select some more common drivers in the defconfig. Signed-off-by: Steffen Trumtrar --- arch/arm/configs/socfpga_defconfig | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/socfpga_defconfig b/arch/arm/configs/socfpga_defconfig index 3a50bae8f2dc

[PATCH 2/2] ARM: socfpga: select GPIOLIB for non-xload

2018-11-15 Thread Steffen Trumtrar
SoCFPGA has GPIOs. Select it for the normal bootloader. For the xload barebox, do not select it to not waste space. Signed-off-by: Steffen Trumtrar --- arch/arm/mach-socfpga/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig

[PATCH 1/5] ARM: socfpga: add lowlevel header with common code

2018-11-02 Thread Steffen Trumtrar
Apart from the RAM size, all cyclone5-based Socfpga boards use the same lowlevel code. Instead of duplicating it for every board, move it to mach-socfpga and provide a macro to use it in the boardspecific code. Signed-off-by: Steffen Trumtrar --- arch/arm/mach-socfpga/include/mach/lowlevel.h

[PATCH 5/5] ARM: socfpga: socrates: convert to lowlevel helpers

2018-11-02 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- arch/arm/boards/ebv-socrates/lowlevel.c | 71 ++--- 1 file changed, 4 insertions(+), 67 deletions(-) diff --git a/arch/arm/boards/ebv-socrates/lowlevel.c b/arch/arm/boards/ebv-socrates/lowlevel.c index ef9f4535f6e9..3f12ae806fc8 100644

[PATCH 3/5] ARM: socfgpa: de0-nano-soc: convert to lowlevel helpers

2018-11-02 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- .../boards/terasic-de0-nano-soc/lowlevel.c| 69 +-- 1 file changed, 3 insertions(+), 66 deletions(-) diff --git a/arch/arm/boards/terasic-de0-nano-soc/lowlevel.c b/arch/arm/boards/terasic-de0-nano-soc/lowlevel.c index dfb8271724bc

[PATCH 4/5] ARM: socfpga: socdk: convert to lowlevel helpers

2018-11-02 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- arch/arm/boards/altera-socdk/lowlevel.c | 69 ++--- 1 file changed, 3 insertions(+), 66 deletions(-) diff --git a/arch/arm/boards/altera-socdk/lowlevel.c b/arch/arm/boards/altera-socdk/lowlevel.c index 08e70a0fc659..822c3d8ee60d 100644

[PATCH 2/5] ARM: socfpga: sockit: convert to lowlevel helper

2018-11-02 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- arch/arm/boards/terasic-sockit/lowlevel.c | 71 ++- 1 file changed, 4 insertions(+), 67 deletions(-) diff --git a/arch/arm/boards/terasic-sockit/lowlevel.c b/arch/arm/boards/terasic-sockit/lowlevel.c index 05b7d800a244..1dd7940aebd9

[PATCH 3/6] ARM: socfpga: achilles: move partitions to free disk space

2018-09-28 Thread Steffen Trumtrar
From: Enrico Jorns Prior to this, environment and state was placed inside the redundant barbeox copies. Signed-off-by: Enrico Jorns --- arch/arm/dts/socfpga_arria10_achilles.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts b

[PATCH 6/6] ARM: dts: socfpga: achilles: enable second ethernet port

2018-09-28 Thread Steffen Trumtrar
The Reflex Achilles has 2 ethernet ports. Enable the second one, too. Signed-off-by: Steffen Trumtrar --- arch/arm/dts/socfpga_arria10_achilles.dts | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts b/arch/arm/dts

[PATCH 5/6] ARM: socfpga: achilles: let bootchooser boot from system0 initially

2018-09-28 Thread Steffen Trumtrar
From: Enrico Jorns Signed-off-by: Enrico Jorns --- arch/arm/dts/socfpga_arria10_achilles.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts b/arch/arm/dts/socfpga_arria10_achilles.dts index abf2a7d9f15b..908e929d9edf 100644 --- a/a

[PATCH 1/6] dts: achilles: add state for bootchooser

2018-09-28 Thread Steffen Trumtrar
From: Enrico Jorns Signed-off-by: Enrico Jorns --- arch/arm/dts/socfpga_arria10_achilles.dts | 90 +++ 1 file changed, 90 insertions(+) diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts b/arch/arm/dts/socfpga_arria10_achilles.dts index c03982ef5672..fc75afc79516 10064

[PATCH 4/6] ARM: socfpga: achilles: bitstream will not exceed 32M

2018-09-28 Thread Steffen Trumtrar
From: Enrico Jorns Thus we decrease offsets to save space Signed-off-by: Enrico Jorns --- arch/arm/boards/reflex-achilles/lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c b/arch/arm/boards/reflex-achilles/lowlevel.c inde

<    1   2   3   4   5   6   7   8   >