[rtems commit] bsps/cadence-spi: Fix moduleid offset

Joel Sherrill joel at rtems.org
Tue Jun 29 20:34:23 UTC 2021


Module:    rtems
Branch:    master
Commit:    c18b041b7727e0fc80abc5cd01bba86804ef748e
Changeset: http://git.rtems.org/rtems/commit/?id=c18b041b7727e0fc80abc5cd01bba86804ef748e

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Mon Jun 28 08:03:22 2021 -0500

bsps/cadence-spi: Fix moduleid offset

Move the moduleid register to the correct offset according to Cadence IP
documentation.

---

 bsps/include/dev/spi/cadence-spi-regs.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsps/include/dev/spi/cadence-spi-regs.h b/bsps/include/dev/spi/cadence-spi-regs.h
index b4b2366..207d056 100644
--- a/bsps/include/dev/spi/cadence-spi-regs.h
+++ b/bsps/include/dev/spi/cadence-spi-regs.h
@@ -78,6 +78,7 @@ typedef struct {
 	uint32_t slave_idle_count;
 	uint32_t txthreshold;
 	uint32_t rxthreshold;
+	uint32_t unused[51];
 	uint32_t moduleid;
 } cadence_spi;
 



More information about the vc mailing list