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
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
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
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
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
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.
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
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
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-
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
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-
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
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
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
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/mach-socfpga
)
| ^~~~
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/include/mach/arria10-reset-manager.h
index
-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..c0a57439af0d
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: Steffe
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
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
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 changed, 1
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-
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
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
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-
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
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
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 +370,7
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
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-|
___
bare
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(+)
diff
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
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
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 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
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
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
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
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
From: Steffen Trumtrar
Import the fpga bridge framework from linux v4.10-rc2.
Description from the initial commit adding this to linux:
21aeda950c5f84a8351b862816d832120b217a9b
fpga: add fpga bridge framework
This framework adds API functions for enabling/
disabling FPGA bridges
From: Steffen Trumtrar
Import the SoCFPGA bridges drivers from linux v4.10-rc2.
Description from the original commit:
e5f8efa5c8bf86c1fa698551d54db8f6aee221fd
ARM: socfpga: fpga bridge driver support
Supports Altera SOCFPGA bridges:
* fpga2sdram
* fpga2hps
* hps2fpga
From: Steffen Trumtrar
Instead of defining the fpga-mgr structure in the socfpga driver, import
the fpga-mgr.h file from linux v4.13.
Signed-off-by: Steffen Trumtrar
---
drivers/firmware/socfpga.c | 9 +---
include/firmware.h | 1 +
include/fpga-mgr.h | 102
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
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
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
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
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
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
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
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
From: Steffen Trumtrar
Add support for potentially defined FPGA-bridges in the overlay.
While at it also add support for loading the firmware directly via a
path instead of 'needing' an overlay for that.
The direct loading will be done with the existent firmwareload command.
Signed-off
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
Sascha Hauer writes:
> On Thu, Jan 21, 2021 at 12:29:55PM +0100, Steffen Trumtrar wrote:
>> From: Steffen Trumtrar
>>
>> Add support for potentially defined FPGA-bridges in the overlay.
>>
>> While at it also add support for loading the firmware directly
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
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 deletions(-)
diff --git
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 26a54f21dff0..1c9eeaec5491 100644
--- a/drivers/reset/core.c
+++ b/drivers/reset/core.c
Add support for potentially defined FPGA-bridges in the overlay.
While at it also add support for loading the firmware directly via a
path instead of 'needing' an overlay for that.
The direct loading will be done with the existent firmwareload command.
Signed-off-by: Steffen Trumtrar
, the driver will leave the bridge in its
current state.
Signed-off-by: Alan Tull
Signed-off-by: Matthew Gerlach
Signed-off-by: Dinh Nguyen
Signed-off-by: Greg Kroah-Hartman
Signed-off-by: Steffen Trumtrar
---
drivers/fpga/Kconfig | 8 +
drivers/fpga/Makefile
Instead of defining the fpga-mgr structure in the socfpga driver, import
the fpga-mgr.h file from linux v4.13.
Signed-off-by: Steffen Trumtrar
---
drivers/firmware/socfpga.c | 9 +---
include/firmware.h | 1 +
include/fpga-mgr.h | 102 +
3
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 Trumtrar
---
.../mach
Signed-off-by: Alan Tull
Signed-off-by: Steffen Trumtrar
---
drivers/Kconfig| 1 +
drivers/Makefile | 1 +
drivers/fpga/Kconfig | 22
drivers/fpga/Makefile | 6 +
drivers/fpga/fpga-bridge.c | 226 +
include
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/firmware/socfpga.c
index
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-off-by: Steffen Trumtrar
firmwareload go via the oftree route and load the
firmware that way.
Signed-off-by: Steffen Trumtrar
---
commands/firmwareload.c | 42 +++--
1 file changed, 36 insertions(+), 6 deletions(-)
diff --git a/commands/firmwareload.c b/commands/firmwareload.c
index
From: 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 23be25d85d09..e58fe50f7090 100644
, the driver will leave the bridge in its
current state.
Signed-off-by: Alan Tull
Signed-off-by: Matthew Gerlach
Signed-off-by: Dinh Nguyen
Signed-off-by: Greg Kroah-Hartman
Signed-off-by: Steffen Trumtrar
---
drivers/fpga/Kconfig | 8 +
drivers/fpga/Makefile
Signed-off-by: Alan Tull
Signed-off-by: Steffen Trumtrar
---
v2->v3: add fpga_bridges_put function to deallocate bridge list
---
drivers/Kconfig| 1 +
drivers/Makefile | 1 +
drivers/fpga/Kconfig | 22
drivers/fpga/Makefile | 6 +
drivers/f
Add support for potentially defined FPGA-bridges in the overlay.
While at it also add support for loading the firmware directly via a
path instead of 'needing' an overlay for that.
The direct loading will be done with the existent firmwareload command.
Signed-off-by: Steffen Trumtrar
---
v2
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 26a54f21dff0..1c9eeaec5491 100644
--- a/drivers/reset/core.c
+++ b/drivers/reset/core.c
Instead of defining the fpga-mgr structure in the socfpga driver, import
the fpga-mgr.h file from linux v4.13.
Signed-off-by: Steffen Trumtrar
---
drivers/firmware/socfpga.c | 9 +---
include/firmware.h | 1 +
include/fpga-mgr.h | 102 +
3
firmwareload go via the oftree route and load the
firmware that way.
Signed-off-by: Steffen Trumtrar
---
v2->v3 - remove unused arg 'o'
- use xstrdup()
---
commands/firmwareload.c | 39 +--
1 file changed, 33 insertions(+), 6 deletions(-)
diff --
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/firmware/socfpga.c
index
From: 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 23be25d85d09..e58fe50f7090 100644
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-off-by: 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 deletions(-)
diff --git
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 Trumtrar
---
.../mach
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
Steffen Trumtrar writes:
> diff --git a/include/of.h b/include/of.h
> index 645f429bdeed..3c922bdb1414 100644
> --- a/include/of.h
> +++ b/include/of.h
> +int of_firmware_load_overlay(struct device_node *overlay, const char *path);
> +#else
> +static inline int of_firmwa
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 Trumtrar
---
Notes
, the driver will leave the bridge in its
current state.
Signed-off-by: Alan Tull
Signed-off-by: Matthew Gerlach
Signed-off-by: Dinh Nguyen
Signed-off-by: Greg Kroah-Hartman
Signed-off-by: Steffen Trumtrar
---
drivers/fpga/Kconfig | 8 +
drivers/fpga/Makefile
Instead of defining the fpga-mgr structure in the socfpga driver, import
the fpga-mgr.h file from linux v4.13.
Signed-off-by: Steffen Trumtrar
---
drivers/firmware/socfpga.c | 9 +---
include/firmware.h | 1 +
include/fpga-mgr.h | 102 +
3
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-off-by: Steffen Trumtrar
Add support for potentially defined FPGA-bridges in the overlay.
While at it also add support for loading the firmware directly via a
path instead of 'needing' an overlay for that.
The direct loading will be done with the existent firmwareload command.
Signed-off-by: Steffen Trumtrar
---
v2
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/firmware/socfpga.c
index
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 deletions(-)
diff --git
Signed-off-by: Alan Tull
Signed-off-by: Steffen Trumtrar
---
v2->v3: add fpga_bridges_put function to deallocate bridge list
---
drivers/Kconfig| 1 +
drivers/Makefile | 1 +
drivers/fpga/Kconfig | 22
drivers/fpga/Makefile | 6 +
drivers/f
firmwareload go via the oftree route and load the
firmware that way.
Signed-off-by: Steffen Trumtrar
---
v2->v3 - remove unused arg 'o'
- use xstrdup()
---
commands/firmwareload.c | 39 +--
1 file changed, 33 insertions(+), 6 deletions(-)
diff --
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 26a54f21dff0..1c9eeaec5491 100644
--- a/drivers/reset/core.c
+++ b/drivers/reset/core.c
From: 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 23be25d85d09..e58fe50f7090 100644
having the SDK as an optional
argument and make the other input parameters location independent.
Signed-off-by: Steffen Trumtrar
---
Documentation/boards/socfpga.rst | 2 +-
scripts/socfpga_import_preloader | 88
2 files changed, 78 insertions(+), 12 deletions
This it (at least) necessary for i.MX7s or otherwise barebox will hang
when trying to access the registers of WDOG2/3/4.
Signed-off-by: Steffen Trumtrar
---
drivers/watchdog/imxwd.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/drivers/watchdog/imxwd.c b/drivers/watchdog
From: Steffen Trumtrar
The patch
0a47bce1b03fd236384e904dca005c0870ce8684
mci: imx-esdhc: Use common DMA helpers
converted the imx-esdhc driver to use the DMA helpers introduced with
60b608b2714472aa22862a20d04f267cbbac0863
mci: sdhci: Add DMA transfer helpers
The common DMA
Add support for systems with the ACPI Watchdog Action Table (wdat).
Based on Linux v5.15-rc1 drivers/watchdog/wdat_wdt.c
Signed-off-by: Steffen Trumtrar
---
This patch depends on
x86: : fix outl/outsl access size
https://lore.barebox.org/20220107063644.22595-1-a.fat...@pengutronix.de
>From linux v5.15-rc1.
Signed-off-by: Steffen Trumtrar
---
include/acpi.h | 72 ++
1 file changed, 72 insertions(+)
diff --git a/include/acpi.h b/include/acpi.h
index b8e73b35df..04f722da23 100644
--- a/include/acpi.h
+++ b/include/acp
From: Steffen Trumtrar
barebox port of the linux patch:
commit 1f71836f5d96e4c87fad16db86d324bee47e1d30
Author: Rasmus Villemoes
Date: Tue Jun 4 07:34:32 2019 +
net: dsa: mv88e6xxx: add support for mv88e6250
This adds support for the Marvell 88E6250. I've checked
From: Steffen Trumtrar
barebox port of the linux patch:
commit a528e5be6b5f8026eda029b03340dcfa23c70824
Author: Rasmus Villemoes
Date: Tue Jun 4 07:34:29 2019 +
net: dsa: mv88e6xxx: implement port_set_speed for mv88e6250
The data sheet also mentions the possibility
Copied from Linux v5.15
Signed-off-by: Steffen Trumtrar
---
drivers/ata/sata_mv.c | 36
1 file changed, 36 insertions(+)
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index c94ad2ca36..b8d21525a7 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers
From: Steffen Trumtrar
Hi!
The sata_mv driver in barebox only supports the ARMADA-XP and there are
not really that many users. Therefore only copy mv6-specific setup from
the kernel to the barebox driver.
We have some specific hardware combination of ARDAMA-XP and SATA drive
that fails
Clean up the alignment of the defines.
Signed-off-by: Steffen Trumtrar
---
drivers/ata/sata_mv.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 3b55c71d67..3f77e8f2e8 100644
--- a/drivers/ata/sata_mv.c
+++ b
SControl registers shouldn't be accessed when EDMA is enabled.
Also clear SError before any accesses. This register will show if
anything went wrong with the phy accesses.
Signed-off-by: Steffen Trumtrar
---
drivers/ata/sata_mv.c | 19 +++
1 file changed, 19 insertions(+)
diff
401 - 500 of 637 matches
Mail list logo