diff options
author | Arvid Bjorkengren <arvid@gaisler.com> | 2018-10-15 15:05:13 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2021-03-11 17:31:21 +0100 |
commit | 70f87f9e8725487dcb73c33116811d51b4ccffc2 (patch) | |
tree | e6a14a1369174efb7a4bfc5bcf684b9dd9288541 /bsps | |
parent | 3344d0299f49fc365b15a6ec8af23e58cc89c913 (diff) |
leon,gr1553b: set codec version
This is enables the updated codec for GR740 and is backwards compatible
with all other versions of the IP.
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/shared/grlib/1553/gr1553b.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bsps/shared/grlib/1553/gr1553b.c b/bsps/shared/grlib/1553/gr1553b.c index 777b6dc743..179f5e3786 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(®s->rt_cfg, 0x15530000); /* Stop BM logging (just in case) */ GR1553B_WRITE_REG(®s->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(®s->hwcfg, 1<<12); return DRVMGR_OK; } |