[PATCH v5 2/3] ASoC: starfive: Add JH7110 TDM driver

Claudiu.Beznea at microchip.com Claudiu.Beznea at microchip.com
Tue May 30 00:06:04 PDT 2023


On 30.05.2023 09:47, Claudiu Beznea - M18063 wrote:
>> +       #define CLKPOL_BIT              5
>> +       #define TRITXEN_BIT             4
>> +       #define ELM_BIT                 3
>> +       #define SYNCM_BIT               2
>> +       #define MS_BIT                  1
> Instead of these *_BIT defines as plain numbers you can defined them using
> BIT() macro and use macros in place instead of
>        enum TDM_CLKPOL clkpolity;
>        enum TDM_ELM    elm;
>        enum TDM_SYNCM  syncm;
>        enum TDM_MASTER_SLAVE_MODE ms_mode;

Something happens w/ my email client and I sent this section by accident.
Thus you can ignore it.


More information about the linux-riscv mailing list