Skip to content

Commit

Permalink
riscv:telink: update commit id and nvs config.
Browse files Browse the repository at this point in the history
- update commit id for zephyr.
- add NVS_RAM_OPTIMIZATION option.

Signed-off-by: Haiwen Xia <haiwen.xia@telink-semi.com>
  • Loading branch information
haiwentelink committed Nov 26, 2024
1 parent 007f4d7 commit 8171f07
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: telink
# - name: Update Zephyr to specific revision (for developers purpose)
# shell: bash
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 8b29ee6b118ebe6eeec3224dbe343474e11403d8"
- name: Update Zephyr to specific revision (for developers purpose)
shell: bash
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py d625cf2467afbf3b136f91f7916f1ea32161be9c"
- name: CI Examples Telink
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
with:
gh-context: ${{ toJson(github) }}

# - name: Update Zephyr to specific revision (for developers purpose)
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 8b29ee6b118ebe6eeec3224dbe343474e11403d8"
- name: Update Zephyr to specific revision (for developers purpose)
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py d625cf2467afbf3b136f91f7916f1ea32161be9c"

- name: Build example Telink (B92 retention) Air Quality Sensor App
# Run test for master and s07641069 PRs
Expand Down
14 changes: 12 additions & 2 deletions config/telink/chip-module/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,19 @@ config TELINK_SOC_REBOOT_ON_FAULT
config NVS_LOOKUP_CACHE
default y

# the nvs lookup cache size should be 2048 ,or the TC_RR1.0 will fail .
config NVS_LOOKUP_CACHE_SIZE
default 400 if SOC_RISCV_TELINK_TL321X
default 2048 if !PM
default 2048 if SOC_RISCV_TELINK_TL321X
default 2048 if !PM
default 2048

config NVS_RAM_OPTIMIZATION
bool
default y if PM || SOC_RISCV_TELINK_TL321X
default n

config NVS_LOOKUP_CACHE_ARRAY_SIZE
default 400 if PM || SOC_RISCV_TELINK_TL321X

# Set multiplicator of Name Value Storage (NVS) as 1 to reach NVS sector size 4KB
# nvs_sector_size = flash_page_size * mult = 4KB * 1 = 4KB
Expand Down

0 comments on commit 8171f07

Please sign in to comment.