Commit 030ac0fe authored by Federico Vaga's avatar Federico Vaga

Merge branch 'release/v1.4.12'

parents b5348bb5 d70eafc6
...@@ -2,6 +2,15 @@ ...@@ -2,6 +2,15 @@
Changelog Changelog
========= =========
[1.4.12] 2020-05-12
===================
Added
-----
- [hdl] metadata source-id automatic assignment
Changed
-----
- [sw] do not double remap memory
[1.4.11] 2020-05-04 [1.4.11] 2020-05-04
=================== ===================
......
files = ["spec_base_regs.vhd", "spec_base_wr.vhd"] files = [
"spec_base_regs.vhd",
"spec_base_wr.vhd",
"sourceid_spec_base_pkg.vhd",
]
try:
# Assume this module is in fact a git submodule of a main project that
# is in the same directory as general-cores...
exec(open("../../../" + "/general-cores/tools/gen_sourceid.py").read(),
None, {'project': 'spec_base'})
except Exception as e:
print("Error: cannot generate source id file")
raise
...@@ -36,6 +36,7 @@ use work.wr_spec_pkg.all; ...@@ -36,6 +36,7 @@ use work.wr_spec_pkg.all;
use work.buildinfo_pkg.all; use work.buildinfo_pkg.all;
use work.wr_fabric_pkg.all; use work.wr_fabric_pkg.all;
use work.streamers_pkg.all; use work.streamers_pkg.all;
use work.sourceid_spec_base_pkg;
library unisim; library unisim;
use unisim.vcomponents.all; use unisim.vcomponents.all;
...@@ -595,13 +596,22 @@ begin -- architecture top ...@@ -595,13 +596,22 @@ begin -- architecture top
metadata_data <= x"53504543"; metadata_data <= x"53504543";
when x"2" => when x"2" =>
-- Version -- Version
metadata_data <= x"01040000"; metadata_data <= x"01040012";
when x"3" => when x"3" =>
-- BOM -- BOM
metadata_data <= x"fffe0000"; metadata_data <= x"fffe0000";
when x"4" | x"5" | x"6" | x"7" => when x"4" =>
-- source id -- source id
metadata_data <= x"00000000"; metadata_data <= sourceid_spec_base_pkg.sourceid(127 downto 96);
when x"5" =>
-- source id
metadata_data <= sourceid_spec_base_pkg.sourceid(95 downto 64);
when x"6" =>
-- source id
metadata_data <= sourceid_spec_base_pkg.sourceid(63 downto 32);
when x"7" =>
-- source id
metadata_data <= sourceid_spec_base_pkg.sourceid(31 downto 0);
when x"8" => when x"8" =>
-- capability mask -- capability mask
metadata_data <= x"00000000"; metadata_data <= x"00000000";
......
...@@ -174,8 +174,6 @@ static void gn412x_gpio_int_cfg_enable(struct gn412x_gpio_dev *gn412x) ...@@ -174,8 +174,6 @@ static void gn412x_gpio_int_cfg_enable(struct gn412x_gpio_dev *gn412x)
/** /**
* Disable GPIO interrupts from a single configuration space * Disable GPIO interrupts from a single configuration space
* @gn412x gn412x device * @gn412x gn412x device
*
* Return: 0 on success, otherwise a negative error number
*/ */
static void gn412x_gpio_int_cfg_disable(struct gn412x_gpio_dev *gn412x) static void gn412x_gpio_int_cfg_disable(struct gn412x_gpio_dev *gn412x)
{ {
......
...@@ -132,17 +132,24 @@ static int spec_dbg_meta(struct seq_file *s, void *offset) ...@@ -132,17 +132,24 @@ static int spec_dbg_meta(struct seq_file *s, void *offset)
void *iomem; void *iomem;
uint32_t app_offset; uint32_t app_offset;
iomem = ioremap(r0->start, resource_size(r0)); if (!spec_gn412x->spec_fpga) {
iomem = ioremap(r0->start, resource_size(r0));
} else {
iomem = spec_gn412x->spec_fpga->fpga;
}
if (!iomem) { if (!iomem) {
dev_warn(&spec_gn412x->pdev->dev, "%s: Mapping failed\n", dev_warn(&spec_gn412x->pdev->dev, "%s: Mapping failed\n",
__func__); __func__);
return -ENOMEM; return -ENOMEM;
} }
app_offset = ioread32(iomem + 0x40); app_offset = ioread32(iomem + 0x40);
seq_printf_meta(s, "", iomem + SPEC_META_BASE); seq_printf_meta(s, "", iomem + SPEC_META_BASE);
seq_puts(s, "Application:\n"); seq_puts(s, "Application:\n");
seq_printf_meta(s, " ", iomem + app_offset); seq_printf_meta(s, " ", iomem + app_offset);
iounmap(iomem); if (!spec_gn412x->spec_fpga)
iounmap(iomem);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment