Skip to content

Commit 4338816

Browse files
soc: microchip: Update 802.15.4 support for PIC32CX BZ2/BZ6 SoC series
Add IEEE802.15.4 support for the Microchip PIC32CX BZ2 and BZ6 series. Signed-off-by: Amaranadhreddy Maddireddy <[email protected]>
1 parent d1019df commit 4338816

File tree

8 files changed

+13
-16
lines changed

8 files changed

+13
-16
lines changed

soc/microchip/pic32c/pic32cx_bz/bz2x/Kconfig.defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ config BUILD_OUTPUT_HEX
2222
default y
2323

2424
config DEVICE_SUPPORT_REQUIRED
25-
default y if (BT || HPA_SUPPORTED || ENABLE_PMU_BUCK_MODE)
25+
default y if (BT || HPA_SUPPORTED || ENABLE_PMU_BUCK_MODE || IEEE802154)
2626

2727
endif # SOC_FAMILY_MICROCHIP_PIC32CX_BZ2

soc/microchip/pic32c/pic32cx_bz/bz2x/bz24/linker.ld

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ SECTION_PROLOGUE(.mchp_bt,0x20018C00(NOLOAD),)
4545
. = ALIGN(4);
4646
KEEP(*(.mchp_bt))
4747
}
48+
#endif
4849

4950
SECTION_PROLOGUE (.pbss,0x44014000, )
5051
{
5152
KEEP(*(SORT_BY_NAME(".pbss*")))
5253
}
53-
54-
#endif

soc/microchip/pic32c/pic32cx_bz/bz2x/bz24/soc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#endif
1111
#include <zephyr/kernel.h>
1212

13-
#ifdef CONFIG_BT
13+
#if defined(CONFIG_BT) || defined(CONFIG_IEEE802154)
1414
#include <rf_system.h>
1515
#endif
1616

@@ -51,7 +51,7 @@ void z_arm_on_enter_cpu_idle_prepare(void)
5151
}
5252
#endif
5353

54-
#ifdef CONFIG_BT
54+
#if defined(CONFIG_BT) || defined(CONFIG_IEEE802154)
5555
static __ramfunc void pche_setup(void)
5656
{
5757
/* Set Flash Wait states and enable pre-fetch */
@@ -69,7 +69,7 @@ static __ramfunc void pche_setup(void)
6969

7070
void soc_early_init_hook(void)
7171
{
72-
#ifdef CONFIG_BT
72+
#if defined(CONFIG_BT) || defined(CONFIG_IEEE802154)
7373
SYS_ClkGen_Config();
7474
pche_setup();
7575
#endif

soc/microchip/pic32c/pic32cx_bz/bz2x/bz25/linker.ld

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ SECTION_PROLOGUE(.mchp_bt,0x20018C00(NOLOAD),)
4545
. = ALIGN(4);
4646
KEEP(*(.mchp_bt))
4747
}
48+
#endif
4849

4950
SECTION_PROLOGUE (.pbss,0x44014000, )
5051
{
5152
KEEP(*(SORT_BY_NAME(".pbss*")))
5253
}
53-
54-
#endif

soc/microchip/pic32c/pic32cx_bz/bz2x/bz25/soc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#endif
1111
#include <zephyr/kernel.h>
1212

13-
#ifdef CONFIG_BT
13+
#if defined(CONFIG_BT) || defined(CONFIG_IEEE802154)
1414
#include <rf_system.h>
1515
#endif
1616

@@ -51,7 +51,7 @@ void z_arm_on_enter_cpu_idle_prepare(void)
5151
}
5252
#endif
5353

54-
#ifdef CONFIG_BT
54+
#if defined(CONFIG_BT) || defined(CONFIG_IEEE802154)
5555
static __ramfunc void pche_setup(void)
5656
{
5757
/* Set Flash Wait states and enable pre-fetch */
@@ -69,7 +69,7 @@ static __ramfunc void pche_setup(void)
6969

7070
void soc_early_init_hook(void)
7171
{
72-
#ifdef CONFIG_BT
72+
#if defined(CONFIG_BT) || defined(CONFIG_IEEE802154)
7373
SYS_ClkGen_Config();
7474
pche_setup();
7575
#endif

soc/microchip/pic32c/pic32cx_bz/bz6x/Kconfig.defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ config BUILD_OUTPUT_HEX
2020

2121
config DEVICE_SUPPORT_REQUIRED
2222
bool
23-
default y if (BT || HPA_SUPPORTED || ENABLE_PMU_BUCK_MODE)
23+
default y if (BT || HPA_SUPPORTED || ENABLE_PMU_BUCK_MODE || IEEE802154)
2424

2525
endif # SOC_FAMILY_MICROCHIP_PIC32CX_BZ6

soc/microchip/pic32c/pic32cx_bz/bz6x/bz62/linker.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ SECTION_PROLOGUE(.mchp_bt,0x20018C00(NOLOAD),)
4242
KEEP(*(.mchp_bt))
4343
}
4444

45+
#endif
46+
4547
SECTION_PROLOGUE (.pbss,0x44014000, )
4648
{
4749
KEEP(*(SORT_BY_NAME(".pbss*")))
4850
}
49-
50-
#endif

soc/microchip/pic32c/pic32cx_bz/bz6x/bz66/linker.ld

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ SECTION_PROLOGUE(.mchp_bt,0x20018C00(NOLOAD),)
4141
. = ALIGN(4);
4242
KEEP(*(.mchp_bt))
4343
}
44+
#endif
4445

4546
SECTION_PROLOGUE (.pbss,0x44014000, )
4647
{
4748
KEEP(*(SORT_BY_NAME(".pbss*")))
4849
}
49-
50-
#endif

0 commit comments

Comments
 (0)