[rtems commit] leon,gr1553b: set codec version

Daniel Hellstrom danielh at rtems.org
Thu Mar 11 16:51:34 UTC 2021


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

Author:    Arvid Bjorkengren <arvid at gaisler.com>
Date:      Mon Oct 15 15:05:13 2018 +0200

leon,gr1553b: set codec version

This is enables the updated codec for GR740 and is backwards compatible
with all other versions of the IP.

---

 bsps/shared/grlib/1553/gr1553b.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bsps/shared/grlib/1553/gr1553b.c b/bsps/shared/grlib/1553/gr1553b.c
index 777b6dc..179f5e3 100644
--- a/bsps/shared/grlib/1553/gr1553b.c
+++ b/bsps/shared/grlib/1553/gr1553b.c
@@ -206,6 +206,10 @@ static int gr1553_init2(struct drvmgr_dev *dev)
 	GR1553B_WRITE_REG(&regs->rt_cfg, 0x15530000);
 	/* Stop BM logging (just in case) */
 	GR1553B_WRITE_REG(&regs->bm_ctrl, 0);
+	/* Set codec version. This is only supported by some devices, i.e. GR740.
+	 * It will not have any effect on devices that does not support this bit. 
+	 */
+	GR1553B_WRITE_REG(&regs->hwcfg, 1<<12);
 
 	return DRVMGR_OK;
 }



More information about the vc mailing list