Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 648377cd authored by Andrey Shvetsov's avatar Andrey Shvetsov Committed by Greg Kroah-Hartman
Browse files

staging: most: dim2: enable flow control for isoc channels



This patch enables the flow control feature for the isochronous channels
of the DIM2 macro.

Signed-off-by: default avatarAndrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 578bdec4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -219,10 +219,12 @@ static inline void dim2_clear_ctr(u32 ctr_addr)
static void dim2_configure_cat(u8 cat_base, u8 ch_addr, u8 ch_type,
			       bool read_not_write, bool sync_mfe)
{
	bool isoc_fce = ch_type == CAT_CT_VAL_ISOC;
	u16 const cat =
		(read_not_write << CAT_RNW_BIT) |
		(ch_type << CAT_CT_SHIFT) |
		(ch_addr << CAT_CL_SHIFT) |
		(isoc_fce << CAT_FCE_BIT) |
		(sync_mfe << CAT_MFE_BIT) |
		(false << CAT_MT_BIT) |
		(true << CAT_CE_BIT);
+1 −0
Original line number Diff line number Diff line
@@ -141,6 +141,7 @@ enum {
	ADT1_CTRL_ASYNC_BD_MASK = DIM2_MASK(11),
	ADT1_ISOC_SYNC_BD_MASK = DIM2_MASK(13),

	CAT_FCE_BIT = 14,
	CAT_MFE_BIT = 14,

	CAT_MT_BIT = 13,