Skip to content

Commit

Permalink
soc: ti_simplelink: Add capacitor tuning
Browse files Browse the repository at this point in the history
See TI application note SWRA640G section 6.4. "Tuning the HF
Oscillator".

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
  • Loading branch information
jadonk committed Jun 6, 2023
1 parent 1a526a6 commit f001232
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions soc/arm/ti_simplelink/cc13x2x7_cc26x2x7/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,11 @@ config CC13X2_CC26X2_BOOTLOADER_BACKDOOR_LEVEL
help
Set the active level of the pin selected for the bootloader backdoor.

config CC13X2_CC26X2_XOSC_CAPARRAY_DELTA
hex "Cap array tuning delta"
range 0 0xFF
default 0xFF
help
Enable a specific cap array tunning delta.

endmenu
5 changes: 5 additions & 0 deletions soc/arm/ti_simplelink/cc13x2x7_cc26x2x7/ccfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@
#define SET_CCFG_BL_CONFIG_BL_ENABLE 0x00
#endif /* CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE */

#ifdef CONFIG_CC13X2_CC26X2_XOSC_CAPARRAY_DELTA
#define SET_CCFG_MODE_CONF_XOSC_CAP_MOD 0x0
#define SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA CONFIG_CC13X2_CC26X2_XOSC_CAPARRAY_DELTA
#endif

/* TI recommends setting CCFG values and then including the TI provided ccfg.c */
#include <startup_files/ccfg.c>

0 comments on commit f001232

Please sign in to comment.