• Alex Elder's avatar
    net: ipa: define even more IPA register fields · 9265a4f0
    Alex Elder authored
    Define the fields for the FLAVOR_0, IDLE_INDICATION_CFG,
    QTIME_TIMESTAMP_CFG, TIMERS_XO_CLK_DIV_CFG and TIMERS_PULSE_GRAN_CFG
    IPA registers for all supported IPA versions.
    
    Create enumerated types to identify fields for these IPA registers.
    Use IPA_REG_FIELDS() to specify the field mask values defined for
    these registers, for each supported version of IPA.
    
    Use ipa_reg_bit() and ipa_reg_encode() to build up the values to be
    written to these registers.  Use ipa_reg_decode() to extract field
    values from the FLAVOR_0 register.
    
    Remove the definition of the no-longer-used *_FMASK symbols.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    9265a4f0
ipa_main.c 25.6 KB