.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-|
-by: Bruno Knittel
Signed-off-by: Steffen Trumtrar
---
arch/arm/mach-socfpga/arria10-xload.c | 47 +--
1 file changed, 30 insertions(+), 17 deletions(-)
diff --git a/arch/arm/mach-socfpga/arria10-xload.c
b/arch/arm/mach-socfpga/arria10-xload.c
index 9d54a1de58..0e49452
her zero page handling afterwards, because kernel is
> booted after paging is disabled.
>
> Cc: Michael Tretter
> Reported-by: Steffen Trumtrar
> Signed-off-by: Ahmad Fatoum
> ---
> common/bootm.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
s_clk_rate otherwise stay at the
default 33.3MHz
Signed-off-by: Assmann Kai (BEG/MSD-NE2)
Signed-off-by: Steffen Trumtrar
---
Notes:
changes since v1:
- reword commit message
- add binding rst
- change type of ps_clk_frequency
.../devicetree/bindings/clocks/xlnx,ps7
n't correct in the first place (although it most likely still
worked depending on PMUFW and its configuration), we won't break anything
when we just set the flag to zero as the PMUFW v1.1 expects it.
TLDR: set fpga_load flags to zero to fix firmwareloading with newer
PMUFW versions.
Sig
On 2023-05-08 at 13:17 +02, Ahmad Fatoum wrote:
> On 08.05.23 09:24, Steffen Trumtrar wrote:
>> From: Kai Assman
>>
>> Currently the ps_clk_rate is locked to 33.3MHz. The devicetree
>> provides a property "ps-clock-frequency" that specifies this
From: Kai Assman
Currently the ps_clk_rate is locked to 33.3MHz. The devicetree
provides a property "ps-clock-frequency" that specifies this clock.
If the property is found, overwrite ps_clk_rate otherwise stay at the
default 33.3MHz
Signed-off-by: Kai Assmann
Signed-off-by: Steffe
Since commit 3e62b38ff641f263df2f6c9e3ebda3c7c62f310b
we use ENTRY_FUNCTION_WITHSTACK in the bringup barebox.
The patch should have removed the arm_setup_stack line
as it is already done in the ENTRY_FUNCTION_WITHSTACK macro.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles
The Cortex A9 on the Arria10 has multiple known errata.
Enable at least the currently supported ones in barebox.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/enclustra-aa1/lowlevel.c | 1 +
arch/arm/mach-socfpga/Makefile| 1 +
arch/arm/mach-socfpga/cpu_init.c | 12
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c
b/arch/arm/boards/reflex-achilles/lowlevel.c
index f5efb961a1..511b41fd01 100644
--- a/arch/arm/boards/reflex-achilles
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/enclustra-aa1/lowlevel.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boards/enclustra-aa1/lowlevel.c
b/arch/arm/boards/enclustra-aa1/lowlevel.c
index d819d9feae..b1a0f4876f 100644
--- a/arch/arm/boards/enclustra-aa1
Signed-off-by: Steffen Trumtrar
---
Notes:
v4:
- use ARRIA10_SYSMGR_ROM_INITSWLASTLD instead of magic value
- lowlevel: encase the define macros in braces
- lowlevel: add a default for pbl selection
- increase size of barebox fixed-partitions
v3:
- use
Instead of using a magic value in the board code, use the define from
arria10-system-manager.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/board.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boards/reflex-achilles/board.c
b/arch/arm
Use the newer function ENTRY_FUNCTION_WITHSTACK.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 14 +-
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c
b/arch/arm/boards/reflex-achilles
To optimize the image size, use compressed devicetrees.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 6 +++---
arch/arm/mach-socfpga/Kconfig | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boards/reflex-achilles
Macro definitions should be guarded with braces for safer use.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c
b/arch/arm/boards/reflex
Disable KALLSYMS because of image size.
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-arria10_defconfig
index a37bae6217..5ac2198d41 100644
This is actually unneccessary and is just here because of copy-pasta
from other lowlevel code.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c
b/arch/arm/boards
Signed-off-by: Steffen Trumtrar
---
scripts/socfpga_xml_to_config.sh | 8
1 file changed, 8 insertions(+)
diff --git a/scripts/socfpga_xml_to_config.sh b/scripts/socfpga_xml_to_config.sh
index 3bb0dd283b..1e6056cfb4 100755
--- a/scripts/socfpga_xml_to_config.sh
+++ b/scripts
d: partition@10 {
>> + label = "barebox1-xload";
>> +reg = <0x10 0x4>;
>> +};
>> +
>> +barebox2_xload: partition@14 {
>> +label = "barebox2-xload";
>> +reg = <0x14 0x4>;
>> +};
>> +
>> +barebox1: partition@20 {
>> +label = "barebox1";
>> +reg = <0x20 0x8>;
>> +};
>> +
>> +barebox2: partition@28 {
>> +label = "barebox2";
>> +reg = <0x28 0x8>;
>> +};
>
> It might be worth increasing the size to 1MiB. It's easy to make barebox
> bigger than 512KiB.
>
Sure.
Thanks,
Steffen
--
Pengutronix 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-|
From: Steffen Trumtrar
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/Makefile | 1 +
arch/arm/boards/enclustra-aa1/Makefile| 4 +
arch/arm/boards/enclustra-aa1/board.c | 47
arch/arm/boards/enclustra-aa1/lowlevel.c | 113
From: Steffen Trumtrar
To optimize the image size, use compressed devicetrees.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 6 +++---
arch/arm/mach-socfpga/Kconfig | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm
From: Steffen Trumtrar
Use the newer function ENTRY_FUNCTION_WITHSTACK.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 16 +---
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c
b/arch/arm
From: Steffen Trumtrar
Signed-off-by: Steffen Trumtrar
---
scripts/socfpga_xml_to_config.sh | 8
1 file changed, 8 insertions(+)
diff --git a/scripts/socfpga_xml_to_config.sh b/scripts/socfpga_xml_to_config.sh
index 3bb0dd283b..1e6056cfb4 100755
--- a/scripts/socfpga_xml_to_config.sh
From: Steffen Trumtrar
This is actually unneccessary and is just here because of copy-pasta
from other lowlevel code.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c
From: Steffen Trumtrar
Enable the new Enclustra AA1 in the defconfig for Arria10.
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
Hi!
Ahmad Fatoum writes:
> On 08.07.22 08:24, Steffen Trumtrar wrote:
>> From: Steffen Trumtrar
>>
>> Use the newer function ENTRY_FUNCTION_WITHSTACK.
>>
>> Signed-off-by: Steffen Trumtrar
>> ---
>> arch/arm/boards/reflex-achilles/lowlevel
From: Steffen Trumtrar
Add support for the Arria10-based Mercury+ AA1 module from Enclustra.
Signed-off-by: Steffen Trumtrar
---
Changes in v2:
- use __dtb_z
- use ENTRY_FUNCTION_WITHSTACK
- fold aa1_start() into now non-naked entry function
- remove arm_early_mmu_cache_invalidate
- fix
From: Steffen Trumtrar
Disable KALLSYMS because of image size.
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-arria10_defconfig
index
From: Steffen Trumtrar
This is actually unneccessary and is just here because of copy-pasta
from other lowlevel code.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c
From: Steffen Trumtrar
To optimize the image size, use compressed devicetrees.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 6 +++---
arch/arm/mach-socfpga/Kconfig | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm
From: Steffen Trumtrar
Use the newer function ENTRY_FUNCTION_WITHSTACK.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 15 ++-
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c
b/arch/arm
Signed-off-by: Steffen Trumtrar
---
scripts/socfpga_xml_to_config.sh | 8
1 file changed, 8 insertions(+)
diff --git a/scripts/socfpga_xml_to_config.sh b/scripts/socfpga_xml_to_config.sh
index 3bb0dd283b..1e6056cfb4 100755
--- a/scripts/socfpga_xml_to_config.sh
+++ b/scripts
Disable KALLSYMS because of image size.
Signed-off-by: Steffen Trumtrar
---
arch/arm/configs/socfpga-arria10_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/configs/socfpga-arria10_defconfig
b/arch/arm/configs/socfpga-arria10_defconfig
index a37bae6217
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/Makefile | 1 +
arch/arm/boards/enclustra-aa1/Makefile| 4 +
arch/arm/boards/enclustra-aa1/board.c | 47 +++
arch/arm/boards/enclustra-aa1/lowlevel.c | 121 ++
.../enclustra-aa1
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 of
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
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 in
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
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
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(+)
In case of an un-recoverable probe error, try the whole sequence again,
starting with the hard-reset of the core.
Signed-off-by: Steffen Trumtrar
---
No need to look at this patch. It is awesome. Better look at this nice
chocolate
When strobing the EATARST signal, the core will generate a hard-reset
instead of a soft-reset. Use this to have the core and ATA drive in a
better defined state.
Signed-off-by: Steffen Trumtrar
---
drivers/ata/sata_mv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/ata/sata_mv.c
The ARMADA-XP core supports the Gen2 speed.
Signed-off-by: Steffen Trumtrar
---
drivers/ata/sata_mv.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index b8d21525a7..dd326428f4 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata
>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
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: 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
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
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
---
.../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 Hauer
s_put
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 +
driv
exist, 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/fpg
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 a
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
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
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
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
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
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(-)
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
exist, 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/fpg
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
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 a
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
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(-)
s_put
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 +
driv
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
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
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
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
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
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 a
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
exist, 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/fpg
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: Steffe
s_put
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 +
in
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
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
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
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
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 via
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
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
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
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.
Sig
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
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
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
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
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
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 Hauer
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
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
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
101 - 200 of 700 matches
Mail list logo