dm_eeprom: look up chosen bootcount device in the device tree#16
Merged
dm_eeprom: look up chosen bootcount device in the device tree#16
Conversation
c3b9b14 to
85d12ea
Compare
Contributor
Author
|
Example debut output: |
b575384 to
f3ef673
Compare
Contributor
Author
|
@passgat I can't request you as a reviewer but I wonder if you'd be interested in looking at this. I am considering whether this implementation is sufficient or should I use libfdt instead. Edit: upon further reflection I would rather not depend on libfdt unless it can be statically linked, in order to make it easy to include in initramfs. Given that the sysfs method that I'm using now seems to be reliable without any external dependency, I am apt to keep it as-is. |
086e6ee to
f84decf
Compare
cb9ecb7 to
256efb2
Compare
instead of using compile-time constants for bus/address/offset ref: https://github.com/u-boot/u-boot/blob/master/drivers/bootcount/bootcount_dm_i2c.c
so they can be used for rtc driver logic.
Makefile.am: add error and warning CFLAGS
256efb2 to
ce0ebaf
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
instead of using compile-time constants for bus/address/offset
Example device tree definition: