Skip to content

Commit

Permalink
soc: arm: ti_simplelink: cc13x2x7_cc26x2x7: add caparray delta config
Browse files Browse the repository at this point in the history
- Make caparray delta a Kconfig variable
- Set caparray delta for beagle_bcf at beagleconnect_freedom_defconfig

Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
  • Loading branch information
jadonk authored and cfriedt committed Nov 11, 2023
1 parent 27fe62c commit 26f30db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions boards/arm/beagle_bcf/beagleconnect_freedom_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ CONFIG_HW_STACK_PROTECTION=y
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Adjust for oscillator capacitors
CONFIG_CC13X2_CC26X2_XOSC_CAPARRAY_DELTA=0x02
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 0xD5
help
Enable a specific cap array tunning delta.

endmenu
2 changes: 1 addition & 1 deletion soc/arm/ti_simplelink/cc13x2x7_cc26x2x7/ccfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* https://software-dl.ti.com/simplelink/esd/simplelink_cc13xx_cc26xx_sdk/6.20.00.29/exports/release_notes_simplelink_cc13xx_cc26xx_sdk_6_20_00_29.html#known-issues
*/
#define SET_CCFG_MODE_CONF_XOSC_CAP_MOD 0x0
#define SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA 0xD5
#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 */
Expand Down

0 comments on commit 26f30db

Please sign in to comment.