Skip to content

Add patch to modify POOL_SECTION and pin order#318

Closed
Yi-Shum wants to merge 1 commit into
facebook:mainfrom
Yi-Shum:Add_patch_to_modify_POOL_SECTION_and_pin_order
Closed

Add patch to modify POOL_SECTION and pin order#318
Yi-Shum wants to merge 1 commit into
facebook:mainfrom
Yi-Shum:Add_patch_to_modify_POOL_SECTION_and_pin_order

Conversation

@Yi-Shum

@Yi-Shum Yi-Shum commented Jun 6, 2022

Copy link
Copy Markdown
Collaborator

Summary:

  • Modify location of POOL_SECTION from .data section to .bbs section,
    it reduce the target binary size.
    Before:
$ west build -b ast1030_evb -p auto ./meta-facebook/yv35-cl/
...
$ ls -l ./build/zephyr/Y35BCL.bin
-rwxrwxr-x 1 root root 307116 Jun  6 14:05 ./build/zephyr/Y35BCL.bin

After:

$ west build -b ast1030_evb -p auto ./meta-facebook/yv35-cl/
...
$ ls -l ./build/zephyr/Y35BCL.bin
-rwxrwxr-x 1 root root 204684 Jun  6 14:12 ./build/zephyr/Y35BCL.bin
  • The pin definition order for the last 8 pins differs from datasheet.
    This causes the configuration of multi-function pins ADC8-15 and GPIU0-7
    may fail. Patch 0010 fix this issue.

Test Plan:

  • Apply Patch: PASS
  • Build Code: PASS
Summary:
- Modify location of POOL_SECTION from .data section to .bbs section,
it reduce the target binary size.
before:
```
$ west build -b ast1030_evb -p auto ./meta-facebook/yv35-cl/
...
$ ls -l ./build/zephyr/Y35BCL.bin
-rwxrwxr-x 1 root root 307116 Jun  6 14:05 ./build/zephyr/Y35BCL.bin
```
after:
```
$ west build -b ast1030_evb -p auto ./meta-facebook/yv35-cl/
...
$ ls -l ./build/zephyr/Y35BCL.bin
-rwxrwxr-x 1 root root 204684 Jun  6 14:12 ./build/zephyr/Y35BCL.bin
```
- The pin definition order for the last 8 pins differs from datasheet.
This causes the configuration of multi-function pins ADC8~15 and GPIU0~7
may fail. Patch 0010 fix this issue.

Test Plan:
- Apply Patch: PASS
- Build Code: PASS
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 6, 2022
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

2 participants