-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[i2c] Require nonzero mask for address match
Adjust the address CSR so a given field can be disabled with an address mask of zero. Only accept target address designations if at least one bit in the mask is set. If a user wishes to be the target of *all* I2C traffic, that user can set the same single bit for each mask, then use all zeroes for one address and all ones for the other. (Technically, only that single bit is meaningful, but "all ones" covers whichever bit is selected in the mask.) Signed-off-by: Alexander Williams <[email protected]>
- Loading branch information
Showing
4 changed files
with
23 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters