Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i.MX6ul updates #20

Open
wants to merge 5 commits into
base: v2020.01-ts
Choose a base branch
from
Open

i.MX6ul updates #20

wants to merge 5 commits into from

Conversation

markfeathers
Copy link

Switch to new silo driver. remove older utility, and control the feature only from silo_chrg_pct.
Enable FDT overlay support

luckshot
luckshot previously approved these changes Feb 11, 2025
board/technologic/ts7100/micro.c Outdated Show resolved Hide resolved
board/technologic/ts7100/micro.c Outdated Show resolved Hide resolved
board/technologic/ts7100/micro.c Outdated Show resolved Hide resolved
board/technologic/ts7100/micro.c Outdated Show resolved Hide resolved
board/technologic/ts7100/micro.h Outdated Show resolved Hide resolved
board/technologic/ts7180/micro.c Outdated Show resolved Hide resolved
board/technologic/ts7180/micro.h Outdated Show resolved Hide resolved
board/technologic/ts7180/ts7180.c Show resolved Hide resolved
"chrg_pct=60\0" \
"chrg_verb=0\0" \
"silochargeon=silabs scaps disable;" \
"if test $silopresent = '1';" \
"then if test $jpnochrg = 'off';" \
"then silab scaps enable;"\
"fi;"\
"fi;\0" \
"silowaitcharge=if test $silopresent = '1';" \
"then if test $jpnochrg = 'on';" \
"then echo 'NO CHRG jumper is set, not waiting';" \
"else silabs scaps wait pct ${chrg_pct};" \
"fi;" \
"fi;\0" \
"silo_chrg_pct=60\0" \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the current paradigm is, but, with these changes is there:

  1. A way to enable charging without having to set the silo_chrg_pct and wait for it?
  2. Not have waiting for charge enabled out of the box so the first boot experience isn't the user waiting ~60 s for the platform to actually turn on.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. No, but a user could turn this on in linux with tsmicroctl. I'm not sure what the real use case is for this.
  2. The TS-7100 does not have a no charge jumper. During development the user can press ctrl+c to stop charging and boot. I'll add a printf to make this more apparent that the user can do that to boot immediately.

Comment on lines -60 to +58
"chrg_pct=60\0" \
"silochargeon=silabs scaps disable;" \
"if test $silopresent = '1';" \
"then if test $jpnochrg = 'off';" \
"then silabs scaps enable;"\
"fi;"\
"fi;\0" \
"silowaitcharge=if test $silopresent = '1';" \
"then if test $jpnochrg = 'on';" \
"then echo 'NO CHRG jumper is set, not waiting';" \
"else silabs scaps wait pct ${chrg_pct};" \
"fi;" \
"fi;\0" \
"silo_chrg_pct=60\0" \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the current paradigm is, but, with these changes is there:

  1. A way to enable charging without having to set the silo_chrg_pct and wait for it?
  2. Not have waiting for charge enabled out of the box so the first boot experience isn't the user waiting ~60 s for the platform to actually turn on.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Same as the last, but:
  2. We do have a no charge jumper on this board. I'll add a preboot in the next pass that sets the charge percent to 0.

This is now controlled completely by 'silo_chrg_pct' on both boards.

If the variable doesn't exist, supercaps are disabled
If the variable is 0, supercaps charging is enabled and we boot immediately
if the variable is 1-100, we enable and wait until the caps are charged to that percent
If it is > 100, it is capped to 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants