Skip to content

Commit

Permalink
hw/arm/xlnx-zynqmp: Add an unimplemented SERDES area
Browse files Browse the repository at this point in the history
Add an unimplemented SERDES (Serializer/Deserializer) area.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Francisco Iglesias <francisco.iglesias@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 20220316164645.2303510-2-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
edgarigl authored and pm215 committed Mar 18, 2022
1 parent 654abaa commit c28d4b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions hw/arm/xlnx-zynqmp.c
Expand Up @@ -52,6 +52,10 @@
#define QSPI_DMA_ADDR 0xff0f0800
#define NUM_QSPI_IRQ_LINES 2

/* Serializer/Deserializer. */
#define SERDES_ADDR 0xfd400000
#define SERDES_SIZE 0x20000

#define DP_ADDR 0xfd4a0000
#define DP_IRQ 113

Expand Down Expand Up @@ -284,6 +288,7 @@ static void xlnx_zynqmp_create_unimp_mmio(XlnxZynqMPState *s)
hwaddr size;
} unimp_areas[ARRAY_SIZE(s->mr_unimp)] = {
{ .name = "apu", APU_ADDR, APU_SIZE },
{ .name = "serdes", SERDES_ADDR, SERDES_SIZE },
};
unsigned int nr;

Expand Down
2 changes: 1 addition & 1 deletion include/hw/arm/xlnx-zynqmp.h
Expand Up @@ -85,7 +85,7 @@ OBJECT_DECLARE_SIMPLE_TYPE(XlnxZynqMPState, XLNX_ZYNQMP)
/*
* Unimplemented mmio regions needed to boot some images.
*/
#define XLNX_ZYNQMP_NUM_UNIMP_AREAS 1
#define XLNX_ZYNQMP_NUM_UNIMP_AREAS 2

struct XlnxZynqMPState {
/*< private >*/
Expand Down

0 comments on commit c28d4b8

Please sign in to comment.