aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/top/x400/x4xx_gpio_spi.v
diff options
context:
space:
mode:
Diffstat (limited to 'fpga/usrp3/top/x400/x4xx_gpio_spi.v')
-rw-r--r--fpga/usrp3/top/x400/x4xx_gpio_spi.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/fpga/usrp3/top/x400/x4xx_gpio_spi.v b/fpga/usrp3/top/x400/x4xx_gpio_spi.v
index a037ae158..314fda77d 100644
--- a/fpga/usrp3/top/x400/x4xx_gpio_spi.v
+++ b/fpga/usrp3/top/x400/x4xx_gpio_spi.v
@@ -228,6 +228,10 @@ module x4xx_gpio_spi #(
s_ctrlport_resp_data[SPI_RESPONSE_MSB:SPI_RESPONSE] <= readback[SPI_RESPONSE_MSB:SPI_RESPONSE];
end
+ BASE_ADDRESS + CONTROLLER_INFO: begin
+ s_ctrlport_resp_data[SLAVE_COUNT_MSB:SLAVE_COUNT] <= NUM_SLAVES;
+ end
+
// No register implementation for provided address
default: begin
// Acknowledge and provide error status if address is in range
@@ -534,6 +538,14 @@ endmodule
// <info> Records the response of the last completed SPI transaction. </info>
// </bitfield>
// </register>
+// <register name="CONTROLLER_INFO" offset="0x1C" size="32" writable="false">
+// <info>
+// Contains information pertaining this SPI controller block.
+// </info>
+// <bitfield name="SLAVE_COUNT" range="3..0">
+// <info> Indicates the number SPI slaves configurable by the controller. </info>
+// </bitfield>
+// </register>
// </group>
//</regmap>
//XmlParse xml_off