OSDN Git Service

net: ipa: define BCR values using an enum
authorAlex Elder <elder@linaro.org>
Thu, 22 Sep 2022 22:20:56 +0000 (17:20 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Sep 2022 03:56:28 +0000 (20:56 -0700)
commit21ab2078ff37ad9f81c080244ed51d80463d58d9
tree84a585627f109e7c61942e0e13b178b9e7ed9d9d
parent48395fa8e8f69267a795bab2d31b9c2f3f8fe503
net: ipa: define BCR values using an enum

The backward compatibility register (BCR) has a set of bit flags
that indicate ways in which the IPA hardware should operate in a
backward compatible way.  The register is not supported starting
with IPA v4.5, and where it is supported, defined bits all have the
same numeric value.

Redefine these flags using an enumerated type, with each member's
value representing the bit position that encodes it in the BCR.
This replaces all of the single-bit field masks previously defined.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/data/ipa_data-v3.1.c
drivers/net/ipa/data/ipa_data-v3.5.1.c
drivers/net/ipa/ipa_reg.h