mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
leon,gr1553b: set codec version
This is enables the updated codec for GR740 and is backwards compatible with all other versions of the IP. Updates #4275.
This commit is contained in:
committed by
Daniel Hellstrom
parent
1223f5e402
commit
14fcf38891
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user