Commit 1a7e89cb authored by Vebjorn Myklebust's avatar Vebjorn Myklebust Committed by Benjamin Cabé
Browse files
parent e626db76
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 Texas Instruments Incorporated
 * Copyright (c) 2024 BayLibre, SAS
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <mem.h>
#include <ti/cc23x0.dtsi>

/ {
	sram0: memory@20000000 {
		reg = <0x20000000 DT_SIZE_K(36)>;
	};
};

dts/arm/ti/cc23x0.dtsi

0 → 100644
+41 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 Texas Instruments Incorporated
 * Copyright (c) 2024 BayLibre, SAS
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <arm/armv6-m.dtsi>
#include <freq.h>

/ {
	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		cpu0: cpu@0 {
			device_type = "cpu";
			compatible = "arm,cortex-m0+";
			clock-frequency = <DT_FREQ_M(48)>;
			reg = <0>;
		};
	};

	sram0: memory@20000000 {
		compatible = "mmio-sram";
	};

	sysclk: system-clock {
		compatible = "fixed-clock";
		clock-frequency = <DT_FREQ_M(48)>;
		#clock-cells = <0>;
	};
};

&nvic {
	arm,num-irq-priority-bits = <2>; /* Interrupt levels are 0-192 in steps of 64 */
};

&systick {
	status = "disabled";
};
+6 −0
Original line number Diff line number Diff line
@@ -12,4 +12,10 @@ config HAS_TI_CCFG
	  Selected when CCFG (Customer Configuration) registers
	  appear at the end of flash

config TI_SIMPLELINK_DYNAMIC_DPL_OBJECTS
	bool
	help
	  Turn on dynamic memory allocation for DPL objects. Reserves
	  extra memory for this.

endif # SOC_FAMILY_TI_SIMPLELINK
+12 −0
Original line number Diff line number Diff line
# Copyright (c) 2024 Texas Instruments Incorporated
# Copyright (c) 2024 BayLibre, SAS
#
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(soc.c)
zephyr_sources(ccfg.c)
zephyr_include_directories(.)

zephyr_linker_sources_ifdef(CONFIG_HAS_TI_CCFG SECTIONS ccfg.ld)

set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
+49 −0
Original line number Diff line number Diff line
# Copyright (c) 2024 Texas Instruments Incorporated
# Copyright (c) 2024 BayLibre, SAS
#
# SPDX-License-Identifier: Apache-2.0

config SOC_SERIES_CC23X0
	select ARM
	select CPU_CORTEX_M0PLUS
	select CPU_CORTEX_M_HAS_VTOR
	select SOC_RESET_HOOK
	select TICKLESS_KERNEL
	select DYNAMIC_INTERRUPTS
	select HAS_CC23X0_SDK
	select HAS_TI_CCFG
	select TI_SIMPLELINK_DYNAMIC_DPL_OBJECTS
	select EVENTS
	select DYNAMIC_THREAD
	select DYNAMIC_THREAD_ALLOC
	select THREAD_STACK_INFO
	select BUILD_OUTPUT_HEX
	select BUILD_NO_GAP_FILL

menu "Bootloader Configuration"
depends on SOC_SERIES_CC23X0

choice CC23X0_BLDR_VTOR_TYPE
	prompt "Pointer to user bootloader vector table"
	default CC23X0_BLDR_VTOR_TYPE_UNDEF

config CC23X0_BLDR_VTOR_TYPE_UNDEF
	bool "ROM serial bootloader"

config CC23X0_BLDR_VTOR_TYPE_FORBID
	bool "No bootloader invoked"

config CC23X0_BLDR_VTOR_TYPE_USE_FCFG
	bool "Use factory configuration"

config CC23X0_BLDR_VTOR_TYPE_FLASH
	bool "Use valid main flash address"

endchoice # CC23X0_BLDR_VTOR_TYPE

config CC23X0_BLDR_ENABLED
	bool "Bootloader commands"
	help
	  If n, bootloader ignores all commands.

endmenu # "Bootloader Configuration"
Loading