Commit f1faa89
fwk: cypd: check the RDO mismatch flags
If the type-c device operating current is lower than maximum operating power
in the RDO, the capability mismatch flag will be set.
This change reads the contract information after the negotiation is completed.
If the capability mismatch flag is set, call the event to check if the board
allows changing the PDO or not.
BRANCH=fwk-dogwood-27111
BUG=https://app.clickup.com/t/86etza0y1
TEST=Connect the device which will set the mismatch flag, and check
the EC log prints "RDO Mismatch, may provide more power for this
device"
Signed-off-by: Josh Tsai <Josh_Tsai@compal.com>1 parent f98dca3 commit f1faa89
File tree
2 files changed
+39
-2
lines changed- zephyr/program/framework
- include
- src
2 files changed
+39
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| |||
519 | 520 | | |
520 | 521 | | |
521 | 522 | | |
| 523 | + | |
522 | 524 | | |
523 | 525 | | |
524 | 526 | | |
| |||
813 | 815 | | |
814 | 816 | | |
815 | 817 | | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
816 | 824 | | |
817 | 825 | | |
818 | 826 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
| 1001 | + | |
1001 | 1002 | | |
1002 | 1003 | | |
1003 | 1004 | | |
| |||
1470 | 1471 | | |
1471 | 1472 | | |
1472 | 1473 | | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
1473 | 1479 | | |
1474 | 1480 | | |
1475 | 1481 | | |
| |||
1702 | 1708 | | |
1703 | 1709 | | |
1704 | 1710 | | |
1705 | | - | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
1706 | 1725 | | |
1707 | 1726 | | |
1708 | 1727 | | |
| |||
1713 | 1732 | | |
1714 | 1733 | | |
1715 | 1734 | | |
1716 | | - | |
1717 | 1735 | | |
1718 | 1736 | | |
1719 | 1737 | | |
| |||
1933 | 1951 | | |
1934 | 1952 | | |
1935 | 1953 | | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
1936 | 1965 | | |
1937 | 1966 | | |
1938 | 1967 | | |
| |||
0 commit comments